Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local paste = "https://pastebin.com/raw/3RbC1t7n"
- if not game:IsLoaded() then game.Loaded:wait() end
- local rand = Random.new()
- local plr = game:GetService("Players").LocalPlayer
- local plrs = game:GetService("Players")
- local function newserver()
- syn.queue_on_teleport("loadstring(game:HttpGetAsync(\""..paste.."\"))()")
- local servers = {}
- for _ = 1,100 do
- for _ = 1,3 do
- local decode = game:GetService("HttpService"):JSONDecode(game:HttpGetAsync("https://games.roblox.com/v1/games/"..game.PlaceId.."/servers/Public?sortOrder=Asc&limit=100&cursor="))
- if decode.nextPageCursor ~= nil then
- decode = game:GetService("HttpService"):JSONDecode(game:HttpGetAsync("https://games.roblox.com/v1/games/"..game.PlaceId.."/servers/Public?sortOrder=Asc&limit=100&cursor="..decode.nextPageCursor))
- for _,server in pairs(decode.data) do
- if server.maxPlayers ~= server.playing then
- servers[#servers+1] = server.id
- end
- end
- else
- for _,server in pairs(decode.data) do
- if server.maxPlayers ~= server.playing then
- servers[#servers+1] = server.id
- end
- end
- break
- end
- end
- coroutine.wrap(function()
- game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, servers[rand:NextInteger(1,#servers)], plr)
- end)()
- wait(6.66)
- end
- end
- wait(2)
- pcall(function() for i,v in pairs(plrs:GetPlayers()) do plr:RequestFriendship(v) end end)
- wait(9)
- newserver()
Add Comment
Please, Sign In to add comment