I want to try to get the “avg. ping” you can find in the F9 menu and put that on a TextLabel. Is there a way to get and find this value?
1 Like
I also use a GetNetworkPing() command and that is only the client’s ping I believe but I want to get the server ping
What do you mean the servers ping?
I am not sure what they are called at this point but I just want to get the ping value that can be seen in the developer console
I guess you could set up a bindable event, record the time it takes when the event is sent and when it is received from the other server-script
Get the ping of every player and add them all in a number and then divide it by the amount of players
Ex:
local players = {['RealUserId1'] = 100, ['RealUserId2'] = 200, ['RealUserId3'] = 50, ['RealUserId4'] = 85, }
local avgPing = 0
for i, v in pairs(players) do
avgPing += v
end
avgPing = avgPing/#players
That will just give you the average ping of all the players combined. Unfortunately I don’t think theres a way to check the server ping.
could be wrong