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

How to make a in game text appear, later on disappear?

Asked by 3 years ago
Edited 3 years ago

Explanation: When a player is playing, a text will appear in a few seconds and then later on disappear.

What I'm trying to make with it: I'm trying to make a Visual story game with some texts appearing on screen to make it look like the character is talking and I'm also trying to make a cutscene with the game title and creator name. If you have an answer, can you explain it very clear? I don't know much when it comes to coding.

READ: Sorry guys, I don't know anything about scripting and I can't make much time to learn the basics because of online school. So I was hoping for a straight answer so I can work on my game faster.

0
.Visible, .Text = "", literally all u need to know. greatneil80 2647 — 3y

2 answers

Log in to vote
0
Answered by 3 years ago

For the title of the game all you would need to do is

wait(x) -- x being the time you would wait for it to dissapear
script.Parent.Visible = false -- script parent being the frame

Your question is pretty broad, I suggest watching tutorials on the basics. If this helped please click accept! Any other questions feel free to ask just try to be specific.

0
Yeah, I know I could have watched some basics of coding, but I didn't since I can't make much time for myself because of online school. I'm planning in learning it on Christmas break, but right now I just want a straight answer. ponyrarity123 3 — 3y
0
Okay, so I inserted a ScreenGui in StarterGui then I putted a text label in ScreenGui after that I place a script inside the ScreenGui. Is this how it works? I don't think I'm doing it right since the script isn't working. Can you tell me where to put each thing? Sorry. ponyrarity123 3 — 3y
0
You need to put the frame in the screen gui, then put the localscript in said frame. ElongatedMongoose 138 — 3y
0
Okay, thanks it worked! If you don't mind me asking how can I make the text appear in a few seconds? ponyrarity123 3 — 3y
View all comments (2 more)
1
Oh wait nvm, I already figured out what to add into the script by looking at what you putted. Thanks again! I actually learnt a few things about scripting with your script. ponyrarity123 3 — 3y
0
Oh awesome, glad you did! ElongatedMongoose 138 — 3y
Ad
Log in to vote
0
Answered by 3 years ago

So Im expecting that you already have the gui set up, sooo:

local Button = script.Parent
wait(xxx)

Button.Transparency = 1

Answer this question