How do I script it to where the GUI on my screen disappears automatically?

Hello, so basically I have made a type writer script for my horror game. It includes a Frame with a text label. I want the whole gui to disappear after the text is finished typing without a close button. However I want it to be able to re appear after a certain amount of time. I want to do this so the gui does not get in the way of game play. Any script suggestions? I want that gui to disappear like I said

4 Likes
wait(string.len(text)

guiName.Visible = false

You could make some simple code like this.

Thanks.
char30…

@ElectronicDroid
It does not seem to work I have typed the name of my gui in the area and have pasted the script at the bottom. However now the script is not running at all. Help?

i forgot to add an extra parenthesis.

wait(string.len(text))

guiName.Visible = false

this should work.

Whenever I enter the gui name it underlines it in red and does not work. I tried renaming my as well.

What are the errors in the output? Also do you want to enable a gui or make a frame visible?

show me the objects in the gui. or whatever is involved with this.

Sorry I’m a bad scripter lol there is no error in output but the gui does not disappear.


also Frame1 is underlined in red.

change the parameter in there from “Well i am”… to the setText function. that should work. Show me what is defined in the function so i can understand this code a little better.

Whats the definition for the frame1

ooohh i did not my bad how do I do that? I have to do that so it understands Frame1

show me the objects in the gui you are using in the explorer.

Change the script to a local script, scripts dont work in startergui.

and do this

local Frame1 = script.Parent.Parent

Remove settext and replace it from that string before, i was mistaken with the function. After you add that definition and do that, it should work.

image
so what do i put in there?

you put the image string.

ooohh ok thanks
char30…

still does not work
char30…