Should I have diffrent scipts for each of my weapons

I’m working on a 2D game. There will be a lot of diverse weapons, such as machine guns, flame throwers, mini guns, electrical zappers, dual machine guns…etc that the player can use.

Should I make a different script for each weapon or is there a better, cleaner way to manage these weapons

No, don’t make a different script for every weapon. Look at any alternative from your language of choice, code experience, game design and mechanics, etc - - but don’t write a script for each one.