Animation keeps playing while walking

I’m trying to make custom emotes using mobyboyys script but it plays the animation but if I walk it still keeps playing. I want it to be an animation where if I walk it stops playing it. here is the module with my settings:

what am I doing wrong. is it the animation priority. Because it is on Action

Yes it is the animation priority, lower it down.

to what? I tested all the priotities

Oh, then my secondary thoughts were correct, you need to make it so the animation stops once the Humanoid’s state changes, or any other way of detecting movement on your side.

I’ve noticed your custom system, so telling you to bother with the Animate local script isn’t needed.