I want to make a small game and I need some help witht something

So I want my character to be able to shoot with his weapon , then by pressing “1” for example he will put his weapon on his back and then when i press click he will punch.

I can make the shooting scripting and the punching scripting ,but how can i make him put his weapon on the back and then be able to punch using click?

I hole you understand what i need