What do you want to achieve? I want to make a ping reader text GUI.
What is the issue? My issue is that i can’t find out how to make it.
What solutions have you tried so far? I’ve tried to search on here, found nothing.
Please send help asap! Thanks!
You shouldn’t ask full scripts on devforum, but to answer your question, maybe use the tick() function and see how many seconds does it takes the client to fire the remote event, then see how long the server script noticed the remote event was fired.
1 Like
This is a post you might find useful:
Ping, otherwise called Latency, is how many seconds it takes to send data to another device, such as the server. Getting the player’s ping would need you to use a RemoteFunction that invokes a request to the server and the server will get back to the client:
-- Server
RemoteFunction.OnServerInvoke = function(player)
return "received"
end)
-- Client
local t = tick()
RemoteFunction:InvokeServer()
local ping = ((tick() - t) / 2) * 1000 -- time it takes in milliseconds
You’d need to do thi…
If you need any further help feel free to ask me.
1 Like