Intentionally Stop a :MoveTo()

I’m currently making an NPC, but would like to stop the MoveTo() when the player looks at it. I can’t think of many solutions currently, other than using an alternative to MoveTo(), which I currently don’t have much time to script. If anybody could help me with this, that’d be awesome.

Edit: I already know how to detect if the player is looking at the NPC.

You could create a new :MoveTo() to move to the position of the NPC, which would in turn stop it since it already is at that position.

1 Like