I was testing my game in solo mode and it was working perfectly, but when a friend tested it in multi player mode the gui would not close a am a little confused. here is the code: (Note it has been edited, but it still does not work)
local mainFrame = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame local scrollFrame = game.Players.LocalPlayer.PlayerGui.ScreenGui.ScrollingFrame local closeScreen = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.closeScreen function closeGUI() mainFrame.Visible = false --when these are closed everything inside it will close scrollFrame.Visible = false end closeScreen.MouseButton1Click:connect(closeGUI)
What is script.Parent.Parent.Parent.Frame
and all that? Also is this in a localscript or a server script.