local speed = 0.05 local base = script.Parent function transition(c2,c1) --c2 is new, c1 is old. for i = 0,1,speed do base.ImageColor3 = c1:lerp(c2,i); wait(.05) end base.ImageColor3 = c2 end
I finishing color is red.
You can use the lerp
function on color3 values.
local speed = 0.05 local base = script.Parent function transition(c2,c1) --c2 is new, c1 is old. for i = 0,1,speed do base.ImageColor3 = c1:lerp(c2,i); wait(.05) end base.ImageColor3 = c2 end