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

How do I make this teleport everyone to the desired destination?

Asked by 10 years ago
p[i]:MoveTo(Vector3.new(75.4, 326.9, -469.7))

How do I fix this so that it will teleport everyone in the server to that location; not just 1 person.

1 answer

Log in to vote
0
Answered by 10 years ago

Use a for do function.

for i,v in pairs(game.Players:GetPlayers()) do
    v:MoveTo(Vector3.new(75.4, 326.9, -469.7))
end

You can also do this with a brick;

for i,v in pairs(game.Players:GetPlayers()) do
    v:MoveTo(game.Workspace.Part.Position)
end
0
Thank you! :D MUSHR0OM 0 — 10y
Ad

Answer this question