Hello,
How would I make a text label show the client player’s ping? Here is an example:
Example

I tried grabbing the client and then doing script.Parent.Text = Player.Ping – I know it does not work but how would I get the text do show the players ping?
I think you’re going to have to grab it yourself, as there isn’t a built-in method to do so.
The first thing that comes to mind is to use a Remote Function, invoke the server and see how long it takes to get a response back. Maybe that would be the player’s ping?
1 Like
Building off of @Chato’s idea, you could run something like this:
local function Get_Ping()
local elapsed = tick()
server_function:InvokeServer();
return (tick() - elapsed) * 1000
end
print(Get_Ping())
However, I feel like there’s a better way, I can’t entirely remember.
1 Like