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.
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Is it a Server Script or Local Script?
@CaptainAlien123 its local