Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i move ALL the players in one position?

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?

1 comment

0

You want to do this in a server script, there are functions to get the players.

1 answer

Do it in server script

for v,player in pairs(game.Players:GetChildren) do
	player:FindFirstChild("Character"):MoveTo(Vector3.new(0, 0, 0))
end

1 comment

0

Character is not a child of player.

This discussion is preserved as it was. New answers, comments, and votes are closed.