How do i fix the camera on my player but stop it from moving when my character does ?

How exactly would you do that ? i have tried so many different things but i cant seem to figure it out.