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)
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.