Well im making a zombie game and I need to know how to teleport players to a new map.
There are two ways to teleport players.
character:MoveTo(Vector3.new(#,#,#))
Call the MoveTo() method on a character model.
character.Torso.CFrame = CFrame.new(#,#,#)
Change the CFrame of the character's torso.
As for teleporting ALL players, for that we need to use a for loop.
for i,v in pairs(game.Players:GetPlayers()) do local character = v.Character --teleport stuff end
Here, we are going through all the players 1 at a time. v equals the player we are currently at. Since v changes to the current player each time the loop iterates, we can affect all players in a very short amount of time.
Hope I helped!
Locked by Shawnyg, SanityMan, and adark
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?