Packages with Licenses?

What’s to stop someone from just taking the scripts and uploading them somewhere? Also, how does this “Licence” System get incorporated because I was planning on making my RPG Package a “For-Sale” item for just $5, which comes with a full 3D RPG with customization stats, interfaces, looting system, etc.

Just curious as to those two aspects, because I don’t want to get nailed, the only reason I’m making this package is to get some money for the assets I need for my main project.

You can never stop people from stealing your stuff/pirating. The difference here is, that the pirate doesn’t download your game and you lose a (possible) sale, but that, if he uses your scripts without license in his commercial product and actually makes money with it, the punishment would be way more severe.