How to secure Lua & Luau scripts for Roblox
Updated November 28, 2026 · Wilt Security Guide
Why raw scripts and simple key checks fail
The most common mistake when securing Lua or Luau scripts is putting the script body and a hardcoded key list inside the same file. Anyone who intercepts the HTTP response or reads the script can strip the check in seconds and redistribute your work.
A secure Lua / Luau whitelist keeps your script off public URLs until a valid key and device pass server-side verification.
5 layers of a secure Roblox whitelist on Wilt
- 1. Server-side build delivery: Wilt does not hand out your script build until
POST /library/keys/buildvalidates the user's key, script scope, and device binding. - 2. Built-in Bias obfuscation: Publishing a script through the Wilt studio runs your Luau through Bias server-side, protecting the delivered build against casual decompilation.
- 3. HWID-locked keys: Every key binds to the first execution device that redeems it. If someone shares their key in a Discord server, any other device is rejected. You can reset a user's HWID or disable locking per key from the dashboard or REST API.
- 4. Hashed key storage (SHA-256): Wilt never stores plaintext keys in Postgres. Only the SHA-256 hash and a short prefix are stored.
- 5. Live session control & kill switch: Monitor active sessions per script and terminate any session immediately with a custom message shown to the user.
How to set up a free Luau whitelist in 3 steps
- Step 1: Create a free account: Sign up on Wilt ($0 forever, no card required) and create a project.
- Step 2: Publish & obfuscate your script: Paste your Luau script into the Wilt studio, obfuscate it with Bias, and copy the generated loader snippet.
- Step 3: Share your key page or issue keys: Users either complete your verified checkpoints at usewilt.win/key or use keys you create via the dashboard or REST API.
Keep secrets out of the client too
Securing your Luau code also means never embedding Discord webhook URLs or API keys inside client scripts. Wilt lets you configure secure server-side webhooks so execution notifications are sent from Wilt's servers, never from the Roblox client.
Frequently asked questions
How do I secure my Lua scripts from being leaked?
Never host raw Luau on public Pastebin or GitHub links. Obfuscate your script with Bias in Wilt, require HWID-locked keys verified server-side before returning the build, and keep webhooks on the server.
Does Wilt cost money to use as a Roblox whitelist?
No. Wilt is $0 forever with unlimited scripts, unlimited keys, HWID locking, verified checkpoints, server-side webhooks, and full REST API access. Only obfuscation is bounded by the shared Bias account quota.
Start protecting your Luau scripts for free
Publish your first script on Wilt in a couple of minutes. No credit card or paid tier required.