hey guys, how would I go about making a ping leaderboard like this?
I was thinking of using some function of some sort? maybe remotes or bindables, but idk if that would be too heavy
You should not send data every frame that isn’t fundamental to gameplay. Im not familiar with :GetNetworkPing() so im not sure if it is client or server sided.
If :GetNetworkPing() is server sided:
make a loop that runs every 5 seconds
In the loop, fetch all players network ping and then :FireAllClients() with the fetched data
If :getNetworkPing() is client sided:
Every 5 seconds on the client, Send the ping to the server
When server recieves the update, update a table which contains the ping for each player
Every 5 seconds on the server, send the table using :FireAllClients()