Should I use module script or just regular script

  1. What do you want to achieve?
    I am considering to use module script or just regular script (local function) to run out function

  2. What is the issue?
    I want to know which on is better or these script is use for what

  3. What solutions have you tried so far?
    I am looking for explanation/solution in the lovely Devforum website <3

Thank you!

A script is something that runs code that you write to it. A modulescript can technically do the same, but also allows for other scripts to use functions and values within it.

If you just need some code to run, use a script.

If for some reason you need several scripts to all share a single defined function/value (or set of functions/values), use a module script.

You should read the documentation on modulescripts for more information on how to use them.

2 Likes