Skip to content

Enum

Enum.RunContext

Controls the execution context of a Script, determining whether it runs as server, client, plugin, or legacy container-based code.

Official docs ↗
ItemValueSummary
Enum.RunContext.Legacy0Runs with legacy container-based behavior that depends on the script type, such as LocalScript or Script.
Enum.RunContext.Server1Runs on the server.
Enum.RunContext.Client2Runs on the client.
Enum.RunContext.Plugin3Runs as a descendant of Plugin instances.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com.