I have a function that is suppose to remove bricks when it touches the brick with the function. How can I make it so the function will also delete anchored bricks?
Here's the script:
1 | function onTouched(hit) |
2 | if hit.Name = = 'BuildingBrick' then |
3 | hit:Destroy() |
4 | end |
5 | end |
6 | script.Parent.Touched:connect(onTouched) |