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: tod script

Previous Thread :: Next Thread 
THEMENDEZKID is not online. THEMENDEZKID
Joined: 18 Aug 2011
Total Posts: 2401
10 Aug 2014 01:07 AM
My TimeOfDay (tod) script is simple, though long; about 57 lines approx.

Is there a different way to reduce this length of code and still work, instead of doing:

TimeOfDay = game.Lighting.TimeOfDay

while looped do()
wait(7.5)
TimeOfDay = "15:00:00"
wait(7.5)
TimeOfDay = "16:00:00"
wait(7.5)
TimeOfDay = "17:00:00"
end
Report Abuse
THEMENDEZKID is not online. THEMENDEZKID
Joined: 18 Aug 2011
Total Posts: 2401
10 Aug 2014 01:11 AM
bump
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
10 Aug 2014 01:13 AM
Cannot name a property, you`d have to do

Lighting = game.Lighting

Lighting.TimeOfDay = "15:00:00"
Report Abuse
THEMENDEZKID is not online. THEMENDEZKID
Joined: 18 Aug 2011
Total Posts: 2401
10 Aug 2014 01:14 AM
@EPICJAKEISCOOL

Oops. Still do you know something?
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
10 Aug 2014 01:15 AM
?

Yeah, I know a lot about scripting...
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
10 Aug 2014 01:18 AM
Is that your signature, or are you just acting rude...
Report Abuse
THEMENDEZKID is not online. THEMENDEZKID
Joined: 18 Aug 2011
Total Posts: 2401
10 Aug 2014 01:20 AM
@EPICJAKEISCOOL

Neither... I just needed to find a simplified script meant for this topic...
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
10 Aug 2014 01:22 AM
Oh.
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
10 Aug 2014 01:26 AM
while true do
TimeOfDay = TimeOfDay + 1000
wait(7.5)
end

Im not sure how much to add that is = to an hour so just mess with it if it works

Just add your varible at the top
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