Animating a Gun but the Bone moves away from the Mag

Hello. I am looking to ask for help on a situation I have been experiencing for a while. I have a bone parented to the magazine of a handgun and when I move the bone the bone moves the mesh but the bone moves far away from the mesh. I have had this problem for several years and no one has ever answered it and ignored me. Please help, I am desperate as it really pushes me away from actually learning Blender.