Prometheus
Prometheus copied to clipboard
[BUG] Can't Obfuscate operations with "+="
Describe the bug So, the bug happens when you try to obfuscate any code using += and probably even -=.
Expected behavior Usually, you would do count += 1 and that would yield the same result as count = count + 1. But, the obfuscator errors upon such operation.
So, it would normally just add whatever you put after += to the variable and vise versa with -=.
To Reproduce Steps to reproduce the behavior:
local count = 0
while true do
wait(1)
count += 1 --Parsing Error at Position 4:5, unexpected token <Symbol> "+", expected <Symbol> "=" <-0m
print(tostring(count))
end
Try to add the --LuaU
argument to your obfuscate command.
Add "--LuaU" argument right after cli.lua, or you can edit the "presets.lua" find the "LuaVersion" and change the value into "LuaU".
@levno-710 Since Lua version 5.3, & and | bitwise operators were introduced, providing more comprehensive support for bitwise operations in Lua. These operators are used for bitwise operations on integers
Will you consider supporting it?