How would I get the servers ping?

So basically, I want to make a GUI that displays all the servers that are currently open, and basically, the user can join it by clicking it, the only issue I’ve had with this is getting the server ping how would I go about grabbing the servers ping?

1 Like

I don’t believe you can actually get a server’s ping - ping should vary based on each client’s internet connection

To display ping, there is a command you can use to get a certain player’s ping:
Player:GetNetworkPing()
Which will return the user’s ping per second as a number

More info here:

I’ve seen a few games, that manage to show the servers ping I’m just confused on how exactly they go about grabbing it? I’ve also seen a few ROBLOX plugins that even show the servers fps and ping which is updating constantly.

I suppose one way to get a server’s FPS would be to use RenderStepped.Heartbeat()

Heartbeat has a DeltaTime parameter that you can use to get the rate per second

local RunService = game:GetService("RunService")
 
RunService.Heartbeat:Connect(function(step)
	local fps = 1 / step
end)

Hello.

Yes you can do that by using
https://games.roblox.com/docs#!/GameInstances/get_v1_games_placeId_servers_serverType

You Will need an extarnal app since roblox does not allow request on their api from a game.

This api Will return For each server it’s ping.

1 Like

Perhaps, that’s what this game did? https://gyazo.com/3c06dec620af81ed8f9c2ba65509156f

Yeah, in pretty sure they use an extarnal app with that api since it’s returning all server data.

I also saw similar System in scp group.
No way to do that with roblox functions