Hello! So yeah, I stumbled across another problem in my script that I have no idea what is wrong with it. So I want my BrickColorValue to be changed every second. (Don't ask why, it is complicated) But when ever I try to change it, nothing happens and it basically disables the script. (None of the other things in the script works.) There is nothing in the output so I have no idea whats wrong.
Tool = script.Parent
Value = Tool.BrickColorValue.Value
while true do wait()
Value = BrickColor.new("Bright red")
wait(1)
Value = BrickColor.new("Toothpaste")
wait(1)
Value = BrickColor.new("Lime green")
wait(1)
Value = BrickColor.new("Mid gray")
wait(1)
Value = BrickColor.new("Bright violet")
wait(1)
Value = BrickColor.new("Bright yellow")
wait(1)
Value = BrickColor.new("Bright orange")
wait(1)
end

4 comments
Ahh. Okay! I'll keep this in mind! Thanks!
No problem
There's no point to saying
colors[i]when you havevalready! That said, you should probably use_, colorso that you have clear variable names! Also a note thatpairswon't return things in any particular order. If you need the order to be what you wrote, you have to useipairsIt worked and the guy was happy so there is no need to be fickle over the details.