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.
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.
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Thank you! :D