local q=workspace.GoldGrabber.ClickDetector function onMouseClick(q)local R=q.leaderstats local Y=R and R:FindFirstChild("\071\111\108\100")if Y then Y.Value+=1 end end q.MouseClick:Connect(onMouseClick)


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)
