Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local HttpService, TPService = game:GetService("HttpService"), game:GetService("TeleportService")
- local ServersToTP = HttpService:JSONDecode(game:HttpGet("https://games.roblox.com/v1/games/"..game.PlaceId.."/servers/Public?sortOrder=Asc&limit=100"))
- for _, s in pairs(ServersToTP.data) do
- if s.playing ~= s.maxPlayers then
- TPService:TeleportToPlaceInstance(game.PlaceId, s.id)
- end
- end
Add Comment
Please, Sign In to add comment