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 2 years 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 2 years 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 — 2y
Ad
Log in to vote
0
Answered by 2 years ago

use enabled not visible

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

Answer this question