Writing scripts
Zync macros
Compiler helpers for your original source.
Example
if not ZYNC_OBFUSCATED then
ZYNC_ENCSTR = function(value) return value end
ZYNC_JIT = function(fn) return fn end
end
local message = ZYNC_ENCSTR("hello")
local update = ZYNC_JIT(function(value)
return value + 1
end)
print(message, update(2))Build information
ZYNC_OBFUSCATED- True in protected builds.
ZYNC_AUTHORIZED- True in server-delivered programs; false in standalone builds. It does not replace server licensing.
ZYNC_PROJECT_IDZYNC_SCRIPT_IDZYNC_BUILD_ID- Release identifiers. Empty strings in standalone builds.
ZYNC_LINE/ZYNC_VERSION- Original source line and public version 1.
ZYNC_ASSERT(value, message)- Stops the script with your message when the condition fails.
Function macros are listed in Luraph migration. Strings, comments, properties, and locally shadowed Zync names are left alone. The LPH prefix is reserved for v14 macros. Scripts without macros use the same protection pipeline.