> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# run_on_actor

> Runs Luau source on the thread associated with a target Actor Instance. The first argument must be an Instance whose ClassName is Actor, and the second argument must be a non-empty source string. Extra arguments after source are passed to the dispatched source when supported. The call returns no values and does not return values produced by the dispatched source. runonactor is an alias.

<div className="real-function-page">
  ```lua theme={null}
  run_on_actor(actor: Instance, source: string, ...arguments?: ...any)
  ```

  ## Aliaslar

  * `runonactor`

  ## Argümanlar

  <ParamField path={"actor"} type={"Instance"} required>
    Actor Instance whose thread should run the source. The value must be an Instance with ClassName Actor.
  </ParamField>

  <ParamField path={"source"} type={"string"} required>
    Non-empty Luau source string to run on the Actor thread.
  </ParamField>

  <ParamField path={"...arguments"} type={"...any"}>
    Additional values passed to the dispatched source when supported. Unsupported values are passed as nil.
  </ParamField>

  ## Örnek

  Run source on a resolved Actor thread.

  ```lua theme={null}
  local actor = getactors()[1]

  if actor then
      run_on_actor(actor, [[
          print(getcurrentactor())
      ]])
  end
  ```
</div>
