Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to fade change color on gui?

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.

4 comments

0

a for loop

0

use a loop the gradually adds or subtracts the Color's value

2

Use color3.Lerp with alpha set as "i" over the times the loop runs

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)

1 answer

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.