XxBoomer

server hop

Oct 11th, 2020 (edited)
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. local HttpService, TPService = game:GetService("HttpService"), game:GetService("TeleportService")
  2. local ServersToTP = HttpService:JSONDecode(game:HttpGet("https://games.roblox.com/v1/games/"..game.PlaceId.."/servers/Public?sortOrder=Asc&limit=100"))
  3. for _, s in pairs(ServersToTP.data) do
  4. if s.playing ~= s.maxPlayers then
  5. TPService:TeleportToPlaceInstance(game.PlaceId, s.id)
  6. end
  7. end
Add Comment
Please, Sign In to add comment