Advertisement
HowToRoblox

CodesModule

Dec 18th, 2022
1,521
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.99 KB | None | 0 0
  1. local codes = {}
  2.  
  3.  
  4. --[[Structure
  5.  
  6. codes["CODE NAME"] = {
  7.     reward = {"Number Type"} ---> Number is how much of the Type you get. You can also give a tool as a value in the array.
  8.    
  9.     --Optional values:
  10.     maxRedeems = Integer ---> The amount of times the code can be redeemed before it becomes invalid
  11.     repeatable = Boolean ---> Whether a player can use the code more than once
  12.     expiresAt  = Number  ---> When the code will expire. You can get this time by entering this into the command bar:  
  13.                            --            print(os.time({year=2022, month=12, day=25, hour=0, minute = 0, second = 0}))
  14. }
  15.  
  16. ]]--
  17.  
  18. codes["FREE CASH 123"] = {
  19.     reward = {"500 Cash"};
  20.     maxRedeems = 1;
  21. }
  22.  
  23. codes["SUPERHUMAN"] = {
  24.     reward = {"40 WalkSpeed", "15 JumpHeight", "1000 MaxHealth", "1000 Health"};
  25.     repeatable = true;
  26. }
  27.  
  28. codes["500K LIKES"] = {
  29.     reward = {"30000 Cash", script.Parent:WaitForChild("ToolRewards"):WaitForChild("ClassicSword")};
  30.     expiresAt = 1671926400;
  31. }
  32.  
  33.  
  34. return codes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement