player is lying

hi,
i have a player with charactercontroller,

when i write script with transform.LookAt(movedirection),
the character lie, and is making funny thing while i’m moving it,

how to solve this, please?
(how to look without lying)

thanks a lot

LookAt() is for looking at a point. Not looking in a direction.

Try

transform.LookAt(transform.position + movedirection);

This should make the character look at a point just in front of him.