createmodule
Clones the CommonUtil module and parents a Constants copy under Common.
Syntax
createmodule() -> Instance
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
Instance | The returned Instance. |
Description
createmodule is part of the Miscellaneous library. Miscellaneous helpers cover module identity, scheduler settings, teleport queueing and other process-level utilities.
Each call creates or returns a fresh object or value that you can store and pass to other functions.
Example
local module = createmodule()
print(module, module.Parent)
Notes
- Some settings affect the module globally rather than the current script.