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
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: MW3 script help

Previous Thread :: Next Thread 
kidmar123 is not online. 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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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 is not online. kidmar123
Joined: 24 Nov 2011
Total Posts: 22
24 Feb 2012 06:04 PM
What do you mean by external script?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
24 Feb 2012 06:05 PM
Just a script in workspace or something.

† KMXD †
Report Abuse
kidmar123 is not online. kidmar123
Joined: 24 Nov 2011
Total Posts: 22
24 Feb 2012 06:08 PM
I tried it. It didnt work :L
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
24 Feb 2012 06:09 PM
Did you just put the script in workspace? It wouldn't work.

† KMXD †
Report Abuse
kidmar123 is not online. kidmar123
Joined: 24 Nov 2011
Total Posts: 22
24 Feb 2012 06:10 PM
YES
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
24 Feb 2012 06:12 PM
Is it just a textlabel in the GUI?

† KMXD †
Report Abuse
kidmar123 is not online. kidmar123
Joined: 24 Nov 2011
Total Posts: 22
24 Feb 2012 06:13 PM
yes
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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 is not online. 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 is not online. 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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
24 Feb 2012 06:31 PM
So, you didn't use my script...?

† KMXD †
Report Abuse
kidmar123 is not online. kidmar123
Joined: 24 Nov 2011
Total Posts: 22
24 Feb 2012 06:32 PM
I did use it
Report Abuse
kidmar123 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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