How do i fix camera position in my own character

Try attaching a SpringArm on the character, then attach the camera to that.

This allows you to constrain the camera on different rotation axes.