Protect Lua with a custom VM.

Compile Lua and Luau into a hardened, multi-layered VM2 architecture. Built with nested dispatch, cross-VM migration, and metamorphic codegen to outclass public obfuscators.

Use legacy 1.0.4

What the VM changes.

Each layer stacks with the others. Preset choice controls how many of these are applied, and how aggressively.

Multi-Tier VM2 Compilation

Compiles Lua and Luau into custom register-based VM bytecode across abstract-mini, mini, vm1, and vm2 profiles instead of source-shaped code.

Nested Dispatch & VM Islands

Med and Max split execution into isolated VM islands with nested dispatchers, breaking single-loop decompiler assumptions.

Cross-VM Block Migration

Execution blocks migrate across separate VM regions at runtime, preventing static control-flow reconstruction from one dispatcher.

Control Flow Flattening

Replaces structured loops and branches with state-driven dispatchers so original program flow cannot be read top-to-bottom.

Instruction Mutation & Super Operators

Mutates opcodes between builds and fuses common instruction sequences into composite super operators to defeat fixed signatures.

State-Bound Literals & Constant Vault

Binds decoded literals to live VM state and hides numeric and string constants inside rotated, polymorphed constant arrays.

Runtime String Splitting & Isolation

Encrypts strings without caching, splits them into fine runtime fragments, and resolves them through isolated string services.

Number Expression Rewriting

Transforms plain numeric constants into multi-step runtime arithmetic expressions before VM compilation.

State Encryption & Printable Blob Packing

Encrypts live VM state, compresses payloads with LZ-window packing, and serializes bytecode into hardened printable blobs.

Anti-Hook, Anti-Dump & Debug Poisoning

Injects hook guards, runtime integrity checks, and debug-library poisoning to stop automated dumpers and live tampering.

Environment Polymorphism & Local Proxying

Proxies local variables, hardcodes globals into static environments, and randomizes wrapper layouts per build.

Metamorphic Builds & Luau Ready

Optimizes source pre-pass and generates structurally distinct metamorphic output on every run with full Roblox and Lua 5.1/5.4 support.

Real input, real Max output.

A regular Lua obfuscator renames locals and reorders source. Anyone with a decompiler can recover most of the structure. The sample below is a genuine LuaVirtualBox High-protection build, generated from the five-line input above it. The shipped output is a VM interpreter plus an opaque payload, not your original logic.

input.lua Readable source
-- LuaVirtualBox showcase input: real game-style script
-- Demonstrates functions, tables, strings, numbers, control flow
local function calculateScore(level, bonus)
    local base = level * 10
    local total = base + bonus
    return total
end

local player = {
    name = "Firefly",
    level = 42,
    health = 985,
    coins = 14500,
    gems = 120
}

local function grantReward(target, rewardName, amount)
    target.coins = target.coins + amount
    target.gems = target.gems + 5
    local message = "Granted " .. rewardName .. " (" .. amount .. " coins) to " .. target.name
    print(message)
    if target.gems > 100 then
        print("Gem bonus applied!")
    end
    return target
end

local score = calculateScore(player.level, 25)
print("Final score: " .. score)
grantReward(player, "Dragon Egg", 500)

for i = 1, 3 do
    print("Level " .. i .. " check: " .. calculateScore(i, 10))
end
Original script
protected.lua ULTRA-MAX High protection (Max)
QvFmWSyF7BMn4UBrvCGEPCbo="Protected by Lua VirtualBox by FireflyProtector.xyz"return(function(...)(function()local w=_ENV or _G local l=true local p="_"..(l and"G"or"")local Q=w and w[p]or _G if not w or w==Q then return end if w then local function E(Y)if w then local n=w[Y]if n then return n end end if Q then return Q[Y]end return Q end local P=E("string")local G=P and P.char if G then local function Y(u,rD)return u..rD end local n,C,c,a,m=Y("setmetat","able"),Y("pcal","l"),Y("__in","dex"),Y("__newinde","x"),Y("__","metatable")local v=E(n)local U=E(C)if v then local u={}u[a],u[m],u[c]=function(VD,yD,fD)w[yD]=fD if not(Q and U)then return end U(function()Q[yD]=fD end)end,{},function(VD,yD)l
VM bytecode · anti-dump · instruction mutation · metamorphic output

Why Obfuscate

Client-side scripts execute in untrusted environments where unprotected Lua can be read and patched.

Decompilers & AST Recovery

Plain renamers and control-flow flatteners are easily stripped back to source. Custom VM2 bytecode keeps your original logic out of the shipped file.

String & Constant Dumping

Automated dumpers hook loaders and constructors to extract keys at startup. Encrypted literals and runtime string splitting block clean extraction.

Runtime Tampering

Debug hooks and modified globals let attackers bypass license checks and patch behavior. Anti-hook guards and metamorphic builds break fixed signatures.

↑ Go to the top