set interval to change color javascript code example
Example: how to make a color change every second
local part = --what ever you want it to be
table = {
Brickcolor.new("Bright Red"),
Brickcolor.new("Forest Green"),
Brickcolor.new("Lime Green")
end
while true do
part.Brickcolor = math.random(table)
end