As I already wrote, scripts can be created in such a way that logging will not allow them to be stolen very simply.
Logging load does not solve the problem of obfuscation. You can change the code so that it can only be understood by a specialist, of whom there are few and who do not need your code at all.
Next, you can use the debug library to get upvalues. This will allow you to create modules that can only be executed from a specific environment.
This will avoid simply execute the saved output from the load.
And all this is available in the latest versions.
It’s like passwords. If your password is 1234567, then it is easy to steal, and if you know what brute force is and use the password MyD@DisBIG942, then this is a completely different matter.