How to I make it so when a player re-spawns they do not see the start gui. Here is the script:
Start = script.Parent.StartButton CourseSelect = script.Parent.CourseSelect target = game.Workspace.Cam camera = workspace.CurrentCamera camera.CameraType = Enum.CameraType.Scriptable camera.CameraSubject = target angle = 0 go = 0 CourseSelect.Visible = false Num = 0 Course1 = script.Parent.CourseSelect.Course1 Course2 = script.Parent.CourseSelect.Course2 Course3 = script.Parent.CourseSelect.Course3 Start.Visible = true Course1.Visible = false Course2.Visible = false Course3.Visible = false character = game.Players.LocalPlayer.Character TwoD = game.Players.LocalPlayer.Character.Head -- Size X 400, Size Y 300 started = false print("Started = false") function ClickedStart() if started == false then CourseSelect.Visible = true Start.Visible = false for GuiSize = 1, 45 do if GuiSize <= 45 then CourseSelect.Size = CourseSelect.Size +UDim2.new(0.01, 0, 0.015, 0) Num = Num +1 print(Num) end wait() end Course1.Visible = true Course2.Visible = true Course3.Visible = true end end function ClickedCourse1() started = true print("Started = true") Course1.Visible = false Course2.Visible = false Course3.Visible = false CourseSelect.Visible = false character:MoveTo(workspace.Course1Tele.Position) end Start.MouseButton1Down:connect(ClickedStart) -- Here Course1.MouseButton1Down:connect(ClickedCourse1)
Its because its in your startergui,I think you need a local script for it to remove it You need to put it in the PlayerGui when players join they can get a Playergui