checkcaller

Checks whether the current call comes from the executor.

Syntax

Signature
checkcaller() -> boolean

Aliases

This function has no aliases.

Parameters

This function takes no parameters.

Returns

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