For more information on what a
constant function
is and is not, view this.LRM_INIT_SCRIPT
LRM_INIT_SCRIPT
This macro allows you to run a piece of code before your script is ran. It accepts a constant function.
You must yield somewhere, even if it’s just a
task.wait()
at the end. Otherwise, script_key
will read as nil
.Good usage
Good usage
Bad usage
Bad usage