How to Fix camera

How should I fix camera to character so that your camera would not go between character legs. I am trying to make TPS shooter game and camera to work like any other TPS game.