Parameters
string
required
The Luau source to run.
any
Arguments copied into the state as varargs.
Example
Errors
Related
run_on_actor: the standalone equivalent.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Run code on the state.
LuaStateProxy:Execute(source: string, ...: any) -> ()
getgamestate():Execute([[ print("ran on the game state with", ...) ]], 1, 2, 3)
| Message | Condition |
|---|---|
LuaStateProxy expected | Called on something that is not a proxy. |
LuaStateProxy:Execute cannot schedule from a parallel phase | Called from inside a parallel phase. |
run_on_actor: the standalone equivalent.