So, I asked a question a few days ago, How do I get a players name from a click detector, And the answer I got was This I'm now wondering how I can change a IntValue that's in the player that clicked it? By no means am I asking for the script, Just the functions / ways I can go about doing it would be very helpful.
Thanks :)
The ClickDetector.MouseClick
event gives its listeners the player that clicked it. So, all you'd have to do to change the value of one of the player's stats is something like this:
local cd = path.to.click.detector cd.MouseClick:connect(function(plrWhoClicked) plrWhoClicked.leaderstats.Stat.Value = plrWhoClicked.leaderstats.Stat.Value + 1 end)