Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

when you click when you have a tool equipped, it adds 1 to the leaderboard?

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!

3 comments

0

Not a request site dude.

0

IMPRININTINC use the updated answer I gave! The one I gave you doesn't work properly in game!

0

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.

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.