Universal Script 📌
18.4k Views
570 Executions

JOIN THE BEST PING SERVER

Universal Script 📌
sturpeegg
sturpeeggFirst script
3 years ago
Get an executor
Please login to perform these actions:

Does it work?

Early reports

100% say it works · 1 report in the last 2 weeks

Also noticed:

Description

Created by Empire4946 Features: CHECKS CURRENT SERVER PING JOINS SERVER WITH THE BEST PING Put it in autoexecute for better experience.

View Raw
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

local placeId = game.PlaceId
local serverLimit = 100
local servers = fetchServersData(placeId, serverLimit)

if not servers then
    return
end

local lowestPingServer = servers[1]

for _, server in pairs(servers) do
    if server["ping"] < lowestPingServer["ping"] then
        lowestPingServer = server
    end
end

local commonLoadTime = 5
task.wait(commonLoadTime)

local pingThreshold = 100
local serverStats = StatsService.Network.ServerStatsItem
local dataPing = serverStats["Data Ping"]:GetValueString()
local pingValue = tonumber(dataPing:match("(%d+)"))


Comments

1
Log in to join the conversation. Login
serious's profile picture
serious3 years ago(edited)

no way u just used chat gpt for that u could have atleast hid the script so nb knew

1

Tags

More universal scripts

See all
Universal Script 📌
12
0
Approved 10 minutes ago
Universal Script 📌
17
1
Approved 27 minutes ago
Key System
Universal Script 📌
18.3k
165.5k
Bumped 1 hour ago
Key System
Script hub
10.9k
20.3k
Bumped 3 hours ago

Script hub

TLMenu V4

Universal Script 📌
249
7
Bumped 4 hours ago