What is the difference between using WalkToPoint and :MoveTo()?
I know, really short topic.
I think MoveTo() sets the walk to point of a humanoid
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)
: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.
Model.MoveTo is not the same function as Humanoid.MoveTo and definitely does not do the same thing.
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.
Thank you for the explanation!
This function causes the Humanoid to attempt to walk to the given location by setting the Humanoid.WalkToPoint and Humanoid.WalkToPart properties.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.