So I am working on a code system where you enter a promotional code and get coins. The major part of the script is done, but I cannot figure out how to reference the leaderstat. I have it set up so that it prints the message of redemption. I also need to figure out how to add to the value rather than change it. So can anyone help me? My script so far:
local codes = {
["aloha2020"] = function(player)
print(player.Name .. " redeemed 100 dollars using code aloha2020!")
end,
}
return(codes)

1 comment
Thanks for the help