I have a script which deletes a brick named "BuildingBrick" when it Cframes through another brick with a script. "Buildingbrick" is anchored. How would I make this script work even if cancollide is set to false?
Script:
1 | while wait(. 1 ) do |
2 | local parts = script.Parent:GetTouchingParts() |
3 | for i, part in pairs (parts) do |
4 | if part.Name = = "BuildingBrick" and part.Anchored then |
5 | part.Anchored = false |
6 | part:Destroy() |
7 | end |
8 | end |
9 | end |