Schedule source on a LuaStateProxy
execute-lua-stateWrites live Roblox game state by resolving a selected Lua state or expression and executing caller-supplied Luau source with optional arguments and confirmation gating.
Instructions
WRITES LIVE GAME STATE. Resolve current/game/expression state and call LuaStateProxy:Execute(source, ...args). Execution is asynchronous and confirmation-gated. Signature: { state: any?, stateExpression: any?, source: string, arguments: any?, confirm: boolean?, threadContext: number? }. Phase: act; cost=medium; idempotency=contextual-write. Requires: active-client, explicit-mutation-approval, validated-source. Capabilities: getluastate. Produces: operation-receipt. Verify with: get-lua-state. Safety: MUTATING; executes caller-selected behavior in the live client. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Optional state selector or reusable state reference returned by a discovery tool. | current |
| source | Yes | Luau source text processed by this tool; it is never inferred or guessed. | |
| confirm | No | Explicit safety acknowledgement; must be true before this state-changing operation runs. | |
| arguments | No | Optional ordered typed arguments forwarded to the selected operation. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. | |
| stateExpression | No | For state='expression', a Luau expression resolving to a LuaStateProxy, Actor, or BaseScript. |