Hello, I need help with this script that is made to go in a tool and when that tool touches somthing it checks its name and if its name is "Pic" then delete it. It dose nothing when I touch a part named "Pic" with it.
function OnTouched(Picture)
Print("You touched something!")
if Picture.Name == "Pic" then
Print("You touched the picture!")
Picture:Destroy()
script.Parent:Destroy()
end
end
Pic.Touched:connect(OnTouched)
Thanks!

1 comment
Pic is a part. And that is the full script...