Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

This script makes text fade out but the background is there can I make the background fade out to?

Here's my script that I put inside the text label.

wait(0)
for loop = 1,10 do
        wait(0.5)  
        script.Parent.TextTransparency = loop/10
        game:GetService("RunService").Stepped:Wait()
    end

2 comments

0

TextLabel.BackgroundTransparency = loop/10

0

would this work maybe? script.Parent.BackgroundTransparency = loop/10

2 answers

for loop = 1,0,-.1 do wait(0.5) script.Parent.TextTransparency = loop end

for loop = 0,1,.1 do wait(0.5) script.Parent.TextTransparency = loop
end

Here you go

2 comments

0

its fading in not out and the background is still there

0

i made an edit the first one will fade in and the second will fade out

I made it work by doing this:

wait(0)
for loop = 1,10 do
    wait(0.5)  -----------Fade Time
    script.Parent.BackgroundTransparency = loop/10
    wait(0.5)
    script.Parent.TextTransparency = loop/10
        game:GetService("RunService").Stepped:Wait()
    end
script.Parent.BackgroundTransparency = loop/10

Thanks for the support!

This discussion is preserved as it was. New answers, comments, and votes are closed.