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.
- Upload a script. Open Obfuscator in the dashboard and drop a
.luaor.luaufile, for examplemain.luau. You can also paste the source. - 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.
- 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.
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.
| Macro | Purpose |
|---|---|
LW_PRECHECK | Inlines a pre-boot check whose expected return key decrypts the main VM bytecode. |
LW_ASSUME / LW_OPAQUE | Binds runtime invariants into VM key derivation and opaque control-flow predicates. |
LW_ENCSTR / LW_ENCBUF / LW_ENCNUM | Strong constant encryption with optional runtime decryption keys. |
LW_REWRITE | Mixed Boolean-Arithmetic (MBA) expression rewriting with preset & budget controls. |
LW_STACKALLOC / LW_CRASH | Zero-heap stack register arrays and immediate fail-closed VM corruption. |
LW_OBFUSCATED / LW_LINE | Compile-time dead-branch stripping and source line folding. |
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.
[
{ "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.
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
- Open Discord Bot in the dashboard and press Add Bot to Server.
- Press Generate token. Each link token is single-use and valid for 15 minutes.
- In your server, run
/loginwith that token to link the server to your account. - Run
/setpanelin the channel your buyers use.
/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
| Command | What it does |
|---|---|
/login | Links the server to your LuaWarden account with a single-use 15-minute link token. |
/logout | Disconnects the server from your LuaWarden account. |
/setpanel | Posts the buyer control panel in the current channel. |
/whitelist | Creates and assigns a key to a member and grants the buyer role. |
/unwhitelist | Revokes a member's keys and removes the buyer role. |
/blacklist | Bans a member's keys and blacklists their bound HWIDs. |
/force-resethwid | Resets a member's device lock immediately, bypassing cooldown. |
/mass-generate | Generates up to 300 keys at once. |
/compensate | Adds days to every active, non-expired key in a project. |
/setlogs | Sets 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.
| Plan | Price | Builds | Licensing | Obfuscation API |
|---|---|---|---|---|
| Now | $1 / obfuscation | Tokens that never expire | Not included | Not included |
| Basic | $15 / month | 500 a month | 1 project, 2 scripts, 250 keys | Not included |
| Premium | $40 / month | 1,000 a month | 5 projects, 15 scripts, 2,500 keys | 1 concurrent build |
| Commercial | $100 / month | 2,000 a month | Unlimited projects, scripts and keys | 2 concurrent builds |
| Enterprise | Custom | Custom limits | Unlimited, with custom domains | 4 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.