CRX_OBFUSCATED - Legacy Macros
Deprecated — Legacy Cortex Engine Only: CRX_OBFUSCATED is strictly for the Legacy (Cortex) build preset. For normal/standard builds, use CTN_OBFUSCATED from the Centurion documentation.
CRX_OBFUSCATED Compile Flag
Form: expression (bare identifier). Evaluates to true when compiled into obfuscated bytecode, and nil/false in un-obfuscated environments (such as Roblox Studio). Never call it like a function (CRX_OBFUSCATED() is invalid).
Why Use It: Guarding Raw Source
Allows maintaining a single unified codebase where debug logging runs in Roblox Studio and security checks execute in production. When compiled, the branch that cannot run is stripped by the engine.
-- Legacy Cortex Build
if not CRX_OBFUSCATED then
warn("Running un-obfuscated in Roblox Studio")
end
Centurion Replacement (Normal Builds)
-- Normal Production Build (Centurion)
if not CTN_OBFUSCATED then
warn("Running un-obfuscated in Roblox Studio")
end