Advertisement
Existence_YT

[RobloxStudioProjects] RedeemCodeIU - TC-Server

Aug 19th, 2020
1,377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local Codes = {
  2.     ["TestCode"] = 5,
  3.     ["Existence"] = 10,
  4.     ["Yeet"] = 15
  5. }
  6.  
  7. game.ReplicatedStorage.RedeemCode.OnServerEvent:Connect(function(plr, code)
  8.     for i, v in pairs(Codes) do
  9.         if i:lower() == code:lower() then
  10.             print("Redeemed Code! EXP gained: "..tostring(v))
  11.             return
  12.         end
  13.     end
  14.     print("Code not found!")
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement