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: Day/Night Cycle

Previous Thread :: Next Thread 
Builder1351 is not online. Builder1351
Joined: 15 Jul 2013
Total Posts: 111
02 Jun 2014 04:35 PM
I've never been good at scripting, so can I have some guidance on how to write a Day to Night Cycle Script? Don't give it to me all set up, I want to learn how to do this on my own. I just need the commands for timeset or whatever it is, how to set time between changes, ( I think wait 60 is one second, but I'm not sure how many milliseconds is in one second) and the infinite repeat loop.

Thanks,
Builder1351

:)
Report Abuse
legosonic411 is not online. legosonic411
Joined: 12 Mar 2009
Total Posts: 3660
02 Jun 2014 05:38 PM
The time of day is in the game
The time of day is in the lighting
set the time of day to something between 0:00 and 24:00
Report Abuse
Builder1351 is not online. Builder1351
Joined: 15 Jul 2013
Total Posts: 111
02 Jun 2014 06:02 PM
But how do I do the wait? Is it 60 millieconds per 1 second or not?
Report Abuse
Xsysix is not online. Xsysix
Joined: 29 Mar 2014
Total Posts: 1182
02 Jun 2014 06:08 PM
wait(1) waits 1 second.

wait(1/1000) waits a millisecond.

- Add 1.5k | Deplexity | its a lego men game stop worrying
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
02 Jun 2014 06:31 PM
while true do
for I = 1,1440 do
wait(1)
game.Lighting:SetMinutesAfterModnight(I)
end
end




I think... I'm not sure
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
02 Jun 2014 06:35 PM
1000 ms per second, not 60.
Report Abuse
Builder1351 is not online. Builder1351
Joined: 15 Jul 2013
Total Posts: 111
03 Jun 2014 11:31 AM
OK thanks because I have a programming app on my 3DS that uses the BASIC programming language from microsoft, and in that you put "wait (60)" for one second so I wasn't sure if it was the same or not. Thanks.

-Builder1351
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