Universal Script 📌
21.9k Views
9.3k Executions

Universal Serverhop [No Double Servers]

Universal Script 📌
Seby
SebyPublished 10
4 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

How it works: - Looks through a list of 100 Servers - Picks a server that isn't full (If it does it will go on with the loop until it finds a working server) - Before it joins the server it saves the ServerId in a file with the os.time of the current hour. - If the hour is different it will delete the file so that it refreshes next time. - If the hour isn't different it will look through the file and the server site for double servers, if found then it won't join that one, it will keep going. Credits to CharWar from v3rmillion Original thread: https://v3rmillion.net/showthread.php?tid=1040972

View Raw
local PlaceID = game.PlaceId
local AllIDs = {}
local foundAnything = ""
local actualHour = os.date("!*t").hour
local Deleted = false
local File = pcall(function()
    AllIDs = game:GetService('HttpService'):JSONDecode(readfile("NotSameServers.json"))
end)
if not File then
    table.insert(AllIDs, actualHour)
    writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))
end
function TPReturner()
    local Site;
    if foundAnything == "" then
        Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100'))
    else
        Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100&cursor=' .. foundAnything))
    end
    local ID = ""
    if Site.nextPageCursor and Site.nextPageCursor ~= "null" and Site.nextPageCursor ~= nil then
        foundAnything = Site.nextPageCursor
    end
    local num = 0;
    for i,v in pairs(Site.data) do
        local Possible = true
        ID = tostring(v.id)
        if tonumber(v.maxPlayers) > tonumber(v.playing) then
            for _,Existing in pairs(AllIDs) do
                if num ~= 0 then
                    if ID == tostring(Existing) then
                        Possible = false
                    end
                else
                    if tonumber(actualHour) ~= tonumber(Existing) then
                        local delFile = pcall(function()
                            delfile("NotSameServers.json")
                            AllIDs = {}
                            table.insert(AllIDs, actualHour)
                        end)


Comments

5
Log in to join the conversation. Login
jonjeguedegues's profile picture
jonjeguedegues5 days ago

yeah that sh work

1
DJ_Sploitz's profile picture
DJ_Sploitz11 months ago

is their a way to make it server hop every 5 minutes?

1
Ronisalive's profile picture
Ronisalive11 months ago

Hey if you make can you drop here i will check

1
RiftScripts's profile picture
RiftScripts1 year ago

is there a possible way to add smth in that script that looks into the roblox in chat for people saying "cheater, Hacker, i will report u, report" or when the user is written into the chat so that it then server hops and also included the normal hop functions?

1

[deleted]

Replying to a deleted comment
RiftScripts's profile picture
RiftScripts1 year ago

okay so i created a script could you take a tiny look over?

1

Tags

More universal scripts

See all
Script hub
3.0M
691.0k
Bumped 2 hours ago
Key System

Script hub

#3 today

Verified script badgeFlow Hub | 35 Games | Updated

Universal Script 📌
5.8k
19.8k
Bumped 2 hours ago
Key System
Universal Script 📌
207
10
Approved 3 hours ago