You shouldn't put it in all thousands of bricks. You should make one script that cycles through all bricks using a for loop and then does what it's supposed to do. An example:
for i, Part in pairs(game.Workspace.Parts:GetChildren()) do
Part.Touched:connect(function()
Part.CanCollide = false
wait(2)
Part.CanCollide = true
end)
end
This script can be updated whenever you want, and it affects all the parts. |