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

Fading load screen doesn't fade?

script.Parent.BackgroundTransparency=0
wait(3)
for i=.1,1, .1 do
	wait(.30)
	i=script.Parent.BackgroundTransparency
end
print(script.Parent.Parent.Name .. " has finished.")
script.Parent.Parent:Destroy()

It only stays black...waits...then removes it. It doesn't fade! The script is a LocalScript so i cant see the problem. Please help!

1 comment

0

I just noticed i need to create it again everytime someone joins so it will do it again, but that dosnt matter, i need to know how to make it fade.

1 answer

✓ Accepted answer

To fade you need a For Loop counting up, not down. You want the transparency to be 1 to completely fade it

script.Parent.BackgroundTransparency=0
wait(3)
for i = 1,10 do
    wait(.30)
    script.Parent.BackgroundTransparency = i / 10
end
print(script.Parent.Parent.Name .. " has finished.")
script.Parent.Parent:Destroy()

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