getactorfromthread
Returns the Actor whose Luau VM owns a thread.
Returns nil for a thread running in the place VM or in any VM no Actor owns. A thread does not carry its Actor itself, so the lookup falls back to the Actor recorded for the VM the thread belongs to.
getactorfromthread(thread: thread): Instance?Parameters
| Parameter | Type | Description |
|---|---|---|
thread | thread | Thread to resolve. |
Example
print(getactorfromthread(coroutine.running()))Example output
nil