Skip to main content
Hides a function’s frame from debug.traceback() output so a traceback name-scan can’t find it.
Pass the function whose frame you want hidden. The optional hidden flag picks the direction: true keeps that call out of what debug.traceback() returns, false lets it back in. The code still runs. Nothing about how the function behaves changes, only whether a traceback dump lists it. Most commonly used to keep an executor function out of an anti-cheat’s sight. Even after newcclosure wraps a script function, its Luau name can still show up in debug.traceback(). A game that scans the traceback for known names can then flag the user. Hiding the call makes the scan come up empty.

Parameters

Returns

void

Example

See whether your own executor leaks an injected closure’s name into debug.traceback(). Hide the frame so a traceback name-scan can’t spot it.
Useful anti-detection mechanism to hide executor calls from client scripts.