Script Library

deobfuscate

Clean obfuscated Luau source text without executing it. Folds decryption idioms into plain literals and renames machine generated locals to readable names.

Syntax

deobfuscate(source: string): string

Parameters

sourcestringrequired

The obfuscated Luau source text to clean.

Returns

string

The cleaned source.

Example

Clean an obfuscated source string.

local clean = deobfuscate(obfuscatedSource)
print(clean)