Advertisement
SenseiRoblox

Untitled

Mar 26th, 2021
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. local x = {}
  2. 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
  3. if type(v) == "table" and v.maxPlayers > v.playing and v.id ~= game.JobId then
  4. x[#x + 1] = v.id
  5. end
  6. end
  7. if #x > 0 then
  8. game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, x[math.random(1, #x)])
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement