New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Still have questions? Join our Discord server and get real time help.
0

# How do i change it to where its a part hitting another part, not tool?

Asked by 11 days ago

Hi, so I have this script where when you touch a part with a tool, the part gets destroyed. In this case it would be labled "Pole". I want it to where when one part touches another part, the part that touches it is destroyed, if that makes sense. So this script would go inside the part I want to be destroyed.

script.Parent.Touched:Connect(function(p)
if p.Parent.Name == "Pole" then
script.Parent:Destroy()
end
end)


Thank you.

0
Is the Handle named Pole or is the tool itself named Pole? x1x3x6x9x12x15x 42 — 11d
0
the tool is named pole PxnnPenguinx 5 — 11d