Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x = {}
- for _, v in ipairs(game:GetService("HttpService"):JSONDecode(game:HttpGetAsync("https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100")).data) do
- if type(v) == "table" and v.maxPlayers > v.playing and v.id ~= game.JobId then
- x[#x + 1] = v.id
- end
- end
- if #x > 0 then
- game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, x[math.random(1, #x)])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement