Help on making text appear

I want this text to appear not fade so I have tried to do that, though can’t figure out how. Please leave your suggestions to make this work thanks!

script.Parent.Credits.TextTransparency = 1
for loop = 10, 1,-1
do
wait(0.1)
script.Parent.Credits.TextTransparency -= 1
print(“works”)
end

2 Likes

Hey there. I am certain your question has probably been asked before, however here is the issue with your script. Text.Transparency can be a value that is equakl to an integer between 0 and 1. Instead of -=-1 for the visible
do 0
script.Parent.Credits.TextTransparency = 1
for loop = 10, 1,-1
do
wait(0.1)
script.Parent.Credits.TextTransparency = 0
print(“works”)
end

You need to fix the part that is
script.Parent.Credits.TextTransparency -= 1
To this:
script.Parent.Credits.TextTransparency = - 1
I think that is your error.

Transparency can be an int value 0 to 1.

Or try setting it to 0, that might fix the issue.

Ah, that’s right. Change it to 0 and tell us what happened.

Tried, and doesn’t seem to work.

1 Like

Make sure you are also adjusting TextStrokeTransparency.
Just add a new line below the other two, and make sure to adjust it. Otherwise, I have very little context regarding where the script is, whether it is a local script, etc…
You said, you want the text to “appear not fade”, however you have it in a loop that is meant to fade it in and out. Which one are you trying to do? Fading text or just appear disappear no transition?

Slowly appearing text if you get what I mean.

script.Parent.Credits.TextTransparency = 1

local Trans = 1

for I = 1, 10 do
     wait(0.1)
     Trans = Trans - 0.1
     script.Parent.Credits.TextTransparency = Trans
end

print("Ran")

Change the wait for longer or shorter times.
Use TweenService if you want smooth transitions.

Still nothing, anything else in mind.

Make sure this is a local script not a Script and that it is in the StarterGUI

Don’t worry it is a local script.

I’v watched that and no sorry.

for a = 0, 1, 0.1 do
wait(0.1)
script.Parent.Credits.TextTransparency = a
end

If you want it to fade in, swap the 0 and 1.

script.Parent.Credits.TextTransparency = 1

local Trans = 1

for I = 1, 10 do
     wait(0.1)
     Trans = Trans - 0.1
     script.Parent.Credits.TextTransparency = Trans
end

print("Ran")

Try that again, check the output (F9) for other information

1 Like

OHHHH

Yes this is it
Until now, I’d been ioperating under the principle, as his original post stated that the OP didn’t want it to fade. Yes the issue is that there is no shorthand operator for x = x-y. You have to type it all the way out.

Still nothing though the print went though.

You must have the wrong Credits are you sure it’s working and it’s not a duplicate?

Whats your discord we can talk there.