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

MoveTo Event Help?

I keep looking over this SIMPLE SIMPLE CODE but I see no errors or any problems!

Tp = game.Workspace:WaitForChild("Tp")
APlayers = game.Players:GetChildren()
wait(10)
for i,v in pairs (APlayers) do
	v:MoveTo(Vector3.new(-88.027, 47.591, 109.527))
end

1 answer

✓ Accepted answer

When calling the i,v loop, v equals the Player in game.Players. To move the actual character, you are going to want v.Character, so change line 5 to this:

v.Character:MoveTo(Vector3.new(-88.027, 47.591, 109.527))

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