local M=0 function onTouched(o)if M==0 then M=1 check=o.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")if check~=nil then local M=game.Players:GetPlayerFromCharacter(o.Parent)local I=M:findFirstChild("\108\101\097\100\101\114\115\116\097\116\115")if I~=nil then local M=I:findFirstChild("\083\079\085\076\083")M.Value=M.Value+5000 wait(3)end end M=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("SOULS") --Money type
			cash.Value  = cash.Value +5000 --increase amount of money by the number displayed here (500)
			wait(3) --wait-time before button works again
		end

	end

	ting = 0 --remove debounce
	end

end

script.Parent.Touched:connect(onTouched)
