So, I made this script and when I click it it gives me +2 money, but when I click it again it doesn't how do I make it so it gives another +2 money when I click it again?
local Tool = script.Parent
local Handle = Tool:WaitForChild("Handle")
Tool.Equipped:Connect(function()
print("It worked")
Tool.Activated:Connect(function()
local Clicked = game.Players.BlueFlash2020.leaderstats.Money
Clicked.Value = 2
end)
end)
Also, I'm just a beginner scripter

7 comments
You are settings the value to 2, not adding 2 to it. To do this, Clicked.Value = Clicked.Value + 2
Thx so much this helped alot
No problem!
Put in the title to let others know that this question has been answered.
ok
I'm Trying to make a simulator game
Try adding a cooldown if you want.