You can use TweenService to intepolate the colour of the gui from one colur to another over a given period of time.
For example:
02 | local startColor = Color 3. new( 1 , 0 , 0 ) |
03 | local endColor = Color 3. new( 0 , 0 , 1 ) |
06 | label.BackgroundColor 3 = startColor |
08 | goal.BackgroundColor 3 = endColor |
09 | local info = TweenInfo.new(tweenTime) |
10 | local tween = game:GetService( "TweenService" ):Create(label,info,goal) |
13 | tween.Completed:Wait() |
Or, if you wanted it to cycle through all of the colours, you could simply do something like this:
3 | label.BackgroundColor 3 = Color 3. fromHSV(i/ 255 , 1 , 1 ) |