Returns true when the thread currently executing is one Athena owns, and false when the call originated from the game’s own code.

Returns

boolean
true if the running thread belongs to Athena.

Behavior

Where isexecutorclosure asks about a function, checkcaller asks about the thread that is running right now. This is the standard way to tell, from inside a hook, whether the call came from your own code or from the game. Threads Athena creates, and threads you spawn from them with task.spawn, coroutine.create, or similar, are recognized as yours. Threads the engine created are not. This is what lets a hook handle only your own calls and pass the game’s straight through, which is the usual reason you reach for it.

Example

Inside a __namecall hook, act on the game’s remote calls while letting your own through untouched: