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: Little Help Appreciated

Previous Thread :: Next Thread 
DrCherryTop is not online. DrCherryTop
Joined: 21 Jan 2012
Total Posts: 3475
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
DrCherryTop is not online. DrCherryTop
Joined: 21 Jan 2012
Total Posts: 3475
31 Aug 2014 10:17 PM
b1
Report Abuse
Subete is not online. 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
DrCherryTop is not online. DrCherryTop
Joined: 21 Jan 2012
Total Posts: 3475
31 Aug 2014 10:24 PM
It still doesn't change, I tried running it on a server
Report Abuse
lordrambo is not online. 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 is not online. 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
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