I want to open this discuss here about how to put less load on the processor.
I have one friend that uses a module script even in the simplest things that could be done in a normal script. My question is: it is more stressful for the processor use Module script or the normal script?
Anyone has made a stress test to see if what is better to use?
====================================== BEST ANWSERS:
The stress on the processor won’t be that much of a difference. Anyways don’t use modules in the places you know you are only going to use once, or if the code is just 1 - 3 lines
module scripts run on the normal scripts, so it would only slow you down a bit when trying to reference and require it
it’s pretty negligible
I don’t really believe there is going to be a significant difference of stress on the processor with module scripts and scripts, since if there was there’d be huge problems. It’s also hard to compare the two since they both do different things. As far as performance goes, there’ll be no noticeable problems, and even still if there were, moduleScripts are still good assets.
You should not use module scripts when using services or data stores or anything that includes local.
According to Roblox, module scripts can’t have local in it.
Here is a doc that will give you information of when to use it