I want it so the old text fades out and the new text fades in (the same textlabel)

  1. What do you want to achieve?
    Text that fades in and out

  2. What is the issue?
    I cant seem to figure it out and I’d like some help.

  3. What solutions have you tried so far?
    I’ve tried putting the text after the fading out and in boxes but it wont work.

local Main2 = script.Parent
for i = 1,2 do
	Main2.TextTransparency += 0.1
wait(0.1)
end

wait(3.5)
script.Parent.Text = "AstronautJaye Presents"

for i = 1,2 do
	Main2.TextTransparency -= 0.1
wait(0.1)
end

wait(3.5)
script.Parent.Text = "Pacific Railway"

This is a script inside of a textlabel.

Your for loops only loop 2 times! Try setting them to:

for i = 1, 10 do

That should work!

Awesome, however ‘AstronautJaye presents’ dosent fade out and the new text dosent fade in.

This is probably because you are setting the text after the loops, maybe try putting them in front of the loops.

local Main2 = script.Parent
for i = 1, 10 do
	Main2.TextTransparency += 0.1
wait(0.1)
end

wait(3.5)
script.Parent.Text = "AstronautJaye Presents"

for i = 1, 10 do
	Main2.TextTransparency -= 0.1
wait(0.1)
end

Hope this helps!