'Child of' constraint not working on armature
The hand bone you're trying to constraint is a connected child of another bone, so it isn't free to move.
Try to do the opposite, and make the main gun bone a constrained child of an appropriate hand bone.
After settign up the constraint, press its &quot;Set inverse&quot; button.