How should I go about making a combat system? (Multiple Scripts vs One)

I’ve been trying to decide how to make a combat system. Initially I wanted to use multiple scripts to make my game, since it’s going to have multiple weapons, but I’ve heard that you can make entire combat system with just one.

I’m thinking u might have to use module scripts to do that, which I’m willing to learn if I do, but is using multiple scripts inefficient? And is it even possible run just one or two scripts and a few remotes for all of combat across multiple weapons for all players?

I would suggest going for whatever you are most comfortable with. Its up to personal preference, personally i prefer to use a core script that uses the modules. I also believe it depends on the complexity . For more complex design i would consider breaking it up into multiple modules, but if its not that complex you could just go for a singular script design. I did personally learn how modules worked by making a pretty basic combat system with modules long ago. It was a good system tbh but it was fun.

3 Likes

ok thanks a lot. I guess I’ll start by learning how module scripts work