Getting Camera to Move and Rotate when characters leans


I am attempting to make a similar leaning system to this :

When I make a New FPS project. I add a new input for the lean. Created an animation to lean. In the character I attach the camera to the Mesh2p.


Then when I execute the lean the camera does not move with the animation. This is the result:

What I would like to achieve is the Camera moving in the head position so when the animation plays the camera moves and rotates with the animation. Any help or suggestions on solving this problem are much appreciated.

Thank You!