Tool deleting problem

So what I’m trying to do is when a tool touches a part, the tool deletes.
What happens is that the tool doesnt delete.
The script

local tooldelete=script.Parent
tooldelete.Touched:Connect(function(otherPart)
	if otherPart:IsA("Tool") then
		otherPart:Destroy()
	end
end)
1 Like

When you tap the Tool, you are tapping a part of it, not the Tool itself, try using this:

local tooldelete=script.Parent
tooldelete.Touched:Connect(function(otherPart)
	if otherPart.Parent:IsA("Tool") or otherPart.Parent.Parent:IsA("Tool") then
		otherPart:Destroy()
	end
end)
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.