generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: "StarterGUI is not a valid member of DataModel"Output

Previous Thread :: Next Thread 
IWantAFanta is not online. IWantAFanta
Joined: 27 Jul 2008
Total Posts: 7916
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 is not online. Drenkus
Joined: 03 May 2009
Total Posts: 2380
30 Apr 2012 12:33 AM
You don't need the '(''s and ')''s
Report Abuse
IWantAFanta is not online. IWantAFanta
Joined: 27 Jul 2008
Total Posts: 7916
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 is not online. Drenkus
Joined: 03 May 2009
Total Posts: 2380
30 Apr 2012 12:36 AM
You need the quotation marks.
Report Abuse
Drenkus is not online. 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
IWantAFanta is not online. IWantAFanta
Joined: 27 Jul 2008
Total Posts: 7916
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 is not online. Drenkus
Joined: 03 May 2009
Total Posts: 2380
30 Apr 2012 12:40 AM
PlayerGUI isn't a part of game.
Report Abuse
IWantAFanta is not online. IWantAFanta
Joined: 27 Jul 2008
Total Posts: 7916
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 is not online. Drenkus
Joined: 03 May 2009
Total Posts: 2380
30 Apr 2012 12:45 AM
StarterGui

The words are case sensitive.
Report Abuse
IWantAFanta is not online. IWantAFanta
Joined: 27 Jul 2008
Total Posts: 7916
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image