getexecutorthread

Accesses the executor thread.

Syntax

Signature
getexecutorthread() -> thread

Aliases

This function has no aliases.

Parameters

This function takes no parameters.

Returns

TypeDescription
threadExecutor 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)