How do I get the ping of a player? (in ms) (server sided)

So, I’ve been working a project lately, and I wanna check if a player has either left on purpose, or lost connection.

I’ve searched and read some posts about this, and it was suggested to check the player’s ping before they left the game. However, I don’t know how to check a player’s ping, and the ways that I’ve tried hasn’t really worked.

Could anybody help me with this?
Thanks in advance!

You can’t do that; [The current identity (2) cannot GetValue (lacking permission 1). How do you use this method?

Is there a way to make that server sided?

You would send a remote function to the server, and return how much time it took the remote event to fire to the server.

Could you provide a code sample?

Search before posting… If you reverse the server and client scripts, it will also work on the server side

4 Likes