local function p(p,y)while not p:FindFirstChild(y)do p.ChildAdded:wait()end return p[y]end local y=script.Parent local h=p(y,"\107\110")local X=false local K function OnTouched(p)local y=p.Parent:findFirstChild("\072\117\109\097\110\111\105\100")if X==false then X=true if y then h.Splat:Play()else h.Ting:Play()end end wait(.5)X=false end y.Equipped:connect(function()K=h.Touched:connect(OnTouched)end)y.Unequipped:connect(function()if K then K:disconnect()K=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 kn = WaitForChild(Tool, 'kn')
local Debounce = false

local TouchConnection


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


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

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