Both Settings and Main Menu keep disappearing

So today I started scripting my Menu in Error Paradise and both Settings and the Main Menu keep disappearing, here is some evidence:
robloxapp-20201228-1735401.wmv
If you cannot see the video, it’s just me clicking the “Settings” button and the menu disappears completely.
Here is the line of code I wrote, I am beginning to understand lua, so this is my first time scripting GUI.

local PlayButton = script.Parent.PlayButton
local LobbyMenu = script.Parent.LobbyMenu
local SettingsButton = script.Parent.SettingsButton
local Settings = script.Parent.Settings
local Menu = script.Parent

PlayButton.MouseButton1Click:Connect(function()
	LobbyMenu.Visible = true
end)

SettingsButton.MouseButton1Click:Connect(function()
	Menu.Visible = false
	Settings.Visible = true
end)

The problem is on this line:

Menu.Visible = false

You are setting the whole menu to invisible. Instead, do LobbyMenu.Visible = false to only disable LobbyMenu.

1 Like

LobbyMenu is the matchmaking menu (if I’m correct).

Can you send an image of your explorer?

1 Like

Here is the screenshot of my explorer.

Can you try doing LobbyMenu.Visible = false and see what happens?

1 Like

robloxapp-20201228-1819021.wmv

I’m having issues playing the video to help you. When I open it, it completely fails (I think my phone thinks this is a piece of audio).

The file isn’t mobile friendly. It’s an wmv, the file that Roblox uses.

A wmv should still work though.

1 Like