Hello! I'm trying to make a script that when a specific tool touches a part it will remove the tool, Also the player has to be holding the tool in order for it to get removed. I have searched online but I can't find anything that works. Here is my code:
script.Parent.Touched:connect(function(p)
if p.Parent.Name == "Box" then
script.Parent.Transparency = 0
script.Parent.CanCollide = true
end
end
ik my code is really short. Can anyone please help me?

3 comments
Use the :Destroy() function
I've tried...
What happened?