UI Trouble with Fading

Hey, so I was trying to make a fade UI with text, but it just won’t work. Although this seems really easy (and this is) for some reason I have been stuck on this. I have some text and a frame. Can anyone help me?

local frame = script.Parent
local text = script.Parent.TextLabel

for i = 1,20 do
	text.TextTransparency += 0.01
	text.BackgroundTransparency += 0.01
	frame.BackgroundTransparency += 0.01

Here is what my UI looks like.
Screenshot 2023-10-05 at 10.52.37 PM

1 Like

It probably IS fading, just too quick for you to load into the game and see it

do I just put a wait function then?

oh you also have this line. Should be removed entirely

You can try putting a wait, yeah.
What is meant to trigger the fade?

1 Like

its just the player spawning in, right when the game starts. then it fades away