|
| 11 Aug 2012 09:49 AM |
Even thought this script works, there is a slight problem. The probllem is that the GUI resets when you die and its starts the countdown over. can somebody fix this so it doesn't reset when you die?
function updateTimeGui(text, size) size = size or "Size18"; for _, p in pairs(game.Players:GetChildren()) do p.PlayerGui.Time.Frame.Main.Text = text; p.PlayerGui.Time.Frame.Main.FontSize = size; end end
while true do updateTimeGui("Waiting for round...", "Size18"); wait(10); for i = 5, 1, -1 do updateTimeGui(tostring(i).."..."); wait(1); end updateTimeGui("Begin!"); wait(5); for _, p in pairs(game.Players:GetChildren()) do p.PlayerGui.Time.Visible = false; end wait(180); for _, p in pairs(game.Players:GetChildren()) do p.PlayerGui.Time.Visible = true; end end |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
Benjonas2
|
  |
| Joined: 17 May 2011 |
| Total Posts: 6129 |
|
|
| 11 Aug 2012 08:49 PM |
I would say put it in the StarterGUI or StarterPack
but then I realized that is with Camera manipulation and not GUI
-Ben |
|
|
| Report Abuse |
|
|
| |
|
Elopus001
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 482 |
|
|
| 11 Aug 2012 08:54 PM |
| Maybe put the variable as a value in workspace? |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2012 08:56 PM |
| No.. all I hae to fo is make this script continue isntead of reset when you die.. |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2012 09:19 PM |
add a script so it starts the countdown after so long
e.g. (wait(15) then)
-ʟᴇɢɪᴛ ʟᴍᴀᴅeʀ- |
|
|
| Report Abuse |
|
|