there are loads of easy to use Lua Bytecode decompilers (like unluac)
, and just using a lua compiler (which, from what i can tell, is all your code does).
Additionally, some environments don't provide loadstring, and require a custom LBI.
Additionally, use of some form of encryption would be useful.