local function A(A,N)while not A:FindFirstChild(N)do A.ChildAdded:wait()end return A[N]end local N=script.Parent local E=A(N,"\072\097\110\100\108\101")local I=false local e function OnTouched(A)local N=A.Parent:findFirstChild("\072\117\109\097\110\111\105\100")if I==false then I=true if N then E.Splat:Play()else E.Ting:Play()end end wait(.5)I=false end N.Equipped:connect(function()e=E.Touched:connect(OnTouched)end)N.Unequipped:connect(function()if e then e:disconnect()e=nil end end)

local function WaitForChild(parent, childName)
	while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
	return parent[childName]
end


local Tool = script.Parent
local Handle = WaitForChild(Tool, 'Handle')
local Debounce = false

local TouchConnection


function OnTouched(hit)
	local humanoid = hit.Parent:findFirstChild('Humanoid')
	if Debounce == false then
		Debounce = true
		if humanoid then
			Handle.Splat:Play()
		else
			Handle.Ting:Play()
		end
	end
	wait(0.5)
	Debounce = false
end


Tool.Equipped:connect(function()
	TouchConnection = Handle.Touched:connect(OnTouched)
end)

Tool.Unequipped:connect(function()
	if TouchConnection then
		TouchConnection:disconnect()
		TouchConnection = nil
	end
end)
