kidmar123
|
  |
| Joined: 24 Nov 2011 |
| Total Posts: 22 |
|
|
| 24 Feb 2012 05:56 PM |
I need this script to make a gui countdown, turn invisible, and wait 300 seconds then the countdown starts over, but here's the problem: the gui apears to countdown again when i die.
Script:
script.Parent.Visible = false wait(5) script.Parent.Visible = true wait(0) script.Parent.Text = "10"--First Text Here script.Parent.TextScaled = true wait(0.3) script.Parent.TextScaled = false wait(1)--Change To How Many Seconds Between Message script.Parent.Text = "9"--Second Text Here script.Parent.TextScaled = true wait(0.3) script.Parent.TextScaled = false wait(1)--Change To How Many Seconds Between Message script.Parent.Text = "8"--Third Text Here script.Parent.TextScaled = true wait(0.3) script.Parent.TextScaled = false wait(1)--Change To How Many Seconds Between Message script.Parent.Text = "7"--Fourth Text Here script.Parent.TextScaled = true wait(0.3) script.Parent.TextScaled = false wait(1)--Change To How Many Seconds Between Message script.Parent.Text = "6"--Fourth Text Here script.Parent.TextScaled = true wait(0.3) script.Parent.TextScaled = false wait(1)--Change To How Many Seconds Between Message script.Parent.Text = "5"--First Text Here script.Parent.TextScaled = true wait(0.3) script.Parent.TextScaled = false wait(1)--Change To How Many Seconds Between Message script.Parent.Text = "4"--Second Text Here script.Parent.TextScaled = true wait(0.3) script.Parent.TextScaled = false wait(1)--Change To How Many Seconds Between Message script.Parent.Text = "3"--Third Text Here script.Parent.TextScaled = true wait(0.3) script.Parent.TextScaled = false wait(1)--Change To How Many Seconds Between Message script.Parent.Text = "2"--Fourth Text Here script.Parent.TextScaled = true wait(0.3) script.Parent.TextScaled = false wait(1)--Change To How Many Seconds Between Message script.Parent.Text = "1"--Fourth Text Here script.Parent.TextScaled = true wait(0.3) script.Parent.TextScaled = false wait(1)--Change To How Many Seconds Between Message script.Parent.Text = "Capture the flag." wait(4) script.Parent.Visible = false wait(300) script.Parent.Visible = true script.Parent.Text = "10" |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 06:02 PM |
1) You hurt my eyes Q_Q Use loops. 2) Try using an external script to loop for the player's GUI's and change the text. 3) Use loops. Yes I said it again.
† KMXD † |
|
|
| Report Abuse |
|
|
kidmar123
|
  |
| Joined: 24 Nov 2011 |
| Total Posts: 22 |
|
|
| 24 Feb 2012 06:04 PM |
| What do you mean by external script? |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 06:05 PM |
Just a script in workspace or something.
† KMXD † |
|
|
| Report Abuse |
|
|
kidmar123
|
  |
| Joined: 24 Nov 2011 |
| Total Posts: 22 |
|
|
| 24 Feb 2012 06:08 PM |
| I tried it. It didnt work :L |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 06:09 PM |
Did you just put the script in workspace? It wouldn't work.
† KMXD † |
|
|
| Report Abuse |
|
|
kidmar123
|
  |
| Joined: 24 Nov 2011 |
| Total Posts: 22 |
|
| |
|
|
| 24 Feb 2012 06:12 PM |
Is it just a textlabel in the GUI?
† KMXD † |
|
|
| Report Abuse |
|
|
kidmar123
|
  |
| Joined: 24 Nov 2011 |
| Total Posts: 22 |
|
| |
|
|
| 24 Feb 2012 06:16 PM |
--Put this in workspace and tell me how it went, remeber to EDIT WHERE I TELL YOU.
while wait() do for _, v in pairs(game.Players:GetChildren()) do if v:FindFirstChild("NAMEOFGUI") then --NAME OF GUI local t = v.NAMEOFGUI.TextLabel --NAME OF GUI AND NAME OF THE TEXTLABEL t.Visible = false wait(5) t.Visible = true
for i = 10, 0, -1 do t.Text = i wait(1) end
t.Text = "Capture the flag." wait(4) t.Visible = false wait(300) t.Visible = true end end end
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 06:17 PM |
Ok, notice a problem already...
--Put this in workspace and tell me how it went, remember to EDIT WHERE I TELL YOU. while wait() do for _, v in pairs(game.Players:GetChildren()) do if v.PlayerGui:FindFirstChild("NAMEOFGUI") then --NAME OF GUI local t = v.NAMEOFGUI.TextLabel --NAME OF GUI AND NAME OF THE TEXTLABEL t.Visible = false wait(5) t.Visible = true for i = 10, 0, -1 do t.Text = i wait(1) end t.Text = "Capture the flag." wait(4) t.Visible = false wait(300) t.Visible = true end end end
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 06:19 PM |
Ok, sorry. Try:
--Put this in workspace and tell me how it went, remember to EDIT WHERE I TELL YOU. while wait() do for _, v in pairs(game.Players:GetChildren()) do if v.PlayerGui:FindFirstChild("NAMEOFGUI") then --NAME OF GUI local t = v.PlayerGui.NAMEOFGUI.TextLabel --NAME OF GUI AND NAME OF THE TEXTLABEL t.Visible = false wait(5) t.Visible = true for i = 10, 0, -1 do t.Text = i wait(1) end t.Text = "Capture the flag." wait(4) t.Visible = false wait(300) t.Visible = true end end end
† KMXD † |
|
|
| Report Abuse |
|
|
kidmar123
|
  |
| Joined: 24 Nov 2011 |
| Total Posts: 22 |
|
|
| 24 Feb 2012 06:26 PM |
| It still shows up when I try to respawn. -.- |
|
|
| Report Abuse |
|
|
kidmar123
|
  |
| Joined: 24 Nov 2011 |
| Total Posts: 22 |
|
|
| 24 Feb 2012 06:27 PM |
| I need it to come back in 300 seconds, oddly it shows up when i die |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 06:31 PM |
So, you didn't use my script...?
† KMXD † |
|
|
| Report Abuse |
|
|
kidmar123
|
  |
| Joined: 24 Nov 2011 |
| Total Posts: 22 |
|
| |
|
kidmar123
|
  |
| Joined: 24 Nov 2011 |
| Total Posts: 22 |
|
|
| 24 Feb 2012 06:36 PM |
| it doesnt count down but the gui stay there |
|
|
| Report Abuse |
|
|
kidmar123
|
  |
| Joined: 24 Nov 2011 |
| Total Posts: 22 |
|
|
| 24 Feb 2012 06:37 PM |
| i mean it counts down but after i die the gui stays on |
|
|
| Report Abuse |
|
|