UsernameRTX

Phantom Forces Server-Hop

Jul 19th, 2021
1,082
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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())
RAW Paste Data