What I am saying is when you equip the item, you click and it will add to your leaderstats.
Okay, make a LocalScript and put this in your tool.
local leaderstats = game.Players.LocalPlayer:WaitForChild("leaderstats") -- Put whatever you want here (whatever the name of your currency is) local cash = leaderstats:WaitForChild("Money")
local tool = script.Parent
local function onEquipped() cash.Value = cash.Value + 5 -- Put whatever number here end
tool.Equipped:connect(onEquipped)
Tell me if this works, I'm pretty sure it will.
Closed as Not Constructive by OldPalHappy
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?