Here is my script:
It is supposed to add eight (8) "money" to the player who clicked the image GUI. It is in a localscript.
local image = script.Parent
image.MouseButton1Down:connect(function()
game.Players.Localplayer.leaderstats["Money"].Value = game.Players.Localplayer.leaderstats["Money"].Value + 8
end)
Nothing happens when I click on the GUI. What is wrong?
Thank you

3 comments
No error?
Oop. There is: "Localplayer is not a valid member of Players"
You shouldn't worry too much about the format of the name (leaderstats["Money"]), because that is logically valid. Check the 4th bullet. http://wiki.roblox.com/index.php?title=API:Class/Instance/Name