LuaWarden
Documentation

LuaWarden docs

Obfuscate a Luau script, license it with access keys, and deliver it with a hosted loader.

Quickstart

LuaWarden obfuscates a Luau script into one custom-VM standalone build using our unified Main engine. Upload a file and download the protected result.

  1. Upload a script. Open Obfuscator in the dashboard and drop a .lua or .luau file, for example main.luau. You can also paste the source.
  2. Main engine protection. Every build compiles on the unified Main channel with full 4-VM protection, anti-tamper, payload opacity, and Roblox environment binding — included in every plan.
  3. Compile and download. Press Obfuscate Script. The finished build appears under Builds, where you can download it again at any time.

The output is a single self-contained Luau file with zero external dependencies.

From the command line

On Premium and above you can start the same build with the REST API. The full reference is on the API page.

Start a build
curl -X POST https://luawarden.dev/api/v1/obfuscate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "main.luau", "source": "print(\"hello\")", "preset": "main"}' 

Compiler macros

LuaWarden supports compile-time LW_* macros for key-bound prechecks, runtime assumption specialization, constant encryption, MBA expression rewriting, and stack-allocated arrays. Macros are available on every plan.

MacroPurpose
LW_PRECHECKInlines a pre-boot check whose expected return key decrypts the main VM bytecode.
LW_ASSUME / LW_OPAQUEBinds runtime invariants into VM key derivation and opaque control-flow predicates.
LW_ENCSTR / LW_ENCBUF / LW_ENCNUMStrong constant encryption with optional runtime decryption keys.
LW_REWRITEMixed Boolean-Arithmetic (MBA) expression rewriting with preset & budget controls.
LW_STACKALLOC / LW_CRASHZero-heap stack register arrays and immediate fail-closed VM corruption.
LW_OBFUSCATED / LW_LINECompile-time dead-branch stripping and source line folding.

Read full Macros documentation →

Projects and access keys

A project groups your hosted scripts and the access keys that unlock them. Settings on the project apply to every key inside it.

Create a project

Open Projects, press New Project and give it a name such as my_project. Each project gets an ID like prj_example123, which you use with the API and the Discord bot.

Device locking

With device lock on, a key locks to the hardware ID of the first device that runs it. A key that is used on a second device is refused until the device is reset.

  • Reset cooldown. Choose how often a key may be reset: 6, 12, 24 or 48 hours.
  • Who can reset. You can reset any key from Users & Keys. Buyers can reset their own key from the Discord control panel, within the cooldown.

Generate keys in bulk

Manage Users creates up to 300 keys in one go, with a shared expiry of 30 days, 90 days or lifetime. Export the list as .txt or .json when you need to hand keys out.

Import users from JSON

Import accepts up to 5,000 entries per file. Each entry needs a key. discordId and expiresAt are optional and are kept as they are. Turn on Skip expired to leave out keys whose date has already passed.

users.json
[
  { "key": "YOUR_KEY_HERE", "discordId": "123456789012345678", "expiresAt": "2027-01-31" },
  { "key": "YOUR_KEY_HERE", "expiresAt": null }
]

A key with "expiresAt": null is a lifetime key.

Hosted 2-line loaders

Instead of sending a file to every buyer, you host the script with LuaWarden and give buyers two lines. The first line holds their key. The second loads the hosted script.

2-line loader
script_key = "YOUR_KEY_HERE"
loadstring(game:HttpGet("https://luawarden.dev/l/scr_example123"))()

Upload a script

Open Scripts, press Upload Script, pick the project and choose your file. The script gets an ID like scr_example123 and its own loader URL.

Push a silent update

Press Push Update on the script and upload the new build. The loader URL does not change, so buyers keep the same two lines and receive the new version the next time they run it. Nothing has to be sent out again.

Pause a script

Pause stops the loader from serving the script until you resume it. Keys and settings are kept.

Official Discord bot

The bot lets buyers help themselves and lets you manage keys without leaving your server.

Connect your server

  1. Open Discord Bot in the dashboard and press Add Bot to Server.
  2. Press Generate token. Each link token is single-use and valid for 15 minutes.
  3. In your server, run /login with that token to link the server to your account.
  4. Run /setpanel in the channel your buyers use.
Link a server
/login token:YOUR_LINK_TOKEN

The buyer control panel

/setpanel posts a panel that stays in the channel. It has four buttons: Redeem Key, Get Script, Reset HWID and Get Stats. Every reply is visible only to the buyer who pressed the button.

Commands

CommandWhat it does
/loginLinks the server to your LuaWarden account with a single-use 15-minute link token.
/logoutDisconnects the server from your LuaWarden account.
/setpanelPosts the buyer control panel in the current channel.
/whitelistCreates and assigns a key to a member and grants the buyer role.
/unwhitelistRevokes a member's keys and removes the buyer role.
/blacklistBans a member's keys and blacklists their bound HWIDs.
/force-resethwidResets a member's device lock immediately, bypassing cooldown.
/mass-generateGenerates up to 300 keys at once.
/compensateAdds days to every active, non-expired key in a project.
/setlogsSets a Discord webhook URL for live bot & auth log messages.

Webhooks

Each project can post events to a Discord webhook. Paste the webhook URL into the project's settings to receive unlocks, device resets and denied attempts in a channel of your choice.

Plans and tokens

Monthly plans are prepaid and include a set number of builds each month. Now is pay-as-you-go.

PlanPriceBuildsLicensingObfuscation API
Now$1 / obfuscationTokens that never expireNot includedNot included
Basic$15 / month500 a month1 project, 2 scripts, 250 keysNot included
Premium$40 / month1,000 a month5 projects, 15 scripts, 2,500 keys1 concurrent build
Commercial$100 / month2,000 a monthUnlimited projects, scripts and keys2 concurrent builds
EnterpriseCustomCustom limitsUnlimited, with custom domains4 concurrent builds

Paying

Checkout is direct, in Litecoin (LTC) or Solana (SOL). Pick a plan or a number of obfuscation tokens under Plans & Billing, send the amount shown to the address shown, and the order is confirmed automatically once the payment is seen on-chain.

For custom limits or resale, contact sales.