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: Time won't count down.

Previous Thread :: Next Thread 
call23re is not online. call23re
Joined: 11 Nov 2010
Total Posts: 9070
18 May 2014 04:44 PM
In this script the time is supposed to go down 1 every second and play a sound. I don't get any errors but it doesn't work. Any help?
Script:
for i = 230,1 - 1 do
script.Parent.Text = "Time : "..i
script.Parent.Sound:Play()
end


-"The wise never quote."
Report Abuse
RbxUtility is not online. RbxUtility
Joined: 15 May 2014
Total Posts: 138
18 May 2014 04:51 PM
"for i=230,1,-1 do"
Report Abuse
call23re is not online. call23re
Joined: 11 Nov 2010
Total Posts: 9070
18 May 2014 05:14 PM
Now it automatically goes down to 1.


-"The wise never quote."
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
18 May 2014 05:15 PM
add a wait(1) in the loop
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
18 May 2014 05:48 PM
for i = 230,1, -1 do
script.Parent.Text = "Time : "..i
wait(1)
script.Parent.Sound:Play()
end
Report Abuse
call23re is not online. call23re
Joined: 11 Nov 2010
Total Posts: 9070
18 May 2014 06:13 PM
@Acc
I already figured it out and that's not what I did. The wait went before the "script.Parent.Text = "Time : "..i" line


-"The wise never quote."
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