Trying to make a function where the brick color changes randomly and stops changing once reaches the color, dark blue.
local a = script.Parent
while a.BrickColor ~= "Dark blue" do --this line is not being executed properly
a.BrickColor = BrickColor.Random()
wait(0.25)
end

1 comment
Thanks! It worked perfectly.