I was wondering how I would make a code system that only allows a certain amount of players to redeem an in game code. I have searched yt and everywhere to try and learn. I even tried using the roblox ai to help script it, did not help.
They can be used for global leaderboards, too, these datastores save across every single server so you can make it so when a player tries to redeem a code, the global data store checks for the amount of redeems, and then returns true or false to redeem the code. You could set the value of the datastore to 1000 for example, and then every time a person redeems reduce the value by one to count.