Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I want to make a teleport server script?

How can I make a teleport server script that toggles only two servers, I have the id of the two servers in a raw website?

So I stay but the same server is repeated several times

function tp()
    local site = game.HttpService:JSONDecode(game:HttpGet('https://pastebin.com/raw/5xDkTZXd'))
   
    game:GetService('TeleportService'):TeleportToPlaceInstance(game.PlaceId, site.data[math.random(1, table.getn(site.data))].id)

        
end

I would greatly appreciate your help

1 comment

0

Use HttpService:GetAsync() instead of game:HttpGet()

1 answer

Try going to setting. Go to permissions and check mark it all and see if that helps.

1 comment

0

Hope this helps :)

This discussion is preserved as it was. New answers, comments, and votes are closed.