local toolClicked = false
Player = game.Players.LocalPlayer
local tool = script.Parent
tool.Activated:connect(function()
if not toolClicked then
toolClicked = true
wait(1.2)
Player.leaderstats.Cash.Value = Player.leaderstats.Cash.Value + 3
toolClicked = false
end
end)
So this works in the studio when I press play but when I use ROBLOX Player instead it won't work. (won't give any cash, so can someone help?)

4 comments
Is this a script or localscript?
A script
Thx
if not toolClicked?