How would I cancel a moving humanoid?

I’m just wondering how I would be able to cancel Humanoid:MoveTo()
I need to cancel the moving humanoid because the current position where the humanoid is moving to has been outdated.

2 Likes

Make the humanoid:MoveTo(its own humanoidRootPart)

6 Likes

Try to destroy the part that it’s moving to with Destroy()

oh dear lord what kind of sorcery are you trying to do ?

If it’s destroyed, it’s not just stopping, it’s full-removal and not functionable anymore.

4 Likes

You’re doing Humanoid:MoveTo(Brick.Position), it wouldn’t matter if the brick ahs been destroyed or not, because the brick isnt connected to the script at all.

1 Like

oh, sorry, I didn’t know that. I thought pathfindingservice was making an npc move to a desired part. Sorry.

I’m sorry, sometimes people make mistakes… and sorcery is kind of a strong word. I hope you accept my apology.

6 Likes

Yes it’s okay, everyone can make these mistakes.

3 Likes

IIRC you can use Humanoid:Move(Vector3.new(0, 0, 0)) to stop a humanoid.

9 Likes

Basically, Character.Humanoid:MoveTo(Character.HumanoidRootPart)

5 Likes