Hello! I have a GUI menu that has a button that's supposed to closed the GUI when clicked. However, on click, nothing happens. Here's the code.
function close()
script.Parent.Parent.Visible = false
end
script.Parent.MouseButton1Click:connect(close)
Thanks in advance!

2 comments
You can also do coolor stuff with script.Parent.Parent:TweenPosition
no, it isn't. moving it offscreen is not the best solution. set the screengui/frame object visiblity to false/true.