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

Teleport players to dif locations?

Asked by 8 years ago

How would I go about making a player tele to a map all in different spots?

ik about moveto and everything just how do I identify each player and teleport them?

0
To teleport, edit the Torso CFrame or position of a player. GoldenPhysics 474 — 8y
0
yea ik, but how to get each individual player? sentry3 6 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

You can loop through every single player in the game by doing the following:

for _,plr in pairs (game.Players:GetPlayers()) do
    plr.Character.Torso.CFrame = CFrame.new(Vector3.new(0,100,0)) -- code, etc.
end

Hope I helped! If you need any help with teleporting the player, ask!

~TDP

Ad

Answer this question