Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to fade change color on gui?

Asked by 6 years ago

I have a gui or frames. I wan't these frames to change color but in a fade effect. I can't remember how to do it and when searching it I only get to a really old video or helping pages.

0
a for loop R_alatch 394 — 6y
0
use a loop the gradually adds or subtracts the Color's value Viking359 161 — 6y
2
Use color3.Lerp with alpha set as "i" over the times the loop runs lukeb50 631 — 6y
1
If you are trying to tween between multiple colors, you can also use tweenservice (http://wiki.roblox.com/index.php?title=API:Class/TweenService) Reshiram110 147 — 6y

1 answer

Log in to vote
1
Answered by
4D_X 118
6 years ago

This fades from black to red, green, then blue.


for i = 0,1,0.01 do script.Parent.TextColor3 = Color3.new(0, i, 0) wait() end for i = 0,1,0.01 do script.Parent.TextColor3 = Color3.new(i, 0, 0) wait() end for i = 0,1,0.01 do script.Parent.TextColor3 = Color3.new(0, 0 ,i) wait() end

You can create some good stuff with this. If it helped please accept the answer..

Thx bye

Ad

Answer this question