create publish
Creating a Script
On save, Syntrix automatically kicks off obfuscation in the background via Wynfuscate. This usually completes within a few seconds.
Obfuscation
Syntrix obfuscates your script before it's ever served to users. The obfuscated version is what's returned in the payload field of /api/execute.
Obfuscation runs automatically on every code save
You can also trigger it manually from the script page → Obfuscate
The script is set to unpublished when code changes (must re-publish after obfuscation)
Obfuscation counts against your plan's monthly limit
If obfuscation output is identical to input (can happen with very short scripts), the server skips storing it and logs a warning.
Publishing
A script must be published before keys will work and the loader will serve the payload.
Requirements before publishing:
Script has code
Code has been successfully obfuscated (obfuscated output must differ from input)
To publish:
Open the script
Click Publish
To unpublish (take offline):
Open the script
Click Unpublish
Unpublished scripts return Script unavailable to all execute requests.
Script Status
draft
Not yet published
active
Published and serving requests
archived
Manually archived, not serving
inactive
Disabled
Only active + isPublished: true scripts serve payloads.
Key System Code
Each script has an optional keySystemCode field. If set, GET /api/scripts/:id/keysystem-gui returns this Lua code directly instead of the generated preset. Use this to attach a custom GUI. See Custom Key System GUI.

