Skip to main content
Returns the Actor Instance associated with the current Luau thread. The function takes no arguments. It resolves the current Luau thread with the same lookup used by getactorfromthread: the thread data must exist, Actor reference must exist, reference count must be greater than 0, and the associated Actor must hold a non-expired weak reference. If no valid actor reference is present, the function returns nil.

Syntax

Aliases

  • get_current_actor

Returns

Example

Resolve the Actor Instance associated with the current Luau thread.