Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local HttpService = game:GetService("HttpService")
- local TeleportService = game:GetService("TeleportService")
- local PlaceId = 292439477
- local Response = syn.request({
- Url = string.format("https://games.roblox.com/v1/games/%s/servers/Public?sortOrder=Asc&limit=100", tostring(PlaceId)),
- Method = "GET"
- })
- local GetRandomJobId = function()
- local JSONDecode = HttpService:JSONDecode(Response.Body)
- return JSONDecode.data[math.random(1, table.getn(JSONDecode.data))].id
- end
- TeleportService:TeleportToPlaceInstance(PlaceId, GetRandomJobId())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement