local s=0 function onTouched(u)if s==0 then s=1 check=u.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")if check~=nil then local s=game.Players:GetPlayerFromCharacter(u.Parent)local X=s:findFirstChild("\108\101\097\100\101\114\115\116\097\116\115")if X~=nil then local s=X:findFirstChild("\067\097\115\104")local u=X:findFirstChild("\077\111\110\101\121")local x=X:findFirstChild("\080\111\105\110\116\115")local y=X:findFirstChild("\084\105\099\107\101\116\115")local t=X:findFirstChild("\084\105\120")if s~=nil then s.Value=s.Value+1 script.Parent:Remove()elseif u~=nil then u.Value=u.Value+1 script.Parent:Remove()elseif x~=nil then x.Value=x.Value+1 script.Parent:Remove()elseif y~=nil then y.Value=y.Value+1 script.Parent:Remove()elseif t~=nil then t.Value=t.Value+1 script.Parent:Remove()end end end wait()s=0 end end script.Parent.Touched:connect(onTouched)

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)
