I don't know if this is possible but its been in my mind for a while and it would be great if you could help me figure this out?
✓ ANSWER ACCEPTED
How do you make a brick for example destroy anything with the name "Part" once touched?
1 answer
✓ Accepted answer
We want to destroy anything that touches a part with a given name.
local part = game.Workspace.Toucher
local name = "Part"
part.Touched:connect(partThatTouched)
if partThatTouched and partThatTouched.Name == name then
partThatTouched:Destroy()
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
