First Person Camera problem

Hi, i have made a script that allow me to walk around and jump and so on, but now i am facing a problem with the camera.
My “player” is an animated model and when i move i see the head coming out in the camera view. I have just made the player a prefab and added a main camera inside the models head, is there a better way to do this?

You can mess with the near clipping plane attribute of the camera to try to clip off the head without clipping off anything else around it. A more effective approach, though, is to put the player model in its own layer, then turn off that layer in the camera’s culling mask.