Script stops printing the count of for loop, and it also doesn't work anymore?
Asked by
4 years ago Edited 4 years ago
I have this script to make a loading screen, and it has a for loop wich sets the imagelabel's imagetransparency from 1 to 0 and then from 0 to 1. The problem is, it waits 0.4 seconds before changing, stops on -0.8, waits about 2 seconds and just doesn't work anymore. This is the script:
01 | local Gui = script:WaitForChild( "LoadingGui" ) |
02 | local player = game.Players.LocalPlayer |
04 | local FranXXicon = backG.Icon |
09 | FranXXicon.ImageTransparency = 1 |
12 | FranXXicon.ImageTransparency = 0.9 |
15 | FranXXicon.ImageTransparency = 0.8 |
18 | FranXXicon.ImageTransparency = 0.7 |
22 | FranXXicon.ImageTransparency = 0.6 |
25 | FranXXicon.ImageTransparency = 0.5 |
28 | FranXXicon.ImageTransparency = 0.4 |
31 | FranXXicon.ImageTransparency = 0.3 |
34 | FranXXicon.ImageTransparency = 0.2 |
37 | FranXXicon.ImageTransparency = 0.1 |
38 | elseif i = = - 1.3877787807814 e- 16 then |
40 | FranXXicon.ImageTransparency = 0 |
46 | FranXXicon.ImageTransparency = 0.1 |
49 | FranXXicon.ImageTransparency = 0.2 |
52 | FranXXicon.ImageTransparency = 0.3 |
55 | FranXXicon.ImageTransparency = 0.4 |
58 | FranXXicon.ImageTransparency = 0.5 |
61 | FranXXicon.ImageTransparency = 0.6 |
64 | FranXXicon.ImageTransparency = 0.7 |
67 | FranXXicon.ImageTransparency = 0.8 |
70 | FranXXicon.ImageTransparency = 0.9 |
73 | FranXXicon.ImageTransparency = 1 |