How do I make a Fade In TextLabel?

I’m trying to figure out how to make a Fade-In text label, that eventually fades out at a certain amount of time.

How would I do this?

2 Likes

Tween service! You can tween the transparency or position of the UI. If you would want the label to disappear after an amount of time you could do wait()

1 Like

You could use tween service or a simple for loop. Either would work, although I would recommend tween service.

By the use of a for loop or tween, you can.

Demonstration:

local TweenService = game:GetService("TweenService")

local textLabel = script.Parent

wait(1) 

TweenService:Create(textLabel, TweenInfo.new(), {Transparency = 1}:Play()

I don’t recommend using for loops for this, they don’t work as expected.

More information: TweenService | Documentation - Roblox Creator Hub

1 Like

Yes that is some sample code @FR0GS00P that you can use.

If you build off of this, it may help in some way:
https://developer.roblox.com/en-us/api-reference/property/TextLabel/TextTransparency

I was searching for a solution to a similar problem as well, and this seemed to help out.