Skip to content
Roblox API Reference

Enum.RunContext

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

Items4

  • 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.

Used by properties1