Hey, I'm working on a Intro GUI for my game and I want the text to fade in. But I want to do it in a way where it won't look like this:
script.Parent.TextTransparency = 1 wait(0.1) script.Parent.TextTransparency = .9 wait(0.1) script.Parent.TextTransparency = .8 wait(0.1) script.Parent.TextTransparency = .7 wait(0.1) script.Parent.TextTransparency = .6 wait(0.1) script.Parent.TextTransparency = .5 wait(0.1) script.Parent.TextTransparency = .4 wait(0.1) script.Parent.TextTransparency = .3 wait(0.1) script.Parent.TextTransparency = .2 wait(0.1) script.Parent.TextTransparency = .1 wait(0.1) script.Parent.TextTransparency = 0 wait(0.1)
I've already tried:
for i 0.1,1 do script.Parent.TextTransparency = i wait(0.1) end
And it didn't work. is there a way to make this work?
Simple, try this.
for i = 1,0,-0.1 do script.Parent.TextTransparency = i wait(0.1) end
You forgot the =