1. local Http = game:GetService("HttpService")
  2. local TPS = game:GetService("TeleportService")
  3. local Api = "https://games.roblox.com/v1/games/"
  4. local _place = game.PlaceId
  5. local _servers = Api.._place.."/servers/Public?sortOrder=Asc&limit=100"
  6. function ListServers(cursor)
  7. local Raw = game:HttpGet(_servers .. ((cursor and "&cursor="..cursor) or ""))
  8. return Http:JSONDecode(Raw)
  9. end
  10. local Server, Next; repeat
  11. local Servers = ListServers(Next)
  12. Server = Servers.data[1]
  13. Next = Servers.nextPageCursor
  14. until Server
  15. TPS:TeleportToPlaceInstance(_place,Server.id,game.Players.LocalPlayer)