Skip to main content
Obfuscations are provided by our official partner (wYnFuscate)
For the latest / full documentation, visit wYnFuscate Docs

wYnFuscate Macros

WYNF_OBFUSCATED
bool
A compile-time constant that evaluates to true in obfuscated builds.
In plain Lua (non-obfuscated), it behaves like a normal global (typically nil/false).
WYNF_NO_VIRTUALIZE
function wrapper
Marks a function to run as native Lua instead of inside the VM
This bypasses VM overhead for performance-critical code like hot loops or heavy math/table/string operations.
Code in WYNF_NO_VIRTUALIZE is NOT protected through virtualization.
WYNF_JIT
function wrapper
Marks a function for Wynfuscate’s JIT-style micro-VM execution path.
The function remains virtualized (it still runs encrypted bytecode), but executes under a more performance-oriented interpreter template than the main VM loop.
WYNF_CRASH
function call
Immediately and securely crashes the VM, corrupting the VM context to prevent recovery or analysis.
Use this as a last-resort defense when tampering or unauthorized access is detected.
WYNF_IS_CALLER_WYNFUSCATE
function call
Returns true if the current function was called from within your obfuscated code Returns false if it was called from an external source like an exploit script.
WYNF_ENC_STRING
string wrapper
Applies additional encryption layers to a string literal, providing extra protection for highly sensitive values like API keys, passwords, and encryption keys.
WYNF_ENC_NUM
number wrapper
Protects a numeric literal by encoding it in an encrypted form, preventing magic numbers from being trivially found via memory scanning or static analysis.
WYNF_LINE
function call
Expands to the current source line number at compile time. This provides a stable line marker for logs and error messages without relying on VM debug info, which is stripped during obfuscation.
WYNF_NO_UPVALUES
function wrapper
Creates a lightweight wrapper around your function for compatibility with certain environments or APIs that have issues with virtualized functions used as callbacks.
WYNF_SECURE_CALL
function wrapper
Marks a function as VM-only callable. Calls to this function will only succeed when they originate from inside your obfuscated code.
WYNF_SECURE_CALLBACK
function wrapper
Returns a wrapped callback that performs a caller gate before invoking your function. Intended for event handlers and callbacks that are called by external systems like Roblox signals, RemoteEvents, and UI events.
Last Updated: 20 February 2026