Gyazos: https://gyazo.com/440649bfcc4dd0dd32a745084e26825d https://gyazo.com/244ccb990982a14d38d3207bdebe0f7e
Code:
local frame = script.Parent.Parent.Frame local news = script.Parent.Parent local open = script.Parent open.MouseButton1Click:Connect(function() frame.Visible = frame.Visible print('gui has been opened') end)
so like i can use the close button but i can't use open button?!?!?!?!?! WHAT?!?!?!?
Just use one button and change the text when its opened or closed like this:
local frame = script.Parent.Parent.Frame local news = script.Parent.Parent local open = script.Parent local Opened = false open.MouseButton1Click:Connect(function() if Opened == false then Opened = true frame.Visible = true open.Text = "Close" --Remove this if you want else Opened = false frame.Visible = false open.Text = "Open" --Remove this if you want too end end)
this should work with one button, upvote if it helped!