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.

7 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!!

2 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