It works fine locally but when running on Azure it glitches whenever you collect a star. You will see the star redraw around 8-9 times and the score will increment by 80 or 90 points instead of 10.
From a quick glance, it seems like client sends ‘I got a star’ to the server, which replies with new position for the star. Only after getting the new position will the client remove the star. So obviously if there’s multiple updates before the server replies with the new position, the star is still there, still colliding, and client still sending ‘I got a star’ message.
It didn’t happen locally because there wasn’t any latency.
Destroy the star right away, or remove the collider and it should be fixed.
But ideally you should consider making the game server-authoritative unless you are in environment without possibility of cheating.