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

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

``The script i used:

local GUI = script.Parent.Play
while true do
wait(48)
script.Parent.GUI.Visible = true
--// And make it invisible again after a certain time
wait(9999999)
script.Parent.GUI.Visible = false
end

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

3 answers

✓ Accepted answer

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

while true do
	wait(48)
	script.Parent.Enabled = true
	wait(9999999)
	script.Parent.Enabled = false
end

this works because I tested it and know it does.

1 comment

0

Wow our's are really similar except mine doesn't work because I suck at scripting XD

I think that I would do

script.Parent.Visible = true
wait(99999999999)
script.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.

while true do
	wait(48)
	script.Parent.Enabled = true
	--// And make it invisible again after a certain time
	wait(9999999)
	script.Parent.Enabled = false
end

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

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