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

0

You are settings the value to 2, not adding 2 to it. To do this, Clicked.Value = Clicked.Value + 2

0

Thx so much this helped alot

0

No problem!

0

Put in the title to let others know that this question has been answered.

0

ok

0

I'm Trying to make a simulator game

0

Try adding a cooldown if you want.