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

How do i make a gui pop up after a certain amount of seconds?

Asked by 4 years ago
Edited 4 years ago

``The script i used:

1local GUI = script.Parent.Play
2while true do
3wait(48)
4script.Parent.GUI.Visible = true
5--// And make it invisible again after a certain time
6wait(9999999)
7script.Parent.GUI.Visible = false
8end

Doesnt work. By the way it might sound dumb since im new to scripting. (Putting full script would help)

3 answers

Log in to vote
1
Answered by 4 years ago

put a local script inside the screen gui then make the enabled set to false then paste this

1while true do
2    wait(48)
3    script.Parent.Enabled = true
4    wait(9999999)
5    script.Parent.Enabled = false
6end

this works because I tested it and know it does.

0
Wow our's are really similar except mine doesn't work because I suck at scripting XD StockBAMBAM 7 — 4y
Ad
Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your answer.

I think that I would do

1script.Parent.Visible = true
2wait(99999999999)
3script.Parent.Visible = false

by the way: I don't think it's possible to close a gui. try making a frame and all the content in the frame.

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago
1while true do
2    wait(48)
3    script.Parent.Enabled = true
4    --// And make it invisible again after a certain time
5    wait(9999999)
6    script.Parent.Enabled = false
7end

put this script in the gui and make the script be a local script

Answer this question