Advertisement
UsernameRTX

Server-Hop

Jul 19th, 2021 (edited)
1,825
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | Source Code | 0 0
  1. local HttpService = game:GetService("HttpService")
  2. local TeleportService = game:GetService("TeleportService")
  3.  
  4. local PlaceId = 292439477
  5.  
  6. local Response = syn.request({
  7.     Url = string.format("https://games.roblox.com/v1/games/%s/servers/Public?sortOrder=Asc&limit=100", tostring(PlaceId)),
  8.     Method = "GET"
  9. })
  10.  
  11. local GetRandomJobId = function()
  12.     local JSONDecode = HttpService:JSONDecode(Response.Body)
  13.     return JSONDecode.data[math.random(1, table.getn(JSONDecode.data))].id
  14. end
  15.  
  16. TeleportService:TeleportToPlaceInstance(PlaceId, GetRandomJobId())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement