Script

Inherits LuaSourceContainer

Script holds Lua code that runs automatically when the game starts. Unlike ModuleScript, it doesn't return a value and is used for game logic and behavior.

Properties

Enabled

bool Inherited from LuaSourceContainer

When true, the script can execute; when appropriate.

Source

string Inherited from LuaSourceContainer

The Lua source code to execute.

SourcePath

string Inherited from LuaSourceContainer

File path to fetch and load source code from.