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 » Game Design
Home Search
 

Re: Goes into Negative Numbers | Countdown timer

Previous Thread :: Next Thread 
georgeba is not online. georgeba
Joined: 29 Oct 2011
Total Posts: 1092
03 Jan 2015 11:17 PM
for i = minutes, 1, -1 do
for i = 1, (seconds+1) do
CHECKSOMETHING()
CHECKSOMETHING()
if seconds < 10 then
CHECKSOMETHING()
h.Value = minutes..":0"..seconds.." Until Cure is Complete"
else
CHECKSOMETHING()
h.Value = minutes..":"..seconds.." Until Cure is Complete "
end
seconds = seconds - timercountdown.Value
wait(1)
end
seconds = 59
minutes = minutes - 1
end

So in workspace there is a IntValue called timercountdown but my problem is that if the number is > 1 it messes up. This is what it does (say it's 3)

1:11
1:08
1:05
1:02
1:02-5

Or something around those lines.




Report Abuse
georgeba is not online. georgeba
Joined: 29 Oct 2011
Total Posts: 1092
03 Jan 2015 11:49 PM
bump
Report Abuse
georgeba is not online. georgeba
Joined: 29 Oct 2011
Total Posts: 1092
04 Jan 2015 12:30 AM
Help, REALLY need to fix this.
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 12:39 AM
0
Report Abuse
DoAndDoOver is not online. DoAndDoOver
Joined: 06 Sep 2014
Total Posts: 628
04 Jan 2015 12:42 AM
Tell me again, so is the problem that it goes into negative numbers instead of stopping or looping back around, or what?
Report Abuse
DoAndDoOver is not online. DoAndDoOver
Joined: 06 Sep 2014
Total Posts: 628
04 Jan 2015 12:43 AM
Also explain what your script is suppose to do, so I know what I'm going for.
Report Abuse
georgeba is not online. georgeba
Joined: 29 Oct 2011
Total Posts: 1092
04 Jan 2015 01:34 AM
It goes into negative numbers instead of keeping going down. The script is also like a timer. How much time is left in-game
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:32 AM
1589
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:33 AM
0
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:34 AM
4
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:34 AM
8
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:35 AM
11
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:36 AM
15
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:36 AM
19
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:37 AM
23
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:38 AM
26
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:38 AM
30
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:39 AM
34
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:40 AM
38
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:40 AM
42
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:41 AM
46
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:42 AM
50
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:42 AM
54
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:43 AM
58
Report Abuse
forumerlegit111222 is not online. forumerlegit111222
Joined: 02 Jan 2015
Total Posts: 1552
04 Jan 2015 06:44 AM
62
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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