It has been a while since I have scripted and decided to refresh myself. What I am trying to do is create a brick and allow it to change colors until a certain color (green in this case).
a = Instance.new("Part", workspace)
while BrickColor.Green() do
wait(0.1)
a.BrickColor = BrickColor.Random()
wait(0.1)
end

1 comment
I want to do this with the while condition do function though.