Difference between WalkToPoint and :MoveTo()

What is the difference between using WalkToPoint and :MoveTo()?
I know, really short topic.

caseOhThink

3 Likes

I think MoveTo() sets the walk to point of a humanoid

3 Likes

Its best to imagine that MoveTo is a function that sets the WalkToPoint.

When this occurs, it usually means the function is doing more than just setting the property, as well as this, WalkToPoint treats an empty vector (0, 0, 0) as a do nothing state, so if you want to move there, you have to use the function.

If Roblox added this property nowadays it’d probably be read only (they cant change that, breaking change)

4 Likes

:MoveTo() teleports the player to a specific position, while WalkToPoint makes the player walk to a certain point (as the name suggests). You could also use a model with a primary part.

I suggest reading the docs, this post might help you as well.

2 Likes

Model.MoveTo is not the same function as Humanoid.MoveTo and definitely does not do the same thing.

3 Likes

Yes, I am aware. I thought the OP was talking about humanoids, since they asked about WalkToPoint.

Model:MoveTo() changes the position of the Primary Part of the model, while for Humanoid:MoveTo(), it changes the position of the character.

2 Likes

Thank you for the explanation! :smiley: :+1:

2 Likes

This function causes the Humanoid to attempt to walk to the given location by setting the Humanoid.WalkToPoint and Humanoid.WalkToPart properties.

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.