Run it
Copy the script and paste it into your executor.
local HTTPService = game:GetService("HttpService")
local TeleportService = game:GetService("TeleportService")
local StatsService = game:GetService("Stats")
local function fetchServersData(placeId, limit)
local url = string.format("https://games.roblox.com/v1/games/%d/servers/Public?limit=%d", placeId, limit)
local success, response =
pcall(
function()
return HTTPService:JSONDecode(game:HttpGet(url))
end
)
if success and response and response.data then
return response.data
end
return nil
end
placeId = .PlaceId
serverLimit =
servers = (placeId, serverLimit)
servers
lowestPingServer = servers[]
_, server (servers)
server[] < lowestPingServer[]
lowestPingServer = server
commonLoadTime =
.(commonLoadTime)
pingThreshold =
serverStats = StatsService.Network.ServerStatsItem
dataPing = serverStats[]:()
pingValue = (dataPing:())
pingValue >= pingThreshold
TeleportService:(placeId, lowestPingServer.id)
Loads code from the internet. It downloads more code when it runs (loadstring + HttpGet), which can change after it was posted. From: games.roblox.com.
Lets you join the server with the lowest ping for you

Universal