Weapon System

I tried to make it but still not very clear.
I made this because I want it the player can only pick up weapons when the currently equipped gun is not a pistol, except the first weapon. So always need to swap to secondary weapon to replace it.

I make this to attach the pistol to the back of the player and equip a new swappable weapon. If we don’t have a secondary weapon.

and make this to detach and destroy the currently equipped weapon and attach the new weapon, when we already has a secondary weapon.

Unfortunately I can’t detach and destroy the weapons they stay in the players hand when picking up new guns, and how to properly reference the picked weapon and equipped weapon.