Ok i want when they reedem these codes it adds money towards the leaderboard but I keep breaking the script here is the script.
local codes = {
["supercode"] = function(player)
print(player.Name .. " entered a code!")
end,
["examplecode"] = function(player)
print("this example code was redeemed by " .. player.Name)
end,
["mlg_swag_360"] = function(player)
print(player.Name .. " is mlg!!!1!11!")
end
}
return(codes)

4 comments
Going to need a lot better explanation.
Er, I'm guessing this goes in some sort of TextButton? If so, you barely put in effort for this
^, Yes.. Also this might a modulescript. Because of the return(codes) BTW script owner use return codes not return(codes)
dude i have everything else :p i just needed this to work... i have all the module scripts and everything