roblox how to change color of block code example
Example: roblox how to change color of block
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