Gun moves around depending on camera angle

So I’m playing with Unity and tried to add a gun to my Main Camera (which is a part of the First Person Controller that comes with Unity). Problem is that depending on the camera angle the gun moves too. Look at this video to see what I mean:

As you can see depending on where I’m looking, the gun moves too.

This is a bit of a problem so I’d appreciate some help.

NOTE: I think it moves around because the gun’s pivot point is in its center, not the end of it where you “hold it”.

You should use another camera for the gun. Create the camera, remove the audio listener, set the clear flags to depth only, the culling mask to whatever your weapon’s layer is and place your weapon properly.