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

How would I teleport everyone to another game upon joining?

Asked by 3 years ago
Edited 3 years ago

I'm aware that TeleportService & Teleport are used, but otherwise, I'm not sure.

game:GetService("TeleportService"):Teleport()

0
I don't understand why you would need to do that? wolftamer894 50 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

Here is the code!

local teleportService = game:GetService("TeleportService")

game.Players.PlayerAdded:Connect(function(player) -- player joins game
    teleportService:Teleport(PlaceId, player) -- teleport the player to place
end)
0
Ok I get why now, thank you! BoogaBoogaHolder123 4 — 3y
Ad

Answer this question