Forge

How to protect a Roblox script from being decompiled

24 November 2026

A Roblox script runs on the player's own device, inside their executor. Everything in the script reaches that device, and a determined player can study it. Protecting a script means making that study take longer than it's worth, and keeping what matters off the device.

What a player can read

A plain script is readable as it is. Bytecode is not much harder: Luau decompilers turn it back into readable source. Renaming variables and removing spaces changes how the code looks, and leaves the logic and every string in place.

What obfuscation changes

A virtual machine obfuscator compiles your script into instructions of its own and ships an interpreter that runs them. A reader sees the interpreter, and has to work out how it runs before they can recover any of your code. The stronger ones build a different interpreter for every build. Work on one build then doesn't carry over to the next.

Damascus, Forge's obfuscator, builds every version with its own virtual machine and key. In a blind test on 20 November 2026, an attacker with a real Roblox client's values spent 62 minutes on a Damascus 5 HS build and recovered nothing of the script.

Secrets

Obfuscation slows a reader down. It doesn't make a secret safe to ship. Keep these out of any script players run:

  • Discord webhook URLs. Anyone who finds one can post to your channel.
  • API keys and passwords for your own services.
  • Lists of keys or user IDs. Checks like these belong on a server.

Less code on the device

Code a player never receives can't be read. On Forge, each tier gets its own build, and the code behind a Pro tier check isn't in the Basic build. A key below a script's Minimum tier gets none of its code.

Speed

Code inside a virtual machine runs slower than plain Luau. For a loop that runs every frame, Forge_NoVirtualize(f) runs f as plain Luau at full speed. Use it only on code with nothing worth hiding.