--Uberubert

local ting = 0 --debouncer

function onTouched(hit)
	if ting == 0 then --debounce check
	ting = 1 --activate debounce
	check = hit.Parent:FindFirstChild("Humanoid") --Find the human that touched the button
	if check ~= nil then --If a human is found, then
		local user = game.Players:GetPlayerFromCharacter(hit.Parent) --get player from touching human
		local stats = user:findFirstChild("leaderstats") --Find moneyholder
		if stats ~= nil then --If moneyholder exists then
			local cash = stats:findFirstChild("Cash")
			local cash2 = stats:findFirstChild("Money")
			local cash3 = stats:findFirstChild("Points")
			local cash4 = stats:findFirstChild("Tickets")
			local cash5 = stats:findFirstChild("Tix")
			if cash ~= nil then
			cash.Value  = cash.Value +1
			script.Parent:Remove()
			elseif cash2 ~= nil then
			cash2.Value  = cash2.Value +1
			script.Parent:Remove()
			elseif cash3 ~= nil then
			cash3.Value  = cash3.Value +1
			script.Parent:Remove()
			elseif cash4 ~= nil then
			cash4.Value  = cash4.Value +1
			script.Parent:Remove()
			elseif cash5 ~= nil then
			cash5.Value  = cash5.Value +1
			script.Parent:Remove()
			end
		end
	end
	wait()
	ting = 0 --remove debounce
	end
end

script.Parent.Touched:connect(onTouched)
