fps leaning problem

Hi all.I’m trying to make fps leaning.But I ran into a problem that only transform works.I made Camera Def functions for transform and rotation(default camera position).And I made leanleft and newcamera(this is the position in which the camera will have to fit).But for some reason when you press the key only transform works,but it does not rotate on rotation