So I'm making a tutorial for my game that will pop up whenever someone joins the game. There is a question "Would you like a tutorial?" and then two choices. Yes or No. If No is clicked, the GUI closes and that works fine. However, if Yes is clicked, it is supposed to bring up the second tutorial GUI and close the first GUI. (The Tutorial is made up of a series of GUIs with text) The Yes button closes the first GUI but does not open the second. Why not? My code was: ``script.Parent.MouseButton1Click:connect(function() script.Parent.Parent.Visible = false game.Workspace.StarterGui.TutorialGui2.Frame.Visible = true end)
you have to target the playergui, so if your in a local script do game:GetService"Players").LocalPlayer:WaitForChild("TutorialGui2") and so on .