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

How do i move ALL the players in one position?

Asked by 7 years ago

Ok, so in my game i want to move all my players at one position all at once and i tried (in a LocalScript)

wait(5)
game.Players.LocalPlayer.Character.Torso.Position = Vector3.new(61, 50, 47)

And there was an error and the script didnt work, why and can you tell me y?

0
You want to do this in a server script, there are functions to get the players. User#5423 17 — 7y

1 answer

Log in to vote
-1
Answered by
Bertox 159
7 years ago

Do it in server script

for v,player in pairs(game.Players:GetChildren) do
    player:FindFirstChild("Character"):MoveTo(Vector3.new(0, 0, 0))
end
0
Character is not a child of player. cabbler 1942 — 7y
Ad

Answer this question