local mainScreen = game.StarterGui.ScreenGui.MainScreen mainScreen.Visible = true script.Parent.MouseButton1Click:Connect(function() mainScreen.Visible = false end)
Please tell me if it needs a remote, because I'm not so sure.
Items in StarterGui will be in PlayerGui. Do this.
local plr = game.Players.LocalPlayer local mainScreen = plr.PlayerGui.ScreenGui.MainScreen