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

Why won't the GUI open when I click the button?

Asked by 6 years ago

Here the code:

function onButtonClicked()
script.Parent.Parent.Parent.Parent.Intro.Main.Visible = true
wait()
script.Parent.Parent.Visible = false
end

script.Parent.MouseButton1Click:connect(onButtonClicked)

The code is in a local script.

0
Could you possibly give the hierarchy of how your GUIs are setup? That would help me figure out the problem. On a side note, remember to check all of your properties, positions, and visibility of all of your GUI elements. Crystalflxme 104 — 6y
0
I'm lookin at this, and it looks like you need to make the wait longer. Right now it just disappears and reappears instantly, and you can't really see it. Change the wait from having nothing in there, to something like 0.1 or 1. Knineteen19 307 — 6y
0
Probably just added too few or too many parents, also use :Connect Warfaresh0t 414 — 6y

Answer this question