Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can i make a "fade" animation for my gui without having to wait for every single frame in it?

Asked by
1lO_Ql1 -1
5 years ago

How can i make a "fade" animation for my gui without having to wait for every single frame in it? here's my current code:

01---------------------------------main script
02gui = script.Parent
03local ok = require(gui.MAINMOD)
04    ok:FadeOut(gui.loader)
05    for _,c in pairs(gui.loader:GetDescendants())do
06        if c.Name~="LocalScript"then
07    ok:FadeOut(c)
08    end
09    end
10    ok:swait(3)
11    gui.loader:Destroy()
12    gui.main.Visible = true
13    ok:FadeIn(gui.main)
14    for _,c in pairs(gui.main:GetDescendants())do
15    ok:FadeIn(c)
View all 82 lines...

This code will wait for every gui part instead of doing it all together. I would like it to do the fade animation all together but I don't know how.

0
do a loop? TheRealPotatoChips 793 — 5y

Answer this question