1 min read

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 — openapi

A ModuleScript is a type of Lua source container that runs once and must return exactly one value.

Properties

NameTypeRequiredDescription
SourcestringfalseThe 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"
    ]
  }
}