Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
roblox.engine.ModuleScript — cloud.docs
A ModuleScript is a type of Lua source container that runs once and must return exactly one value.
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| Source | string | false | The code to be executed. |
Complete Schema
{
"type": "object",
"properties": {
"Source": {
"type": "string",
"description": "The code to be executed."
}
},
"description": "A ModuleScript is a type of Lua source container that runs once and must return exactly one value.",
"x-oneOf": {
"Source": [
"Source"
]
}
}