I want to get all players’ pings and than on the server which obtains calculate with them probably for an average or something to throttle network details.
Is there any know way to avoid additional network overhead? The entire point is less replication in the first place.
3 Likes
I Use Player:GetNetworkPing() get ping of each player and find an average …
local Players = game:GetService("Players")
function GetPing (Sum, N)
Sum = 0
N = #Players:GetChildren()
for _, Player in pairs(Players:GetChildren()) do
Sum += Player:GetNetworkPing()
end
if N < 2 then
return Sum
else
return Sum/N
end
end
print(GetPing())
3 Likes
I really don’t know if you saw, but this thread was two years ago. I’m pretty sure they have figured their problem out. If a thread is more than 2-3+ months old, please don’t bump it unless they decide to do so first. Thank you! 