So, the collum on the leader board is 'hamburgers eaten' and I need it so that when you have the tool equipped (in this case 'burger') and when you left click, it adds +1 hamburgers eaten to the leader board. And yes this sounds very dumb, a game, about, eating hamburgers. I am very new to scripting so some help will be very awesome, thx!
COMMUNITY QUESTION
when you click when you have a tool equipped, it adds 1 to the leaderboard?
1 answer
local tool = script.Parent
local player = game.Players.LocalPlayer
tool.Activated:Connect(function()
player.leaderstats.stathere.Value = player.leaderstats.stathere.Value + 1
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Not a request site dude.
IMPRININTINC use the updated answer I gave! The one I gave you doesn't work properly in game!
Please try to actually compile a code, because this site is NOT a requesting site. If you're asking for HELP, that is fine. It is reccomended and (I'm like 80% sure) enforced that you compile and re - write or paste your code in the post.