checkcaller
Checks whether the current call comes from the executor.
Syntax
Signature
checkcaller() -> booleanAliases
This function has no aliases.
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
boolean | True when the thread or inspected stack identifies an executor call. |
Notes
It also checks up to ten stack frames for the executor's Script and loadstring chunk names.
Example
Luau
local Result = checkcaller()
print(Result)