script.Parent.MouseButton1Down:Connect(function()
script.Parent.Parent.Visible = true
end)
I am trying to do a Index Menu. It should go like this: There is a text button. I press it, the Index Menu opens.
But an error appears. It says ''Visible is not a valid member of IndexMENU(name of the screengui)
When I do
script.Parent.MouseButton1Down:Connect(function()
script.Parent.Parent.Visible = false
end)
it works. But when I do ''true'' it doesn't
Please, help me somebody!
Hello, a Gui, does not have a "visible" property as your error message tells you. There is certainly a child frame, which has this property. You should change ScreenGui.Visible to ScreenGui.Frame.Visible, Frame being the name of your frame
use enabled not visible