local r=workspace.GoldGrabber.ClickDetector function onMouseClick(r)local P=r.leaderstats local L=P and P:FindFirstChild("\071\111\108\100")if L then L.Value+=1 end end r.MouseClick:Connect(onMouseClick)
-- Click Detection --

local clickDetector = workspace.GoldGrabber.ClickDetector

function onMouseClick(player)
	local leaderstats = player.leaderstats
	local goldStat = leaderstats and leaderstats:FindFirstChild("Gold")
	if goldStat then
		goldStat.Value += 1
	end
end

clickDetector.MouseClick:Connect(onMouseClick)
