How do you get a gun to focus

How do you get a gun to focus?
Example video:

Humanoid.CameraOffset