# Enum.RunContext

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/RunContext/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/RunContext

Controls the execution context of a [`Script`](https://rapi.sleaze.dev/classes/Script.md), determining whether it runs as server, client, plugin, or legacy container-based code.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `Legacy` | 0 | Runs with legacy container-based behavior that depends on the script type, such as [`LocalScript`](https://rapi.sleaze.dev/classes/LocalScript.md) or [`Script`](https://rapi.sleaze.dev/classes/Script.md). |
| `Server` | 1 | Runs on the server. |
| `Client` | 2 | Runs on the client. |
| `Plugin` | 3 | Runs as a descendant of [`Plugin`](https://rapi.sleaze.dev/classes/Plugin.md) instances. |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [BaseScript](https://rapi.sleaze.dev/classes/BaseScript.md): property `RunContext`
