I have a character roll forward animation, presently press the space to play the animation normally, but the position of the character does not move forward, how should we deal with it?

I have a character roll forward animation, presently press the space to play the animation normally, but the position of the character does not move forward, how should we deal with it?

And I have four attack animations. During the attack, the characters will move forward. The animation can play normally, but the characters can not move forward. What should we do?

Help, please

Using an AnimMontage, you need to enable Root Motion.

See Enabling Root Motion here