It really isn’t. It may be to you, but not for most of us.
Why would I generate random access codes, when I could simply do this:
export type playerWhitelist = {[string]: {string}}
local whitelist: playerWhitelist = {
[1] = {"Tester", "Owner Of Roblox"}
-- key: user id, value: roles
}
I would consider making a resource that simplifies the above and doesn’t overcomplicate it.
If they are in the dictionary, then let them through without a gamepass, and if they aren’t, sell it. But honestly, it would be better to sell upfront.
This resource DOESNT GENERATE RANDOM ACCESS CODES.
This has a whitelist, and it’s not overcomplicated.
There’s even a YouTube video of me showing how to set it up.
I’m working on the plugin version, which I hope will be easier.
Also my suggestion is remove the key code system and replace it to whitelist like what u did already but u need to add command system that only who can do the command only and the spesific command that add a person to whitelist like into datastore? That will be way better and whatever ur added that im still not using because to useless
i think your miss understanding, im giving suggestion why ur mad. my opinion is to not using it doesnt mean this source is also useless for others. please be carefull reading before reply it
Sorry? How is that like they’re commissioning you? They’re just giving suggestions on how you can change and possibly fix your resource.
If you’re going to create a Community Resources post and get mad at everybody for trying to suggest ways to improve your resource, I think you shouldn’t have created the post at all.
Also in response to this;
Isn’t that the whole point of a Community Resource? The code is the most important part of code-related resources. Of course we’re going to judge it, and suggest on ways to improve it.
And in response to this as well;
WHY ARE YOU GETTING MAD AT PEOPLE FOR CRITICIZING? When you create a Community Resource post, you have to be ready for these kind of things. Don’t respond to their criticism by saying WHY ARE YOU CRITICIZING SO MUCH, but instead ask on ways to improve your resource.
Now, that we’re at the end and reviewed all of this information, my final verdict is that you’re extremely immature and possibly too young to be on the DevForum.
(Too much? I think not.)
I think that you should learn how to respond to criticism and suggestions in a better way other than feeling insulted by them.
You should be using a webserver instead to securely store your keys in.
Securing your keys in pastebin is not reliable, because they can easily be leaked and anyone can access pastebin. Having your own webserver, allows you to block IP’s from getting requests of your website.
I was hoping to create a resource that didn’t require creating your own web-server, but I’d definitely like to see one (I’m not very experienced in web-developing)
Would you mind explaining how these keys would be leaked if only the game owner had the link to the pastebin?
Well, learn a bit of NodeJS, there are tutorials on youtube (will require learning JS). The reason why how these keys can be leaked, is that pastebin is pretty much used by anyone. Their API can also be down sometimes and if a data breach or anything vulnerable happen, the source of your keys will become a victim to it.
Having your own webserver allows you to add your own database (again more tutorials online of it), and have control to it. You can learn a bit of JWT tokens which you can either use as access keys themselves, or keys as a authorization header when requesting a access key from your webserver.
Hosting your own webserver from your own host computer will require port-forwarding, however there are many other hosting websites such as Heroku, and Replit (which is free).
While the idea of this sounds great, games that actually use this have a big chance of getting taken down.
“Paid” Games are not able to receive premium payouts, this system, though not directly, kind of breaks that rule. Since access is possible for anyone, premium payouts will still be provided.