So I know that it is possible to steal code from a plugin. Which is why I am wondering if it is possible to have a loader inside the plugin connect to the MainModule which manages the plugin. Yes I am also aware it is possible to steal a Module but the Wiki does say how to defend from that.
Can a Plugin run off a Module Script? [Unanswered]
1 answer
Yes.
But not how you want.
The truth is simple. If it's on a Plugin, it's on the person's computer. If it's on their computer, they can steal your code if they're determined enough - No matter how much effort you put into making sure that they can't.
If you don't want people to steal your plugin, make it open-source. Nobody steals open-source code.
3 comments
That is not what I meant I mean can a plugin connect to a Module in my inventory as a model that is not in the plugin.
Yes, if the module is yours. If somebody else uses the Plugin, they will not be able to require in the module which it depends on.
This assumes that the module in question is copylocked. If it is uncopylocked, it will be able to require it in regardless.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
You're not going to be able to protect Lua code that runs in Studio, period.
It can be protected if it's requesting a module if that's even possible for a plugin.