0% found this document useful (0 votes)
432 views2 pages

Roblox Auto Server Hop Script

Uploaded by

rov9959
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
432 views2 pages

Roblox Auto Server Hop Script

Uploaded by

rov9959
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

local Config = {

MaxStore = 3600,
CheckInterval = 2500,
TeleportInterval = 1000
}

if not game:IsLoaded() then


[Link]:Wait()
end

local HttpService = game:GetService("HttpService")


local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
local Player = [Link]

getgenv().ServerHop = function()
local PlaceId = [Link]
local JobId = [Link]

local RootFolder = "ServerHop"


local StorageFile = `{RootFolder}\\{tostring(PlaceId)}.json`
local Data = {
Start = tick(),
Jobs = {},
}

if not isfolder(RootFolder) then


makefolder(RootFolder)
end

if isfile(StorageFile) then
local NewData = HttpService:JSONDecode(readfile(StorageFile))

if tick() - [Link] < [Link] then


Data = NewData
end
end

if not [Link]([Link], JobId) then


[Link]([Link], JobId)
end

writefile(StorageFile, HttpService:JSONEncode(Data))

local Servers = {}
local Cursor = ""

while Cursor and #Servers <= 0 and [Link]([Link] / 1000) do


local Request = request or [Link]
local Response = Request({
Url =
`[Link]
sortOrder=Desc&limit=100&excludeFullGames=true&cursor{Cursor}`,
Method = "GET",
})

local Success, Body = pcall(function()


return HttpService:JSONDecode([Link])
end)
if not Success or not Body or not [Link] then
continue
end

[Link](function()
for _, Server in pairs([Link]) do
if
typeof(Server) ~= "table"
or not [Link]
or not tonumber([Link])
or not tonumber([Link])
then
continue
end

if [Link] < [Link] and not


[Link]([Link], [Link]) then
[Link](Servers, 1, [Link])
end
end
end)

if [Link] then
Cursor = [Link]
end
end

while #Servers > 0 and [Link]([Link] / 1000) do


Notify("Server Hopping")
local Server = Servers[[Link](1, #Servers)]
TeleportService:TeleportToPlaceInstance(PlaceId, Server, Player)
end
end

You might also like