|
| 31 Aug 2014 10:08 PM |
Hey, I'm a bit new to scripting (like this is my first time trying to script) and I'm a bit confused
I'm trying to make an Intro GUI, but every time I attempt to change the GUI's text it doesn't work, here's the script (don't hate if I'm doing it completely wrong...)
Text = Game.StarterGui.Intro.TextBox.Text
Text = "Game Loading" |
|
|
| Report Abuse |
|
|
| |
|
Subete
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 917 |
|
|
| 31 Aug 2014 10:20 PM |
Text = Game.StarterGui.Intro.TextBox.Text repeat wait(.1) until Text Text = "Game Loading" |
|
|
| Report Abuse |
|
|
|
| 31 Aug 2014 10:24 PM |
| It still doesn't change, I tried running it on a server |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 31 Aug 2014 10:26 PM |
Well your code almost works, but you're try to change the GUI that's inside StarterGui. StarterGui is like a folder that gets copied into the PlayerGui each time the player respawns. Also you are trying to use a variable to reference to a property. Variables can be used to an object (so something you'd see in explorer) but not a property. The variable "Text" would now be whatever text is inside Textbox.Text.
So essentially, you want to be doing is Game.Players.PlayerName.PlayerGui.Intro.Textbox.Text = "Game Loading"
But that isn't what you'd want for a real game, since you'd have to specify the PlayerName. For a real game you'd want to be using the PlayerAdded event but I think it'd be overwhelming for you to try to learn that so soon. |
|
|
| Report Abuse |
|
|
Bobobob12
|
  |
| Joined: 23 Jan 2008 |
| Total Posts: 5350 |
|
|
| 31 Aug 2014 10:30 PM |
Text = Game.StarterGui.Intro.TextBox
Text.Text = "Game Loading" |
|
|
| Report Abuse |
|
|