Root motion slight sliding issue after animation ends

In the attack animation scroll down in the root motion tab until you see “root motion root lock” and set it to anim first frame