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

how do you teleport all players to another game?

Asked by 5 years ago
Edited 5 years ago

I have an intermission script and when it reaches zero it teleports you to another game here is the script I found nothing on the wiki and etc

game:GetService('TeleportService'):Teleport(2049349140, game.Players.> what do I put here< ) ? please help

0
you problobly need maps, so maybe game.Players.Workspace = Map 1 Carforlife1 59 — 5y

1 answer

Log in to vote
2
Answered by
Rare_tendo 3000 Moderation Voter Community Moderator
5 years ago

Use a generic for loop to run through the players and teleport each player in it.

for _,v in pairs(game.Players:GetPlayers()) do
    game:GetService('TeleportService'):Teleport(2049349140, v)
end
Ad

Answer this question