How to stop target from jumping during attack animation?

Im trying to stop my character from be able to jump and moving during the attack animations but im a bit confused on how to get it to work. I’ve tried a bit on fixing the issue but its not working correctly. Any help?

I also did change the root motion which helped stop her movements and only move during the animations when she takes steps so now the only issue is she can still jump during the animations.

Solved the issue on my own but i will keep the question up just in case it helps someone else :slight_smile:

Everything in the pic with the question wasnt need and set the “Can Jump?” boolean to false then put it before the attack animation set up

Then i set the a delay after the animations play to set the boolean back to true

(I dont mind showing how i have the animations set up if any one wants to understand this method)