Scripts or Module Scripts?

So I am going to work on a game, this game is going to have a lot of features like trading, inventory, armour, weapons etc

Would It be best to make a bunch of module scripts or just Scripts?

I want this game to be really efficient in terms of scripting. So how would I go about doing this. I have seen some really advanced scripters say that it should be done using module scripts and others or others that have a bunch of normal scripts.

It’s up to preference, modules are just extensions of scripts, mainly used for organization purposes. I would prefer modules because it helps me organize my scripts and not having to scroll through hundreds of lines to find one thing.

1 Like

both.
use scripts to require certain parts of modulescripts; for example instead of always loading an animation like this in each individual script:

local anim = script.Animation
animplay = humanoid:LoadAnimation(anim)

you can use a animation module where you can do this

bindableevent:Fire(TargetHumanoid,Action,script.Animation)

and the animation module will apply the animation to the target humanoid, make the priority whatever arguement you passed, and will load the animation inside the script

1 Like

If you’re gonna repeat the same thing in multiple scripts, like you’re gonna have the same function in 10 different scripts, ModuleScripts are the way to go. Not only are ModuleScripts efficient, since you don’t have to repeat anything, they’ll make everything more organized, like what @VegetationBush said.

Probably the most helpful part of ModuleScripts are that if something breaks in one of your functions, you can just edit the one ModuleScript, and it’d be fixed for every script that requires it. If you had several scripts with that same function, you’d have to edit all of them.