Syntax
checkcaller(): booleanReturns
| Name | Type | Description |
|---|---|---|
isCaller | boolean | true when the current Luau thread is tracked in Real caller context; otherwise false. |
Description
Returns whether the current Luau thread is present in Real caller context. The function takes no arguments and pushes the boolean result of the current caller context. The function does not inspect the Lua call stack or a function object.
Call it without parameters. The function reads the needed context from the current runtime state.
It returns isCaller (boolean). Use the returns table to separate successful values from nil results and recoverable errors.
Example
Check whether the current thread is tracked by Real.
local tracked = checkcaller()
print(tracked)