|
| 30 Apr 2012 12:31 AM |
I have a little message box at the top of the screen that should "revolve" around these preset messages but it doesn't work. I am a beginning scripter but I don't know jack about GUI.
while true do wait (5) game.PlayerGUI.ScreenGui.TextBox.Text = ("Hello. Welcome to my labs.") wait (5) game.PlayerGUI.ScreenGui.TextBox.Text = ("These are some simple LUA scripts I made.") wait (5) game.PlayerGUI.ScreenGui.TextBox.Text = ("Fanta > Sunkist. Period.") wait (5) game.PlayerGUI.ScreenGui.TextBox.Text = ("Add me on steam: Anonymous Fanta Addict") wait (1) end
|
|
|
| Report Abuse |
|
|
Drenkus
|
  |
| Joined: 03 May 2009 |
| Total Posts: 2380 |
|
|
| 30 Apr 2012 12:33 AM |
| You don't need the '(''s and ')''s |
|
|
| Report Abuse |
|
|
|
| 30 Apr 2012 12:35 AM |
Here is the revised script. However, I get a different error. It says "Workspace.Script:3: '=' expected near 'my'"
while true do wait (5) game.PlayerGUI.ScreenGui.TextBox.Text = Hello. Welcome to my Labs. wait (5) game.PlayerGUI.ScreenGui.TextBox.Text = These are some simple LUA scripts I made. wait (5) game.PlayerGUI.ScreenGui.TextBox.Text = Fanta is better than Sunkist. Period. wait (5) game.PlayerGUI.ScreenGui.TextBox.Text = Add me on steam: Anonymous Fanta Addict wait (1) end
|
|
|
| Report Abuse |
|
|
Drenkus
|
  |
| Joined: 03 May 2009 |
| Total Posts: 2380 |
|
|
| 30 Apr 2012 12:36 AM |
| You need the quotation marks. |
|
|
| Report Abuse |
|
|
Drenkus
|
  |
| Joined: 03 May 2009 |
| Total Posts: 2380 |
|
|
| 30 Apr 2012 12:37 AM |
| Sorry if I confused you, before I meant you don't need the ( and ) around the "s. |
|
|
| Report Abuse |
|
|
|
| 30 Apr 2012 12:38 AM |
I added the quotation marks and I'm back where it started in the beginning. It says
01:38:02 - PlayerGUI is not a valid member of DataModel 01:38:02 - Script "Workspace.Script", Line 3 01:38:02 - stack end |
|
|
| Report Abuse |
|
|
Drenkus
|
  |
| Joined: 03 May 2009 |
| Total Posts: 2380 |
|
|
| 30 Apr 2012 12:40 AM |
| PlayerGUI isn't a part of game. |
|
|
| Report Abuse |
|
|
|
| 30 Apr 2012 12:41 AM |
01:41:38 - StarterGUI is not a valid member of DataModel 01:41:38 - Script "Workspace.Script", Line 3 01:41:38 - stack end |
|
|
| Report Abuse |
|
|
Drenkus
|
  |
| Joined: 03 May 2009 |
| Total Posts: 2380 |
|
|
| 30 Apr 2012 12:45 AM |
StarterGui
The words are case sensitive. |
|
|
| Report Abuse |
|
|
|
| 30 Apr 2012 12:49 AM |
| It works now. Just another noob error from a beginning scripter. However, for my first day I think I'm doing quite well. Go to my labs place if you really want to see it. |
|
|
| Report Abuse |
|
|