Most people use private modules with API Keys to gain profit, if you don’t want your product leaked and you still want to gain profit, then wouldn’t people just be able to just pass on the set of numbers that the script requires in game and get access? If you want to make money, then API Keys are the way to go.
Although I will agree with this, you must also consider the sheer number of free models on the marketplace that actually have infections and backdoors. This isn’t about the small group of modelers who actually make legitimate models and ask for nothing return. Many out there are willing to pay modelers to insert a small backdoor into their models just so that they can break the game.
With scripts, you could massively delay the discovery of your scripts by using obfuscation. Although it might be a lot of work, it will ultimately pay off if you really want to keep your scripts available to other people but not have to worry about other people gaining full knowledge of the ins and outs of the script.