Any way to organize scripts in ServerScriptService better?

I want to make my game better organized to easily edit stuff and make it an eye-sore to look at. I tried to get something going on but as the more stuff I added the more I just stopped caring for it.

I tried looking at tutorials but none of them have what I want, so I’ll take any suggestions!
image_2024-12-09_164001920

2 Likes

You don’t need that many scripts in ServerScriptService. You should condense them into one or a few scripts.

2 Likes

It already looks like you are utilizing folders to organize scripts. The only other suggestion I have is it possibly utilize module scripts.

1 Like

You organize them like how I usually do.
However, you should probably start using more ModuleScripts.
Here is a tutorial if you need it.

I’ve been dreaming of being more organized, but I’m simply too used to not using them. They really provide a very clean area when in use. Every time I see a good resource the DevForum, they are made with clean code and sorted into multiple ModuleScripts.

For a short explanation as to why: They clean up your normal Scripts, especially when using too many functions. Instead of seeing a large, long script, you can see a few organized ModuleScripts.

Other than that, you should be good. If you don’t want to utilize ModuleScripts, you should try and combine some of those Scripts. There is simply a bit too much imo .

2 Likes

Thanks for the feedback, I’ve gotten some progress on converting most of my scripts into ModuleScripts, here is what the ServerScriptService looks like now.
image_2024-12-11_172653797

EventProvider now contains all the previous event scripts, CashDrop and leaderstats are also now the same modulescript.

mind you its also still a work in progress

1 Like

I think that looks a whole lot better.
Good job!

I recommend putting even the simplest stuff in a module. It could save you a lot of time in the future.