
Roblox · Scripts
Promo codes with one-time rewards, expiry dates, saved redemptions and a panel that works on phones.
Add promo codes to your game. A player opens the codes panel, types a code like WELCOME and gets the reward. Each player can use each code once, a code can expire on a date you pick, and capitals or extra spaces don't matter.
You decide what a code gives. The kit calls your OnRedeem function and only marks the code as used when your function returns true, so a reward that fails never burns the code. The server checks every request and slows down players who keep guessing.
Used codes are saved per player in a DataStore. With Studio API access off it keeps them in memory and prints one warning, so you can test right away. If you use our Safe Save module, the README shows how to keep used codes inside that profile instead.
CodesKit.OnRedeem in a server script and return true after granting the reward.