How would i make a modular Weapon System?

So i have struggling for the past few days trying to make one, im trying to make one thats easy to add weapons animations, etc how would this be done?
image
this is the best i got