I am having a bit of a trouble opening and closing this gui on press.
Question 2: How would I make this script work if it was a segment in a framework? Like what do I do with the onClicked function if its not that parent.
local button = script.Parent.OpenMenu.Open
local frame = script.Parent.Content
function onClicked(GUI)
frame.Visible = true
if not true
then
return false
end
button.MouseButton1Click:connect(onClicked)
Or would the function look like this?
local button = script.Parent.OpenMenu.Open
local frame = script.Parent.Content
button.OnClicked:connect( function(OnClicked)
frame.visible = true
if true
then
return false
end
I have heard that two equal signs equals the opposite is that true?
frame.Visible = true frame.Visible == false

1 comment
So on the second script, I can add a tween function in after line 7 and a close tween before line 9?