Camera won't lean sideways, how do i fix this?

So I wanted to make a system if the player moves left, the camera leans (rotate not move) a bit to the left same with the right side…

I followed a tutorial and checked everything 3 times but the camera wont rotate sideways.
I did the same thing for the player model and then it does work.

The “N” key is there for testing the lean.

Some First Person Camera settings
image

I have tried turning off the “use pawn control rotation” and then it can rotate sideways but then i cant look up or down anymore.

Help would be appreciated.

There’s probably a better way to do this with FirstPerson default character, but you can achieve this by adding a Spring Arm, which will have the Use Pawn Control Rotation, and attach your camera to it with Use Pawn Control Rotation set to false. Then you can rotate your camera’s X axis freely.


image

You can set the Target Arm Length of the Spring to 0 to preserve FPV