Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

''Visible is not a valid member of ScreenGui'' What is this error?

Asked by 1 year ago

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!

2 answers

Log in to vote
0
Answered by 1 year ago

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

0
Or ScreenGui.Enabled as @Not_prototype said KingAquitain 35 — 1y
Ad
Log in to vote
0
Answered by 1 year ago

use enabled not visible

0
Not working nedensepro 2 — 1y
0
explain Not_prototype 50 — 1y

Answer this question