Key Pressed Again

Basically, When i press 1 it will show PrimaryWeapon that’s good but with i press 1 again it need to set visibility off.
Any one know how to do it?

There are a few ways to do this, but the easiest way is to use Flip Flop.


Thank you it helped me a lot

Glad to help!