Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Reedeming Code Help?

Asked by
22To 70
9 years ago

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)
0
Going to need a lot better explanation. NotsoPenguin 705 — 9y
0
Er, I'm guessing this goes in some sort of TextButton? If so, you barely put in effort for this Shawnyg 4330 — 9y
0
^, Yes.. Also this might a modulescript. Because of the return(codes) BTW script owner use return codes not return(codes) MessorAdmin 598 — 9y
0
dude i have everything else :p i just needed this to work... i have all the module scripts and everything 22To 70 — 9y

Answer this question