Slope of the parts of the legs

Hi,
What do I want to achieve. I want the player’s feet to always have a rotation of the underground slope / 2 with the maximum rotation of 0 degrees. This should not be an animation and look natural.
I have done this:
I got the underground inclination / 2 of the player. (And the character)
Thanks

Animation or not, it will still need to utilize the Motor6D of the player’s feet. Any other animation playing on the character will constantly try to change this. So you’d need to ensure that any animations you use do not include tracks for the feet. Next you can use raycast or something to get the normal vector of the slope and then calculate the rotation required to match the feet flat against the surface.