Hello, I want to rotate the character along the z axis

Can you show where you copied what I did and also as much of your character code as possible? It’s possible it could be overridden by something else, such as mouse input or something.