Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Can't Obfuscate operations with "+=" #157

Open
Multitude1337 opened this issue Nov 19, 2023 · 3 comments
Open

[BUG] Can't Obfuscate operations with "+=" #157

Multitude1337 opened this issue Nov 19, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Multitude1337
Copy link

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
@Multitude1337 Multitude1337 added the bug Something isn't working label Nov 19, 2023
@levno-710
Copy link
Member

Try to add the --LuaU argument to your obfuscate command.

@Zaenalos
Copy link

Add "--LuaU" argument right after cli.lua, or you can edit the "presets.lua" find the "LuaVersion" and change the value into "LuaU".

@mudebug77
Copy link

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants