How would I make a paid product with a license?

So I’m starting this small business of selling scripts I’ve made for robux
How would I make sure that the person who paid for it doesnt read the source code or share it?

I’ll be making a product hub where players can purchase it with the gamepass provided

2 Likes

Just make your code unreadable, and use a loadstring.

1 Like

The source code can be read by anyone who has it. A few years ago, the code could be hidden, but people used it for viruses.

some people put some copyright text above their script. e.g MIT, BSD and other stuff.
i respectively recommend not to use luvreiiko’s idea, since if you obfusticate your code it will look suspicious, since nobody knows what it is about.

1 Like

The point is that he doesn’t want people to read his code.
They’re buying the function, not the know-how.

Roblox will actually take moderation action if its obfuscated

This is only for models within the toolbox/publicly distributed. Private games and commissions don’t apply.

Yeah that’s the point. if anyone can’t read the code, i would send people backdoors instead of a working levelling system if they wouldn’t know.

This is nothing more than the consumer’s fault though, right?
As long as it’s not publicly distributed, you can put any type of script in your game.
Anticheats often have some level of obfuscation because of exploiters being able to read local scripts, for example.

Is there a way to use API that sends the player the product file via in a discord server when purchased?

I’m not sure about files, but I know you can definitely send text. For example, I made a discord bot that links up to my game and shares information, and is able to send clickable links:
image

So you could definitely make it send a link to your download.
It uses HttpService and Discord webhooks.