Animation playing in persona but not in viewport

Basically my animation plays fine in persona but when I play the level in the viewport and attack my character goes to a base pose. Sometimes it jitters and moves at the rhythm of the animation i’m trying to use, I’m using Anim Montages for this because root motion isn’t working for me with animations played in the state machine.