CodeVault: An easy codes module!

INTRO

CodeVault is a module used to handle redeemable codes for various purposes, such in-game rewards. It uses Roblox’s DataStoreService to persist code data between sessions.

You can aswell set a reedem limit, expiration time, and more automatically!

CODE EXAMPLE

local CodeVault = require(game.ServerScriptService.CodeVault)
local vault = CodeVault.new()
vault:GenerateCode("SPECIALCODE", 5, tick() + 86400)
local success, message = vault:RedeemCode(plr, "SPECIALCODE")
print(message)

VIDEO EXAMPLE

GITHUB REPO LINK

You can see the API here.

You can see the Source Code here.


Please, report any bug on this forum.

11 Likes

this is peak didnt know you made modules pio :fire:

1 Like

A module made by the infamous “pea”

1 Like

Wow. Pio, more like pro :money_mouth_face: !!1!!

3 Likes

UPDATE V.1.05

-Added more security when reedeming codes, meaning that if 2 players reedem the code at same time, it should stop them.


Please, report any bug on this forum.

2 Likes

This is quite a useful module.

1 Like

ok, i just realized a bug that u cant reedem. Im fixing it asap.

edit: it should be fixed now.

2 Likes

I will also be taking ideas to add to this module

Very well!! That’s exactly what i was searching for. And you can improve it with Messaging service.

1 Like

Thanks for the feedback! I will think of something.

1 Like

Pio, you won’t believe how useful this module is! You’ve practically saved my life by creating this module! Thank you so much! :heart:

1 Like

Very peaketh Pio, extremely peaketh (i do not use this)