my leade3rstats are called "Muscle" i need it for a simulator i made saving leaderstats so all i need is to make tool and Purchaseable tools please help me :D so i would apresiate help on purchasable tools :D
current code
local Player = game.Players.LocalPlayer local Stats = Player:WaitForChild("leaderstats") local Mucsle = Stats:WaitForChild("Muscle")
local Debounce = false -- this prevent from spamming the button! Button.MouseButton1Click:Connect(function() if Debounce == false then Debounce = true
Muscle.Value = Muscle.Value + 1
wait(1) -- this is the amount of secounds you should wait before getting more money!
Debounce = false
end
end)

3 comments
i really need help
nah
I think you might want to look the API for the Activated event (https://developer.roblox.com/en-us/api-reference/event/Tool/Activated) which tools have. It triggers if a player clicks while having the tool equipped.