Ok so I'm making a game called Trivia Mania. I made a few GUIs for it to make it look more professional. The problem is I can't get one of my GUIs to show up. It's called Introframe. It's supposed to show up for a few seconds then it disappears. Here's the script:
game.StarterGUI.TrivManGUI.Ruleframe.Visible = false game.StarterGUI.TrivManGUI.Htpframe.Visible = false game.StarterGUI.TrivManGUI.Introframe.Visible = true -- This is the GUI I'm talking about. game.StarterGUI.TrivManGUI.Introframe.TextBox.Text = "Welcome to Trivia Mania!" wait(2.5) game.StarterGUI.TrivManGUI.Introframe.TextBox.Text = "Now loading..." wait(5) game.StarterGUI.TrivManGUI.Introframe.Visible = false -- The Introframe disappears here. game.StarterGUI.TrivManGUI.Ruleframe.Visible = true game.StarterGUI.TrivManGUI.Htpframe.Visible = true
See what I mean? Ok. My question is, where did I go wrong? And for your information, I'm using a regular script, not a Module or Local script.
Your problem is that your changing it in StarterGui!! Not the PlayerGui, which is where all the GUIs for a Player is stored. Put a normal script directly in the GUI, with the following:
script.Parent.Ruleframe.Visible = false script.Parent.Htpframe.Visible = false script.Parent.Introframe.Visible = true -- This is the GUI I'm talking about. script.Parent.Introframe.TextBox.Text = "Welcome to Trivia Mania!" wait(2.5) script.Parent.Introframe.TextBox.Text = "Now loading..." wait(5) script.Parent.Introframe.Visible = false -- The Introframe disappears here. script.Parent.Ruleframe.Visible = true script.Parent.Htpframe.Visible = true