local e=script.Parent e.Touched:Connect(function(e)local c=e.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")if c then local c=game.Players:GetPlayerFromCharacter(e.Parent)if c then local e=c:WaitForChild("\108\101\097\100\101\114\115\116\097\116\115")local D=e:WaitForChild("\067\111\105\110\115")local U=e:WaitForChild("\067\108\105\099\107\115")if U.Value>0 then D.Value=D.Value+U.Value U.Value=0 end end end end)


local Part = script.Parent
Part.Touched:Connect(function(HIT)
	local H = HIT.Parent:FindFirstChild("Humanoid")	
	if H then
		local player = game.Players:GetPlayerFromCharacter(HIT.Parent)	
if player then
	local leaderstats = player:WaitForChild("leaderstats")
	local Currency = leaderstats:WaitForChild("Coins")
	local Selling = leaderstats:WaitForChild("Clicks") 
		if Selling.Value > 0 then
			Currency.Value = Currency.Value + Selling.Value
			Selling.Value = 0
		end
end
end
end)
