File:Return in a Module.jpg

The return keyword is a keyword that allows functions, scripts, and modules to pass down variables to the line that called the function or script, or store the module's functions to a table with any name. This is called returning a variable.

Possible errors when using returnEdit

  • If you put return before the end of a function or script, it will cause a compiling error.