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

Help getting everything to fade out at the same time?

Asked by 8 years ago
for _, v in pairs(introframe:GetChildren()) do
    for i = 0, 1, 0.05 do
        v.TextTransparency = i
        wait(0.05)
    end
end

This script works, yes, but I want it to fade all the text at the same time. Their is 4 TextLabel's inside the introframebut it fades one at a time. Is their a way to make it all go at once??

1 answer

Log in to vote
2
Answered by 8 years ago

You almost got, it but you want to do it other way around, like this:

for i = 0, 1, 0.05 do
    for _, v in pairs(introframe:GetChildren()) do
        v.TextTransparency = i
    end
    wait(0.05)
end

Basically, every step you want to go through all the parts and update their transparency.

Ad

Answer this question