As I've been scripting, I realized I still don't have a great understanding of the difference between scripts, local scripts, and module scripts, in Roblox.
So I've been wondering how these interact with the two sides and how the change things on the opposite sides.
Below is what I believe to be true and my current knowledge.
LOCAL SCRIPTS
1. To me, local scripts are mainly used for camera work, animations, dealing with smooth movements, and insuring a good experience for the player.
2. Local scripts are mainly only client side, unless filtering isn't enabled, thus local parts can be created.
3. If filtering isn't enabled, bricks created by the client are given to the server side, which is how exploiters add in free models to games you're in.
SCRIPTS
1. To me, scripts are the server side aspect used for making bricks, doing background calculations, and making the game run correctly and smoothly.
2. Scripts cannot be used to move cameras, even when passed one through the remote events or remote functions.
3. Scripts are unable to interact with clients, but clients can interact with objects, such as GUI's that trigger scripts.
MODULE SCRIPTS
1. To me, module scripts are used for libraries, API's, and allowing multiple scripts with the same functions to use the same one.
2. Module scripts are used both by server sided scripts and client sided scripts, if put into replicated storage.
3. Module scripts can not have triggers, such as a GUI being pressed, nor can they have variables that aren't part of the module (Ex: module.text = "Hi").
If you have anything that can help me understand these more, or correct what I think to be fact, that would be very much appreciated!
Thanks in advance, legobuildermaster

1 comment
Thanks, that definitely helps me understand the server side vs. client side much more :)