Enum
Enum.RunContext
Controls the execution context of a Script, determining whether it runs as server, client, plugin, or legacy container-based code.
| Item | Value | Summary |
|---|---|---|
| Enum.RunContext.Legacy | 0 | Runs with legacy container-based behavior that depends on the script type, such as LocalScript or Script. |
| Enum.RunContext.Server | 1 | Runs on the server. |
| Enum.RunContext.Client | 2 | Runs on the client. |
| Enum.RunContext.Plugin | 3 | Runs as a descendant of Plugin instances. |
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com.