I am trying to use :GetNetworkPing() to get the player pings on a server script but they barely change. I am multiplying it by 2000 to match the actual ms value AND yes its in a loop. Like when I join the game for the first time and it gives me a value it always stay around that value. If it gives around 90, it will sometimes see 88.9999 or something like that and then come back to 90. Why won’t it change properly? Its in a server script used for leaderboard.
for i, player in pairs(game.Players:GetChildren()) do
-- other leaderboard stuff
local pingLabel = playerSlot.plrPing
coroutine.wrap(function()
while true do
pingLabel.Text = player:GetNetworkPing() * 2000
wait(1)
end
end)()
-- other leaderboard stuff
end
PLR.ChildAdded:Connect(function(player)
if script.Parent.leaderboardFrame.ScrollingFrame:FindFirstChild(player.Name) then return end
-- other leaderboard stuff
local pingLabel = playerSlot.plrPing
coroutine.wrap(function()
while true do
pingLabel.Text = player:GetNetworkPing() * 2000
wait(1)
end
end)()