Help with code for multiple weapons

hi, i would like to code a script for multiple weapons.
i want to make the weapons through dot product, and want each weapon to have different abilites. How would i make different code for multiple weapons in two scripts total (local and server) without it being too messy and so it would be easy for me to edit and add new features?

-i would have the weapons list in module script

What your looking for really is the usage of OOP which stands for object orientated programming. Personally I am not an expert in OOP on Roblox but the basic concept is you create one object which has all the code in and just add metatables for separate features.

1 Like

Thanks i’ll look into that, when i tried to look into metatables i didnt understand them but ill try again