Skip to content

BaseScript

Supported Class Scripting & Networking NotCreatable

The base class for all script objects which run automatically.

2 Nova members · 2 modern Roblox members not implemented yet

Inheritance

Object → Instance → LuaSourceContainer → BaseScript

Nova inheritance: Instance → LuaSourceContainer → BaseScript

Known subclasses: CoreScript, Script

Properties

Disabled Supported Property Determines whether a BaseScript runs or not.
Disabled: bool

Determines whether a BaseScript runs or not.

Setting this property to true while the script is running drops its references to the script's thread; a thread that is yielded (or that yields later) is never resumed and becomes eligible for garbage collection. A thread that is actively executing continues to run until it next yields or returns.

If this property is changed from true to false, a fresh run of the script is started. This means that Disabled can be toggled to restart a script.

Roblox documentation

LinkedSource Supported Property Deprecated The content ID of an uploaded script. When set binds the uploaded code to the script's Script.Source.
LinkedSource: Content

The content ID of an uploaded script. When set binds the uploaded code to the script's Script.Source.

By default, this property is set to '[Embedded]'. This means the source of the script is not linked to an upload script and is instead written in the script.

script.LinkedSource = "http://www.roblox.com/asset/?id=1014476" -- link source

Developers should remove a linked source via the properties window, rather than setting the property to '[Embedded]'.

For the LinkedSource property for ModuleScripts, please see ModuleScript.LinkedSource.

Roblox reference signature
LinkedSource: ContentId

Roblox documentation

Inherited members

Inherited from LuaSourceContainer: 8 properties, 36 methods, 7 events. They are documented on the base class page.

2 modern Roblox member(s) are not implemented yet — expand to inspect

Members declared by Roblox's BaseScript class (or by a missing base class) that Nova does not expose. Use this list to scope a migration; the compatibility guide has the recommended workaround.

Properties

Member Signature Status Notes Flags
Enabled Enabled: bool Not yet Determines whether a BaseScript runs or not. NotReplicated
RunContext RunContext: RunContext Not yet Determines the context under which the script runs. read None / write PluginSecurity

Roblox reference: BaseScript

Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.