Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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

1 comment

0

Or ScreenGui.Enabled as @Not_prototype said

This discussion is preserved as it was. New answers, comments, and votes are closed.