roblox studio how to make a constantly changing color of a brick
while true do
script.Parent.Color = Color3.new(255/255,0/255,0/255)
for i = 0,255,10 do
wait()
script.Parent.Color = Color3.new(255/255,i/255,0/255)
end
for i = 255,0,-10 do
wait()
script.Parent.Color = Color3.new(i/255,255/255,0/255)
end
for i = 0,255,10 do
wait()
script.Parent.Color = Color3.new(0/255,255/255,i/255)
end
for i = 255,0,-10 do
wait()
script.Parent.Color = Color3.new(0/255,i/255,255/255)
end
for i = 0,255,10 do
wait()
script.Parent.Color = Color3.new(i/255,0/255,255/255)
end
for i = 255,0,-10 do
wait()
script.Parent.Color = Color3.new(255/255,0/255,i/255)
end
end