ADVERTISEMENTREMOVE ADS
game serverhop script
71,409 views
Universal script•
1 year ago

Script Preview
Description
-- code i found in my basement please don't ask
-- this only works for the game you are in you can't serverhop to other games unless u replace game.PlaceId with something else :p
-- this only works for the game you are in you can't serverhop to other games unless u replace game.PlaceId with something else :p
Features:
- serverhop
ADVERTISEMENTREMOVE ADS
20 Lines • 762 Bytes
Verified
local TeleportService = game:GetService("TeleportService")
local HttpService = game:GetService("HttpService")
local Servers = "https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100"
local Server, Next = nil, nil
local function ListServers(cursor)
local Raw = game:HttpGet(Servers .. ((cursor and "&cursor=" .. cursor) or ""))
return HttpService:JSONDecode(Raw)
end
repeat
local Servers = ListServers(Next)
Server = Servers.data[math.random(1, (#Servers.data / 3))]
Next = Servers.nextPageCursor
until Server
if Server.playing < Server.maxPlayers and Server.id ~= game.JobId then
TeleportService:TeleportToPlaceInstance(game.PlaceId, Server.id, game.Players.LocalPlayer)
end
ADVERTISEMENTREMOVE ADS
ADVERTISEMENTREMOVE ADS







Comments