[Help] Adding Melee Weapons

So, this is kind of a mix of questions.
I’m wondering how i can add melee weapons, from scratch, and also have a simple inventory system, where i can pick items up, such as the melee weapon, and be able to move it into slots, etc.