How do you make a reloading gun?

I have two items: Shotgun and Shotgun Shells. I’d like to make it so when someone uses Shotgun Shells (consumable) it removes itself and loads 8 rounds into the shotgun. How would I do this?

ok I can help add me in eggoboid

just make it a way that the unit doesnt drop it once its empty and make a when r is pressed make last ability casting units last held item go to max value

oh i use a variable thats max amo and when its lower you can press r to give your self the item with the needed value of amo