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 » Scripters
Home Search
 

Re: How do I do this?

Previous Thread :: Next Thread 
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
10 Mar 2017 04:53 PM
How would I make it in a script so that it will format a timer like this : "15:00" and make it countdown?

I will really appreciate it if you help.
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
10 Mar 2017 04:54 PM
bump
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
10 Mar 2017 04:55 PM
b1
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
10 Mar 2017 04:57 PM
oh also I will need help with getting a table from a table.

Like this

local tbl = {
LOL = {
"Hi",
"Omg"
}
}
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
10 Mar 2017 04:57 PM
I will appreciate that also.
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
10 Mar 2017 04:59 PM
%60
/60)%60
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
10 Mar 2017 04:59 PM
First one is for seconds, second for minutes.
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
10 Mar 2017 04:59 PM
thanks Lua
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
10 Mar 2017 05:01 PM
So like this?

local roundtime = 15

for timer = roundtime*60,0,-1 do
print(timer%60/60)%60
wait(1)
end
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
10 Mar 2017 05:02 PM
This is what I do:

local function timez(timeleft)
local sec = math.floor((timeleft%60))
if sec < 10 and sec >= 0 then
sec = ('0'..sec)
end
local min = math.floor(((timeleft/60)%60))
return(min..':'..sec)
end
Report Abuse
maxi123456 is not online. maxi123456
Joined: 10 Apr 2009
Total Posts: 148
10 Mar 2017 05:02 PM
^ df u have a math operation outside of a print?
Report Abuse
maxi123456 is not online. maxi123456
Joined: 10 Apr 2009
Total Posts: 148
10 Mar 2017 05:03 PM
^ was meant to @Gomlsauresrex
Report Abuse
BlupoV2 is online. BlupoV2
Joined: 12 Nov 2012
Total Posts: 543
10 Mar 2017 05:04 PM
@Lua You could do

string.format("%02d", sec)
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
10 Mar 2017 05:06 PM
Thank you guys
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
10 Mar 2017 05:08 PM
@BlupoV2 meh.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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