function onTouched(hit) 2 if hit.Name == 'BuildingBrick' then 3 hit:Destroy() 4 end 5 end 6 script.Parent.Touched:connect(onTouched)