Roomtmotion not working

Okay so i want to add root motion when the character is walking. But right now it doesnt work. The root is moving, and rootmotion is turned on in the asset details. It plays the animation, but the player isnt moving with it, and after the animations is played the character turns back into place.

Desktop Screenshot 2021.09.02 - (2)