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

How to remove a gui for some seconds and then add it again?

Asked by 7 years ago

Title.

I did wait (9.5 seconds)

But it didn't worked.

0
please post a code. bossay8 8 — 7y

2 answers

Log in to vote
1
Answered by 7 years ago
Edited 7 years ago

By 'remove' it, I'm guessing you mean just for the player to not see it.

You can hide a GUI element by altering a property called 'Visible'.

script.Parent.Visible = false
wait(9.5)
script.Parent.Visible = true

Assuming your script was inside the element you wanted to hide. ^

However, to hide a ScreenGUI, there is no Visible property. It's equivalent is 'Enabled'

script.Parent.Enabled = false
wait(9.5)
script.Parent.Enabled = true

Assuming your script was inside the ScreenGui you wanted to hide. ^

0
Thanks! MicrosoftS98 17 — 7y
Ad
Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

Scripting does not know the human language. Therefore, you cannot do wait(9.5 seconds). See how waits work here. For the frame disappearing, you can use the Visible property. Accept if this helps!

0
Hmmmm.... Not so much helpful but accept it. MicrosoftS98 17 — 7y
0
Well, I told you about that you should not do wait(9.5 seconds), the other people did not. hiimgoodpack 2009 — 7y

Answer this question