Cant get ping from startergui

The script is a local script, parented in a screen gui. Trying to get a GUI to appear when a player gets over 150 ping.

This is the script that I’m using

	while wait(1) do
		pcall(function()			
			if game:GetService("Workspace"):GetRealPhysicsFPS() > 60 then
				if ShowAgain.Value == true then
					PingAppear()
					print("uh oh")
				end				
			end
		end)
	end


Why is it not working?

EDIT: Also not getting any errors

Try putting this into StarterPlayerScripts, Should Fix it

_F = workspace:GetRealPhysicsFPS()

while task.wait(1) do

	if _F >= 12 then -- Random Number
		warn("Ping Higher than Normal: ", math.round(_F*10)/10)
	else
		print("good")
	end
end
1 Like

How can this retrieve the client’s ping?

1 Like

Oh, I just noticed. (robloxmax limi t)

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