Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I want to make a teleport server script?

Asked by 2 years ago
Edited 2 years ago

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

0
Use HttpService:GetAsync() instead of game:HttpGet() T3_MasterGamer 2189 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

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

0
Hope this helps :) theking66hayday 841 — 2y
Ad

Answer this question