73EPIC311
|
  |
| Joined: 28 Aug 2012 |
| Total Posts: 454 |
|
|
| 02 May 2013 03:41 PM |
Is this correct?
a = game.StarterGui.GameStuff.GameClock.Text b = wait(1)
if game.StarterGui.GameStuff.Round.Text = "Capture The Flag" then a = "00:03" b a = "00:02" b a = "00:01" b a = "00:00" b a = "N/A" end |
|
|
| Report Abuse |
|
|
btft
|
  |
| Joined: 19 Feb 2011 |
| Total Posts: 1512 |
|
|
| 02 May 2013 03:46 PM |
a = game.StarterGui.GameStuff b = 1 --change wait time here
if a.Round.Text == "Capture The Flag" then a.GameClock.Text = "00:03" wait(b) a.GameClock.Text = "00:02" wait(b) a.GameClock.Text = "00:01" wait(b) a.GameClock.Text = "00:00" wait(b) a.GameClock.Text = "N/A" end |
|
|
| Report Abuse |
|
|
pauljkl
|
  |
| Joined: 23 Oct 2008 |
| Total Posts: 9364 |
|
|
| 02 May 2013 04:40 PM |
| The problem is that youre changing the StarterGui, not the PlayerGui of all players |
|
|
| Report Abuse |
|
|
73EPIC311
|
  |
| Joined: 28 Aug 2012 |
| Total Posts: 454 |
|
|
| 02 May 2013 04:41 PM |
| How would I change the PlayerGui of all players? |
|
|
| Report Abuse |
|
|
btft
|
  |
| Joined: 19 Feb 2011 |
| Total Posts: 1512 |
|
|
| 02 May 2013 04:43 PM |
a = game.StarterGui.GameStuff b = 1 --change wait time here
if a.Round.Text == "Capture The Flag" then a.GameClock.Text = "00:03" wait(b) a.GameClock.Text = "00:02" wait(b) a.GameClock.Text = "00:01" wait(b) a.GameClock.Text = "00:00" wait(b) a.GameClock.Text = "N/A" end
for _, v in pairs (game.Players:GetChildren()) do ab = v.PlayerGui.GameStuff if a.Round.Text == "Capture The Flag" then a.GameClock.Text = "00:03" wait(b) a.GameClock.Text = "00:02" wait(b) a.GameClock.Text = "00:01" wait(b) a.GameClock.Text = "00:00" wait(b) a.GameClock.Text = "N/A" end end
put in both, so if a new player joins, they see the same. |
|
|
| Report Abuse |
|
|
btft
|
  |
| Joined: 19 Feb 2011 |
| Total Posts: 1512 |
|
|
| 02 May 2013 04:43 PM |
a = game.StarterGui.GameStuff b = 1 --change wait time here
if a.Round.Text == "Capture The Flag" then a.GameClock.Text = "00:03" wait(b) a.GameClock.Text = "00:02" wait(b) a.GameClock.Text = "00:01" wait(b) a.GameClock.Text = "00:00" wait(b) a.GameClock.Text = "N/A" end
for _, v in pairs (game.Players:GetChildren()) do ab = v.PlayerGui.GameStuff if a.Round.Text == "Capture The Flag" then ab.GameClock.Text = "00:03" wait(b) ab.GameClock.Text = "00:02" wait(b) ab.GameClock.Text = "00:01" wait(b) ab.GameClock.Text = "00:00" wait(b) ab.GameClock.Text = "N/A" end end
EDIT: Sorry; error. |
|
|
| Report Abuse |
|
|
|
| 02 May 2013 04:57 PM |
a = game.StarterGui.GameStuff b = 1 --change wait time here
if a.Round.Text == "Capture The Flag" then a.GameClock.Text = "00:03" wait(b) a.GameClock.Text = "00:02" wait(b) a.GameClock.Text = "00:01" wait(b) a.GameClock.Text = "00:00" wait(b) a.GameClock.Text = "N/A" end
for _, v in pairs (game.Players:GetChildren()) do ab = v.PlayerGui.GameStuff if a.Round.Text == "Capture The Flag" then a.GameClock.Text = "00:03" wait(b) a.GameClock.Text = "00:02" wait(b) a.GameClock.Text = "00:01" wait(b) a.GameClock.Text = "00:00" wait(b) a.GameClock.Text = "N/A" end end
|
|
|
| Report Abuse |
|
|
|
| 02 May 2013 05:43 PM |
Oh my globbb, use loops!
local clock = game.StarterGui.GameStuff.GameClock if game.StarterGui.GameStuff.Round.Text = "Capture The Flag" then for i = 3,0,-1 do local secondsFormat = ("00:%.2i"):format(i) clock.Text = secondsFormat end end |
|
|
| Report Abuse |
|
|
| |
|