Universal Script πŸ“Œ
44.2k Views
1.7k Executions

Script Verified ServerHop

Universal Script πŸ“Œ
vxsty
vxsty
Verified Badge
Verified User
OG
OG: invite only, given by Thunder Mods
Hall of Fame10M views
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Optimized & Customizable universal server hop! This script lets you choose the server you wanna server hop to, For example: Highest FPS, Lowest Ping, Lowest Players, ... I don't think I will be updating this any time soon, Feel free to fork it or remake or use publicly.

View Raw
local IGNORE_FILE = "ServerHop.txt"
local HOUR = 3600

local Module = {}

local HttpService, TeleportService = game:GetService"HttpService", game:GetService"TeleportService"

local function GET()
    if not isfile(IGNORE_FILE) then return {} end
    local list = {}
    local now = os.time()
    for _, line in next, readfile(IGNORE_FILE):split("\n") do
        local pmo, ts = line:match("([^|]+)|?(%d*)")
        ts = tonumber(ts) or 0
        if now - ts < HOUR then list[pmo] = ts end
    end
    return list
end

local function Update(List)
    local sybau = {}
    for ts, pmo in next, List do
        table.insert(sybau, ts .. "|" .. pmo)
    end
    writefile(IGNORE_FILE, table.concat(sybau, "\n"))
end

local IgnoredServers = GET()

function Module:GetServers(Sort)
    Sort = Sort or { ping = true, fps = false, asc = false }
    
    local cursor = ""
    while true do
        local success, result = pcall(function()
            return HttpService:JSONDecode(game:HttpGet(`https://games.roblox.com/v1/games/{game.PlaceId}/servers/Public?limit=100&sortOrder={(Sort.asc and "Asc" or "Desc")}&excludeFullGames=true&cursor={cursor}`))
        end)
        
        if not success or not result or not result.data then error("server error (not success or no result or no data)") end



Comments

12
Log in to join the conversation. Login
debug_colonel's profile picture
debug_colonel2 years ago

the only thing i like here is how bro names the variables like WW Fr

2
vxsty's profile picture
vxstyOG
OG
OG: invite only, given by Thunder Mods
Verified Badge
Verified User
Hall of FameUploader2 years ago

@WEPRE_productions funsies

2
v0idlua's profile picture
v0idlua1 year ago

21 ahh dislikesπŸ₯€

1
vxsty's profile picture
vxstyOG
OG
OG: invite only, given by Thunder Mods
Verified Badge
Verified User
Hall of FameUploader1 year ago

@PlayerZN botted

1
WERTX's profile picture
WERTX1 year ago

Maybe W script i think

1
notfynnn's profile picture
notfynnn2 years ago

W SCRIPT

1
wjGQiwhUsbUsi9's profile picture
wjGQiwhUsbUsi92 years ago

Bro prolly skidded this from iyr

1
UnnesscaryInventions's profile picture
UnnesscaryInventions2 years ago

people be making anything

1

Tags

More universal scripts

See all
Universal Script πŸ“Œ
57.3k
270.0k
Bumped 35 minutes ago
Key System
Script hub
2.2M
2.5M
Bumped 4 hours ago
Key System
Script hub
4.0M
2.7M
Bumped 4 hours ago

Script hub

Hall of Fame #5

KeylessVerified script badge[KEYLESS] Moondiety Script | 30+ supported Games

Script hub
561
2.6k
Bumped 5 hours ago
Script hub
7.8k
70.5k
Bumped 6 hours ago