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 8 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

UpdateFrame = script.Parent.UpdateFrame
Button = script.Parent.UpdatesButton
Open = false

Button.MouseButton1Down:connect(function(open)
    if Open == false then
        Button.Text = "Close"
        UpdateFrame.Visible = true
        Open = true
    elseif Open == true then
        Button.Text = "Stats"
        UpdateFrame.Visible = false
        Open = false
    end
end)
0
Your script may be disabled. FiredDusk 1466 — 8y

1 answer

Log in to vote
0
Answered by 8 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 — 8y
0
Oh hmm let me think again I will edit it if I found the answer krisxxxz 45 — 8y
Ad

Answer this question