MoonVeil-Docs/content/docs/options/mangle-statements.md
2025-05-02 02:25:57 -05:00

878 B

weight title description icon date lastmod
100 Mangle Statements Constant decomposition and statement patching article 2025-05-01T18:47:58-05:00 2025-05-01T18:47:58-05:00

This option will enable non-destructive constant decomposition and various statement patching.

The following child options are available:

  • Mangle Numbers: Replaces number constants with a randomized binary expression which evaluates to that number.
  • Mangle Strings: Performs light obfuscation of string constants.
  • Mangle Self-calls: Replaces x:foo() with x.foo(x).
  • Mangle Named Indexes: Replaces x.foo with x[<obfuscated "foo">]. This will mangle the string regardless of whether Mangle Strings is enabled.
  • Mangle Globals: Globals are replaced with a cached global table indexed by an obfuscated string. eg. print becomes _ENV[<obfuscated "print">]