I was making a new game and when I typed out this script, it mostly worked just not the fade part:
01 | while wait( 6 ) do |
02 | script.Parent.N 1. Visible = true |
03 | wait( 1.5 ) |
04 | script.Parent.N 2. Visible = true |
05 | wait( 1.5 ) |
06 | script.Parent.N 3. Visible = true |
07 | wait( 1.5 ) |
08 | script.Parent.N 4. Visible = true |
09 | wait( 1.5 ) |
10 | script.Parent.N 5. Visible = true |
11 | wait( 1.5 ) |
12 | script.Parent.Parent:Fade() |
13 | end |
How do I fix this?
Visible is a bool, so it only has two values true or false
If you want it to fade then you will have to use background transparency
1 | frame = -- The frame you want to fade away |
2 |
3 |
4 | for i = 0 , 1 , 0.01 do -- at first i will equal 0 and each time it loops it will increase by 0.01 |
5 | frame.BackgroundTransparency = i |
6 | wait( 0.01 ) |
7 | end |
If you want to learn more about the for loop here is the wiki page