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: How do you add 2 Zeros instead of 1?

Previous Thread :: Next Thread 
Soulv3 is not online. Soulv3
Joined: 26 Apr 2014
Total Posts: 63
26 Jun 2014 12:30 PM
I want it so I can have 2 zeros on the Seconds, Minutes, and Hours variable, but it didn't work for me, I tried different ways.

hint = Instance.new("Hint", Workspace)
s = 0
m = 0
h = 0

repeat
hint.Text = "Server Time: " .. h .. ":" .. m .. ":" ..s
wait(1)
s = s +1
if s == 60 then
s = 0
m = 1
end

if m == 60 then
m = 0
h = 1
end
until false

*I Put 2 0's in my variables but didn't work either*
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
26 Jun 2014 12:32 PM
"00"
Report Abuse
GreatOculus is not online. GreatOculus
Joined: 30 Aug 2009
Total Posts: 2103
26 Jun 2014 12:32 PM
Just make another varible that stays as 0.

"Server Time: " .. h ..otherVariable.. ":" .. m ..otherVariable.. ":" ..s..otherVariable
Report Abuse
Soulv3 is not online. Soulv3
Joined: 26 Apr 2014
Total Posts: 63
26 Jun 2014 12:42 PM
^^^^
how would that work? When it reaches to 60 and there is another variable, i'd have to change it to if s2 == 0 then
but evert 10 seconds is a zero
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