Limited use codes

Hi there, Farmboy014 here.

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.

Any support helps.

Thanks,

-Farmboy014

1 Like

OrderedDataStores is what you are looking for.

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.

Hope this helps.

5 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.