Skip to main content
Returns the Actor Instance associated with a Luau thread. The first argument must be a thread. The function reads the thread’s thread data, requires a Actor reference and a positive container count, then reads the associated Actor. If the actor weak reference is valid, it is pushed as an Instance; otherwise the function returns nil.

Syntax

Aliases

  • getactorfromstate

Arguments

Returns

Example

Resolve the Actor Instance associated with a Luau thread, when that thread has a valid actor reference.