Skip to main content

Aliases

  • getactorfromstate

Arguments

thread
required
Luau thread whose thread data should be checked for an associated Actor weak reference.

Returns

Instance | nil
Actor Instance resolved from the thread’s the associated Actor weak reference, or nil when no valid actor reference is present.

Example

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