Repeat task.wait() not working

Its waiting until the TextTransparency is 0 but when its 0 the repeat task.wait() fires after 2 sec u can check the Output in the Video.

That’s because the loop is nested. The loop will be executed every time the parent loop loops. You’ll want to use a while loop instead of a repeat loop as a while loop will only execute if the statement is true, where as the repeat loop will execute first and then repeat if the statement is false. However, I would recommend avoiding using loops as much as possible.

2 Likes

task.wait(1) before that line is probably causing a nested loop, Try using no interval and see what happens

1 Like