I made an GUI opening button:
local frame = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame
script.Parent.MouseButton1Click:Connect(function()
frame.Visible = true
end)
but I get this error:
ScreenGui is not a valid member of PlayerGui
The name of the GUI's frame I want to make invisible is:
ScreenGui

3 comments
Are You parenting the Same ScreenGUI where the button is placed?
No, they are different, the button is in a different screengui which has a different name.
try placing the gui in StarterGUI