My camera is not behaving properly

I will try a solution with implementing the camera inside the character code and let you know later if it helped.