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
Use HttpService:GetAsync() instead of game:HttpGet()