Better way to update UI for each players Position to allClients

Currently working on a Race Clicker game and one of the challenges is displaying/updating each Players position during the Race for all clients. Ill attach a GIF for reference
https://gyazo.com/5af361383e41d7e359d581376bf293af

Once the player passes through one of the purple milestones a function is fired on the server that awards trophies and checks if its been 5 milestones since the players position UI was last updated and then it fires that to AllClients.

Is there any better way to handle this? players with high Speed can fire the remote event every second and I dont want it to overload the server from firing too much.

1 Like

Just have a local script in Starter player character or StarterPlayerScripts which uses Run service to loop over every single player in the game and update their position on the UI. You don’t need to have any validation for this as it is purley visual

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.