Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 2 years ago

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

Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

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) 
0
Where should I put this? RunkerSecurity 6 — 2y
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) yayaheyman 90 — 2y
Ad

Answer this question