Is it fine to have more than one Local/Server script when making a framework?

Heya Everyone!!

I got this question when trying to make a framework, I know frameworks are made out of a singular local and server script and many module scripts with said local and server being the “handlers” of the modules.

I’m just wondering if having more than one local/server script would still count as a framework.

I find that there’s no need to be sticking so strictly with convention if you’re not working with others. In fact, doing so is often worse if you find that using multiple scripts would allow for better organization. I personally can’t think of a reason to why you would use multiple scripts, but your situation might be an outlier I haven’t run into.

All in all, “framework” is much more loosely defined than you think and whether or not you should use multiple script is up to your discretion. If limiting yourself to only one script is really screwing with your organization, go ahead and use multiple scripts. If you’re worried it’ll get too confusing when you look back on it in two weeks, soldier on with one script, or write down your thought process for how everything is organized.

I think you really want to plan things out, You should be very much focusing on using ModuleScripts. I personally use more than 1 Client/Server script, depending on if the systems I make/work with work independently from a part of a game.

For example, my Projectile System has its own dedicated client sided script for its specific functions, while the rest of my game is ran on a different script (ClientMain). This is purposeful as I like to code certain frameworks such as a projectile system as if I were to use it in more than 1 game.

It can also be a case to case basis, as your game might have a lot of subplaces within the main one, and those might have different quirks that the main game might not have.

Personally, it’s again up to you, as what the last guy said. I honestly recommend just sticking to 1 script and using ModuleScripts, as I think using ModuleScripts in general just allows you to keep your game more organized.

Do what works for you.
This is how my ‘framework’ looks

This works good enough for me, I don’t want no guru telling me this is not optimal
I can just copy all of this into a new game and then start adding new individual scripts