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

How do I use MoveTo()?

Asked by
Relatch 550 Moderation Voter
9 years ago

I'm trying to move players to a brick on my map. I don't really know how to use that. Help?

2 answers

Log in to vote
-1
Answered by
gecko95 20
9 years ago

You have to use this

game.Workspace.Player.Torso.CFrame = CFrame.new(Vector3.new(0, 50, 0))
Ad
Log in to vote
1
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
9 years ago

Please look on the wiki before immediately coming here. You could have had your answer there.

MoveTo() takes a vector three value. So,

MoveTo(Vector3.new(#,#,#))

Or,

MoveTo(workspace.Part.Position)
0
Thanks! Relatch 550 — 9y

Answer this question