Documentation

Everything you need to obfuscate Lua 5.1 and Roblox executor scripts: how the obfuscator works, the compile modes, the guard suite and the output options.

Introduction

GoonVeil is an obfuscator for Lua 5.1 (Roblox executor Lua). You hand it a script and get back a hardened bundle that still behaves the same on the runtime you ship to, with the internals of your code dissolved. The whole pipeline runs client-side in your browser: the engine and the guard suite are downloaded once and run locally, and the source never leaves your machine.

Every build runs through three stages:

Quick start

Compile modes

The compile mode decides how the whole script is protected. It is the biggest knob you have, and it trades runtime cost against protection.

ModeWhat it doesRuntime costOutput size
CFFBreaks branches and loops apart with junk states and mangles names, strings and globalsLowSmall
HeavyMaximum junk injection on top of control-flow manglingHighLarger
Safe EnvSame engine with the full guard suite (anti-tamper, anti-env, anti-sandbox, anti env-logger, anti write-file, anti hook-networks) embedded and obfuscated with your codeHighestLargest

CFF settings

The engine and the packer

Obfuscation runs in a Rust engine compiled to WebAssembly, entirely in your browser: the source is parsed, identifiers are mangled, numbers and strings are re-encoded, junk states are injected and control flow is flattened. A separate C++ packer stage compresses the output (RLE) and encrypts it with a rolling XOR cipher keyed per build; the bundle ships with a Lua loader that decodes and runs itself at startup.

Per-build randomization: the identifier alphabet, cipher keys, junk shapes, decoy states and packer key are all derived from a random seed generated for each build, so two builds of the same script share no structure.

  • Recursion depth and stack levels are reduced inside virtualized functions.
  • Obfuscation raises reverse-engineering cost; it is not impossible to defeat. Keep server-side secrets server-side.