Animation not working properly on sloped terrain

The animation works correctly when on a flat area, but it does not fit exactly where it should on a sloped terrain. There is a starting point for the animation. When I press the e key, it goes to that starting point and the animation plays. I do this using the move to component node, but why doesn’t it work on rough terrain?

It works correctly when on a flat surface.

on sloping ground


(post deleted by author)

What do you think is the main problem here?

Foot IK in the Animation Graph.

@Rev0verDrive
Can you explain a little more about what I should do?

first step would be to remove it from the flow and see if it corrects what you want.