Whitelist
Introduction
This guide will take you through whitelisting your products, it may look intimidating at first but it really isn't that hard and we highly recommend doing this to make it much harder for your products to get leaked!
Whitelist
To make it super easy, we've created a whitelist kit for anyone to use but it can be easily edited to your liking by taking the whitelist module for free, we don't recommend messing with this unless you know what you're doing though. Click here (opens in a new tab) to get the whitelist script.
Setting up the whitelist
Insert the whitelist script it into your model from the Roblox toolbox. Put the script in your model and open it, then set the directory for your product.
If you placed the script right inside the model then it would be script.Parent
, if you placed the script inside of another script in the model for example then you would set it as script.Parent.Parent
, then enter your Hub ID and product's name which can both be found via the /hub
command. You can also set Studio = true
if you want people to be able to use your products in Roblox Studio although this is not recommended for most cases as your product will be exposed and there's a possibility it could be leaked.
Finally, place any code that you only want to run if the user owns the product at the very bottom of the whitelist script (optional).
Obfuscating
Vendr’s obfuscator is designed to protect against most reverse engineering techniques. However, it is recommended that you use a third-party obfuscator for guaranteed security.
Once you have configured your whitelist script, please make sure to obfuscate it. Obfuscation ensures that your code is protected against most leaks and other malicious attacks towards your source code.
Start by downloading your whitelist script by right-clicking the script in Explorer within Roblox Studio and ensuring that you select .lua
as the file type in the following window.
In your server, run the /obfuscate
command with Vendr and attach the file you just downloaded when running the command.
Once you get the file back from Vendr, just download it and right click your model and press ‘Insert from File’ inside Roblox Studio, make sure you select .lua
as the file type and then select the script you downloaded from Vendr. Once it is inserted, you can delete the unobfuscated script if you haven't already and you're good to go!
Conclusion
And we’re finished! You now have an obfuscated whitelist to make it much harder for people to leak your products, you can now upload your product file to Vendr and release it to the world!