Apparently, when I attach a weapon in my player’s hand, the weapon automatically becomes the center of the rig of all parent objects. Any solution?
That seems … improbable. Show us the code that makes that assignment, or tell us how you do that.
Check your pivot/center and global/local buttons in the Scene window in the editor.
Shortcut keys are Z and X to toggle those.