From what I understand so far, a modular framework consists of a main script and localscript that loads all of the modules. My problem is whether I should put the game logic inside the main scripts or in the modulescripts. Thanks
For example, If I wanted to give a player a weapon when spawned, do I write the game logic in the mainscript and then require the module that gives a weapon? Or should all the code be inside the module and the mainscripts just requires them. Im so confused ty
If you’re a person that doesn’t care much about their script organization nor having control over what happens when then jamming everything into 1 module would be the way.
Likewise, having each method in a module and calling them when needed is much more organized and gives you more control over when something happens.
This is entirely up to you but I’d prefer having it organized and only putting the necessary methods inside the module.