Character rotation

How to make a character turn forward only when walking moving

And when standing, make it so that the camera does not affect the character’s rotation

And when character sprint rotate to movement direction

Here’s my post from your duplicate topic: