|
| 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
|
  |
| Joined: 18 Jul 2012 |
| Total Posts: 886 |
|
|
| 19 Jun 2015 10:17 PM |
> game.StarterGui
that's why |
|
|
| Report Abuse |
|
|
Waleris
|
  |
| Joined: 25 Mar 2011 |
| Total Posts: 224 |
|
|
| 20 Jun 2015 12:06 AM |
while hello ~=120 try that. |
|
|
| Report Abuse |
|
|
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 |
|
|