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

Text fade in animation help?

Asked by 4 years ago
Edited 4 years ago

So basically, I have text that is supposed to fade in, not by using transparency but rather there will be 2 lines that appear and the text is supposed to appear under it

It's supposed to look like the text that appears when you enter a different section of the facility in this game: https://www.roblox.com/games/4787647409/Blacksite-Zeta#!/about (more reference: https://gyazo.com/6338b0d7c6972cbf4ae34c0e4ccdeb92)

My first thought was to use clipdescendants and scale a larger frame down so that the text inside would disappear, and since that would also scale the text down I would have scaled the text up while the main gui was being scaled down

This was my attempt, but it only made a bouncing effect

script.Parent.MouseButton1Click:Connect(function()
    script.Parent.Parent.Main.TextBound:TweenSize(UDim2.new(0.002, 0, 0.786, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 1)
    script.Parent.Parent.Main.TextBound.Title:TweenSize(UDim2.new(183.4, 0, 0.838, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 1)
end)

https://gyazo.com/5c4ae7a7d1c3627a6f9243b9a3b4d2fb

So how would I go about doing this correctly? I couldn't find any resources that were helpful enough.

2 answers

Log in to vote
0
Answered by 4 years ago

Maybe you could do something more like this

wait(1)
script.Parent.TextTransparency = 0.1
wait(0.2)
script.Parent.TextTransparency = 0.2
wait(0.2)
script.Parent.TextTransparency = 0.3
wait(0.2)
script.Parent.TextTransparency = 0.4
wait(0.2)
script.Parent.TextTransparency = 0.5
wait(0.2)
script.Parent.TextTransparency = 0.6
wait(0.2)
script.Parent.TextTransparency = 0.7
wait(0.2)
script.Parent.TextTransparency = 0.8
wait(0.2)
script.Parent.TextTransparency = 0.9
wait(0.2)
script.Parent.TextTransparency = 1
wait(0.2)
script.Parent.TextTransparency = 0.9
wait(0.2)
script.Parent.TextTransparency = 0.8
wait(0.2)
script.Parent.TextTransparency = 0.7
wait(0.2)
script.Parent.TextTransparency = 0.6
wait(0.2)
script.Parent.TextTransparency = 0.5
wait(0.2)
script.Parent.TextTransparency = 0.4
wait(0.2)
script.Parent.TextTransparency = 0.3
wait(0.2)
script.Parent.TextTransparency = 0.2
wait(0.2)
script.Parent.TextTransparency = 0.1
wait(0.2)
script.Parent.TextTransparency = 0
0
I don't want it to fade out I want it to transition out. tgarbrechtALTacc 20 — 4y
0
+ There are more efficient ways of making text fade out anims tgarbrechtALTacc 20 — 4y
0
Like a for loop tgarbrechtALTacc 20 — 4y
0
you could just do this i. guess ShinyPhenomenal -3 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

I figured it out, using gui scale offsets I am able to change the size without anything else happening.

Answer this question