At the moment the bricks named Part1 change colour one by one. What do I have to add so that the bricks with the same name change colour at the same time?
local parts = Workspace:GetChildren()
for _, child in ipairs (parts) do -- Generic for loop
if child.Name == 'Part1' then
while true do
child.BrickColor = BrickColor.new("Hot pink")
wait(0.5)
child.BrickColor = BrickColor.new("Bright red")
wait(0.5)
end
end
