Help with modularisation and one script architecture

I don’t know how I feel about a fully eager-loaded structure. If any module experiences an error, your entire structure comes crashing down. I think it’d be better to adopt a lazy-loaded structure (i.e. a library loader).

I’ve tried using this structure before and it was an absolute nightmare as far as maintainability, organisation and freedoms went. This code strangles you to have a certain format for all ModuleScripts which may not particularly be desirable in your case.

Also, something I noticed immediately; don’t check for a LocalPlayer to differentiate the client and the server. The methods in RunService, IsClient and IsServer, exist for a reason.


@goldenstein64

Code Review has relatively strict guidelines to follow - the category name alone isn’t something you can use alone to determine the appropriate use of that category. Development Discussion is also a more casual location and is typically a lounge for development more than anything. This category is fine. Asking for advice, tips or help is a part of getting support.

2 Likes