BaseScript
BaseScript : LuaSourceContainer
Overview
The BaseScript class provides the core functionality required for scripts that execute automatically. It introduces shared behaviors and properties for its derived classes, ensuring consistent execution logic across different script types.
Description
The BaseScript class is an abstract class that serves as the foundation for all script objects that execute automatically. It is a subclass of LuaSourceContainer and is specifically designed for script types like Script and LocalScript, which run code in the game environment. Unlike ModuleScript, which stores reusable code, instances of BaseScript are responsible for executing Lua code directly. This class cannot be instantiated directly.
Properties
Disabled
bool
Disabled determines whether the script should run or be disabled.