getexecutorthread
Accesses the executor thread.
Syntax
Signature
getexecutorthread() -> threadAliases
This function has no aliases.
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
thread | Executor thread, or the current thread as a fallback. |
Notes
Falls back to the current thread when no executor thread is registered.
Example
Luau
local Result = getexecutorthread()
print(Result)