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

Why does this Menu GUI Local Script not work?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

This is for a menu (Menu is named Stats in my place) button, but if i click, the menu won't show up. Why doesn't it work? Button = UpdatesButton Frame (The menu GUI) UpdateFrame

01UpdateFrame = script.Parent.UpdateFrame
02Button = script.Parent.UpdatesButton
03Open = false
04 
05Button.MouseButton1Down:connect(function(open)
06    if Open == false then
07        Button.Text = "Close"
08        UpdateFrame.Visible = true
09        Open = true
10    elseif Open == true then
11        Button.Text = "Stats"
12        UpdateFrame.Visible = false
13        Open = false
14    end
15end)
0
Your script may be disabled. FiredDusk 1466 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

If you mean menu GUI / UpdateFrame is ScreenGui I would say the problem is there is no Visible inside ScreenGui. So, I recomend you for the UpdateFrame you use A Frame, not ScreenGui if you use ScreenGui for the UpdateFrame then it won't work.

Or if thats not what you want then put in comments for more info so I can tell you whats wrong. The script has no problem.

0
Actually the UpdateFrame is a Frame, but it won't work.. LoledChickenNumba360 0 — 9y
0
Oh hmm let me think again I will edit it if I found the answer krisxxxz 45 — 9y
Ad

Answer this question