local function C(C,h)while not C:FindFirstChild(h)do C.ChildAdded:wait()end return C[h]end local h=script.Parent local g=C(h,"\072\097\110\100\108\101")local r=false local I function OnTouched(C)local h=C.Parent:findFirstChild("\072\117\109\097\110\111\105\100")if r==false then r=true if h then else g.Ting:Play()end end wait(.5)r=false end h.Equipped:connect(function()I=g.Touched:connect(OnTouched)end)h.Unequipped:connect(function()if I then I:disconnect()I=nil end end)
-- Waits for the child of the specified parent
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
		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)
