Many short scripts or a single longer script?

So I am in the middle of scripting a rather large project, so far Im about 500 lines in.

Im doing almost everything in 2 scripts, 1 for client and 1 for server. Each one is doing literally everything in the game… A basic list of what Im doing

Shop
Inventory
Mini-game round system
Map Voting
All datastores
XP and Currency system

and will include the following in the future

Admin/Modcall system
Pets
DevProducts/Gamepasses
and about everything else I need to finish the game

So my question is which is more efficient/user-friendly, doing all of this in a single script or having individual scripts for each?

a nice tip is just to separate them and put other lines of code in modules so you dont have to write functions

Many Short Scripts is the answer

2 Likes

Technically you could do this all in one script, but in my opinion it’s best to give each system it’s own Script. This keeps things much more organized, and prevents confusion later on. Plus, handling this many processes in one Script, means you will have to use many different threads, which is normally not desirable.

2 Likes