How should you name scripts?

Most people use these terms:

  • Controller
  • Handler
  • Manager
  • Helper
  • and more

I am confused what’s the difference between these. If anyone can help, that’d be greatly appreciated!

doesn’t matter at all, just name them how you want.

these are my scripts on a game i’m working on
image

1 Like

As EvilTony99 already stated, a script’s name doesn’t matter at all; It’s just a matter of convenience for the developer and its development workflow (‘how should I name this script so I know what is it for?’, mainly).

It doesn’t matter what you name your scripts, as long as it works for you!

Though personally I use a single-script service/controller structure.

Which means I usually use a module loader and only have 1 server-sided script, and 1 client-sided script for the whole entire game, and the rest of the game is made up of modules for organization.

Replace “Module” with the main purpose of your script (e.g. Build, Flight).

ModuleService - Server-sided module that is used as a normal script
ModuleController - Client-sided module that is used as a normal script

Also for the rest you can name it whatever you want, for example if I were making a building system I can group a bunch of modules under the “BuildController” in this case, I was usually name them “Input” to see if they have started building and “Placeholder” to create a placeholder for their builds.

1 Like