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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Weird Problem?

Previous Thread :: Next Thread 
clonerichy is not online. clonerichy
Joined: 17 Mar 2011
Total Posts: 182
19 Jun 2015 09:52 PM
Could anyone tell me if I have a loop such as

hello = 120
while hello > 1 do
game.StarterGui.Test1.Message1.Text = "hi "..hello.." hi"
hello = hello-1
end

Why wouldn't the GUI update? Unless I reset (I would have to keep on reseting to see the "new" GUI text.
Report Abuse
acidflip is not online. acidflip
Joined: 18 Jul 2012
Total Posts: 886
19 Jun 2015 10:17 PM
> game.StarterGui

that's why
Report Abuse
Waleris is online. Waleris
Joined: 25 Mar 2011
Total Posts: 224
20 Jun 2015 12:06 AM
while hello ~=120
try that.
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
20 Jun 2015 12:08 AM
acidflip has the answer. You need to update a player's PlayerGui, not the StarterGui.

The items in the StarterGui replicate to a player's PlayerGui whenever they spawn. If you change something in their PlayerGui, then it is instantaneous.

To change something for everyone, you must loop through all the players and change each of their PlayerGuis
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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