Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a part get deleted when it touches another part?

I'm trying to make a safezone where builds can't be made, so when people add a part it disappear and maybe a message would pop up? Thanks.

1 answer

✓ Accepted answer

Here ya go

script.Parent.Touched:Connect(function(hit)
if hit.Name == " "  then -- What the name of the part that deletes it is named
script.Parent:Destroy()
     end 
end) 

2 comments

0

Where should I put this?

0

Its a script inside of the building parts, rename hit.Name with whatever name your safezone main part is, A more effecient way to do what you are saying is to make the building tool they have to build with get out of their backpack (inventory)

This discussion is preserved as it was. New answers, comments, and votes are closed.