Can exploiters read the exact code in a local script

title is self explanatory, will it look the exact same or will it look different and miss some parts of the code, i was told when it gets decompiled its really just guessing what the code looks like from the bytecode

1 Like

Local variable names will not be available, but global variable names and string literals will. This also means the function names will be kept. Lua bytecode is very close to the source itself in structure, so control flow will be very clear in a decompiler, and a hacker can guess what the local variables are for based on how they are used. It is far far easier than looking at decompiled native code.

The decompiled version of your code that exploiters can access is not a 1:1 copy of your own code, however it does have the same functionality. So while they may lack certain things like local variable names, and some of the code structure may be different, they can still tell what your code does.