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

How do I teleport players into a map from the lobby?

Asked by 10 years ago

What I know about scripting, 0%. So I am learning it. I am making a game and I need to let the players teleport into the map. Please answer!

1 answer

Log in to vote
0
Answered by 10 years ago
Wait (30)
target = CFrame.new(0, 50, 0) --could be near a brick or in a new area
for i, player in ipairs(game.Players:GetChildren()) do
    player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)
    --add an offset of 5 for each character
end
Ad

Answer this question