Open Asterune
System

System

Runs a scheduled ECS callback from a script instance.

Creatable
Instance.new("System")
Inherits
BaseScriptLuaSourceContainerInstance
Replication
Standard

Behavior

System runs a scheduled ECS callback from a script instance. Source must return System.define(options, run). Systems run under ServerScriptService on the server and PlayerScripts on the client. StarterPlayerScripts contains client templates. Systems outside these containers do not run.

See Systems and scheduling for phases, ordering, intervals, parallel execution, and failure conditions.

Summary

Members3
Properties2
  • Disabled: boolean = falseparallel read

    Whether this System is excluded from execution.

  • Source: string = ""parallel read

    The Luau source code stored by this script instance.

Methods1

Properties

Disabled

System.Disabled: boolean = false

Whether this System is excluded from execution. Set to false to allow scheduling.

Source

System.Source: string = ""

The Luau source code stored by this script instance.

Methods

GetExecutionGroup

System:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

Inherited members

Inherited47

BaseScript