GetNetworkPing Returns 0

Reproduction Steps
Call GetNetworkPing on the server or client. It will always return 0.

Expected Behavior
It should provide a correct ping measurement, or, if the method is still under construction, developers should be notified of this to avoid confusion.

Actual Behavior
GetNetworkPing incorrectly returns 0.

Issue Area: Engine
Issue Type: Other
Impact: Low
Frequency: Constantly

4 Likes

I don’t think this feature is ready just yet.

According to the Release Notes for 481, NetworkPing is still pending.

1 Like

Thanks for your report! We are aware of the issue and is actively looking into it now.

7 Likes

Has this been fixed now? It still returns 0.

Odd, been using it for a while and it always works for me, but I think it has to be called on the server side and you have to modify the result if you want to get ms or else the number is so small, it might be coming back as zero if any rounding is taking place.

Have you tried according to the above suggestion? It can only be called on the server side and we have submitted the fix for it to return reasonable number. Thanks.

It still returns as 0.

This is the code if you are intrested:

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(Player)
	local NetworkPing = Player:GetNetworkPing()
	print(NetworkPing)
end)

I have also tried rounding it, but still returns as 0.

Following up here, I can confirm we’ve fixed this, are you still having issues?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.