Runs a string of Luau source inside the actor state a thread handle refers to. The thread must come from getactorthreads or getdeletedactors. This is the way to reach a destroyed actor’s state, which has no Actor instance for run_on_actor to take. Extra arguments are deep-copied in as varargs.

Parameters

thread
required
A thread handle for the actor state.
string
required
The Luau source to run.
any
Arguments copied into the state as varargs.

Example

Errors