Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

Title.

I did wait (9.5 seconds)

But it didn't worked.

1 comment

0

please post a code.

2 answers

✓ Accepted answer

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. ^

1 comment

0

Thanks!

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!

2 comments

0

Hmmmm.... Not so much helpful but accept it.

0

Well, I told you about that you should not do wait(9.5 seconds), the other people did not.

This discussion is preserved as it was. New answers, comments, and votes are closed.