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
 

How do I get how long a server has been running?

Previous Thread :: Next Thread 
SethDusek5 is not online. SethDusek5
Joined: 26 Mar 2011
Total Posts: 2580
14 Jul 2013 08:31 AM
?
Report Abuse
789cab is not online. 789cab
Joined: 13 Jul 2009
Total Posts: 3145
14 Jul 2013 08:33 AM
Hmm, don't know. Just find a script in free models and tinker with it. Then after you learn its code make your own.
Report Abuse
Hergest is not online. Hergest
Joined: 17 May 2011
Total Posts: 309
14 Jul 2013 08:41 AM
A timer that starts when the first player is added or something.
Report Abuse
sam8985 is not online. sam8985
Joined: 12 Nov 2011
Total Posts: 582
14 Jul 2013 09:02 AM
Simply have this script:
Seconds = 0
Minutes = 0
Hours = 0
while true do
wait(1)
Seconds = Seconds + 1
if Seconds == 60 then
Seconds = 0
Minutes = Minutes + 1
if Minutes == 60 then
Hours = Hours + 1
end end end
--If you wanted to do anything else with this code than record it, you would have to use global variables or coroutines.
Report Abuse
sam8985 is not online. sam8985
Joined: 12 Nov 2011
Total Posts: 582
14 Jul 2013 09:03 AM
Oh...
Fix:
Seconds = 0
Minutes = 0
Hours = 0
while true do
wait(1)
Seconds = Seconds + 1
if Seconds == 60 then
Seconds = 0
Minutes = Minutes + 1
if Minutes == 60 then
Hours = Hours + 1
Minutes = 0
end end end
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