Protect your first script
What you will do: Create a script, protect it with the virtual machine obfuscator, and give players a single loadstring. About five minutes.
Video: How to obfuscate and protect scripts
Protect your first script
Create a script
Open Scripts in the dashboard and choose New script. Give it a name players will recognise; you can change it later.
Paste your code
Open the script in the Editor and paste your Luau source. Your original code never leaves your account and is never shown to players.
Build & Deploy
Press Build & Deploy. LuaProtect compiles the code into encrypted register-VM bytecode, with fresh keys and opcode layout on every build, and publishes it to the CDN.
Copy the loader
Copy the loadstring from the script page. This one line never changes, so every future build reaches players automatically.
loadstring(game:HttpGet("https://cdn.luaprotect.dev/<your-loader>"))()
Choose who can run it
By default anyone with the loader can run the script. Turn on the key system in Script settings to require a license key, then hand out keys yourself or through a key flow.
- License keys: generate keys on the Keys page, optionally locked to one device (HWID).
- Key flows: players earn a key by completing ad-link checkpoints, so free users still make you money.
- Discord bot: buyers redeem keys and reset their HWID from a panel in your server.
Next step: Read Script protection settings to lock the script to your games and executors.