If you're looking to learn, the best route is always to check out the or GitHub for open-source releases where developers want you to read and learn from their code.
Use Lua obfuscators to make your client scripts unreadable. Even if someone dumps the file, they will see a mess of random characters. The Ethical Bottom Line