Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GetRobloxServerInstance(placeId)
- -- Returns a place instance string if it can obtain one, or false.
- -- Can be used in combination with TeleportService:TeleportToPlaceInstance()
- local serverJson
- local requests = 0
- local http = game:GetService("HttpService")
- while not serverJson do
- requests = requests + 1
- if requests > 15 then
- return false,"Error, unable to establish connection to Roblox servers"
- end
- serverJson = http:GetAsync("http://www.rproxy.tk/Game/Placelauncher.ashx?request=RequestGame&placeId="..placeId)
- wait(.25)
- end
- return http:JSONDecode(serverJson).jobId
- end
- print(createRobloxServer(174525867))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement