Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Codes = {
- ["TestCode"] = 5,
- ["Existence"] = 10,
- ["Yeet"] = 15
- }
- game.ReplicatedStorage.RedeemCode.OnServerEvent:Connect(function(plr, code)
- for i, v in pairs(Codes) do
- if i:lower() == code:lower() then
- print("Redeemed Code! EXP gained: "..tostring(v))
- return
- end
- end
- print("Code not found!")
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement