I have some parts, each named "Flower", in my model. I put a script in the model to change the colors of the flowers every second. The flowers don't change color, though. The script's code's below. Can anyone help?
local flowers = script.Parent:GetChildren()
local colors = {"Bright red", "Bright yellow", "Bright blue", "Bright violet", "Bright bluish green",
"Bright orange", "Institutional white"
}
while true do
if flowers.Name == "Flower" then
flowers.BrickColor = BrickColor.new(flowers[math.random(#flowers)])
end
wait(1)
end

1 comment
Yours didn't work for some reason... but thanks for pointing out my errors. :)