My weapon's camera view is not moving up and down (although the camera is)

I found the answer here and it helped me:

However, this solution contains a problem: it change pawn pitch wholly. So, if your FPS character has body or you’re going to add a third person character view with first person aiming, you need to take it into consideration.