Setting up an FPS controller

I have a gun which is parented Camera.
I want my weapons to be locked at a point that where they only move with the camera

What I mean is that when you look up, your camera moves up and your weapon turns to you see it moving, like a typical FPS game.

Attach the gun to the main camera