Root Motion snap back

Yes, the red line indicates the root motion movement.

when I use " process root animation" he moves along the floor til he rolls off the edge , with a red line getting longer behind him. This means the animation has root motion right?

Hello, How can i do this. I am still a newbie