I'm trying to get the brick colors to change all at once to 'Bright red'. I'm having trouble because it's doing them one at a time. (Not all at the same time.) Keep in note, this is only the ending part of my script.
if contraband == true and enabled == false then
enabled = true
for i,v in pairs(script.Parent.Parent:GetChildren()) do
if v.Name == 'Light' then
v.BrickColor = BrickColor.new('Bright red')
script.Parent.Sound:Play()
wait(3)
for i,v in pairs(script.Parent.Parent:GetChildren()) do
if v.Name == 'Light' then
v.BrickColor = BrickColor.new('Mid gray')
end
end
enabled = false
end
end
end
