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

I made a for loop for fading in something and it doesnt work?

This is Fade in For loop is not working. Help!

wait()
for i = 0,1.5,0.05 do
	wait(0.1)
	script.Parent.BackgroundTransparency = i
end

1 answer

1.5 is not a valid transparency, its 0 through 1, visible to transparent. if you want to fade into existence, you don't swap the first two values, but instead use a negative change

for i = 1,0,-.1 do
	script.Parent.Transparency = i
	wait(.1)
end

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