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: Street Lights Time Script

Previous Thread :: Next Thread 
stuart6854 is not online. stuart6854
Joined: 20 Oct 2008
Total Posts: 913
06 Jan 2012 04:16 PM
Doesn't work(Might be this Bit:(game.Lighting:GetMinutesAfterMidnight() <= 60)?

    while true do
    wait()
    if (game.Lighting:GetMinutesAfterMidnight() ​>= 1080) and (game.Lighting:GetMinutesAfterMidnight() <= 60) then
    workspace.StreetLight.LightRay.Transparency = 0.4
    wait(1)
    end
    end
    
    print "Street Lights Working!"
Report Abuse
nightname is not online. nightname
Joined: 10 Jun 2008
Total Posts: 8960
06 Jan 2012 04:19 PM
" (game.Lighting:GetMinutesAfterMidnight() ​>= 1080) and (game.Lighting:GetMinutesAfterMidnight() <= 60)"

You are basically saying:

If the minutes are more or equal then 1080 AND they are also less than or equal than 60 do..

I doubt a number can be bigger than 1080 and also be smaller than 60. You mixed up the symbols.
Report Abuse
malachi11 is not online. malachi11
Joined: 07 May 2008
Total Posts: 2420
06 Jan 2012 04:22 PM
game.Lighting.Changed:connect(function()
if (game.Lighting:GetMinutesAfterMidnight() ​<= 1080) and
(game.Lighting:GetMinutesAfterMidnight() >= 60) then
workspace.StreetLight.LightRay.Transparency = 0.4
else
workspace.StreetLight.LightRay.Transparency = 1 --If you want it to change after that time.
end
end)
Report Abuse
stuart6854 is not online. stuart6854
Joined: 20 Oct 2008
Total Posts: 913
07 Jan 2012 03:50 AM
Bump

How to do set "(game.Lighting:GetMinutesAfterMidnight() ​>= 60)" to be 06:00:00 in game time?

This one works:

    (game.Lighting:GetMinutesAfterMidnight() ​<= 1080)
Report Abuse
OkamiKaz is not online. OkamiKaz
Joined: 11 Sep 2009
Total Posts: 14
07 Jan 2012 04:42 AM
How many minutes after midnight is 6:00:00?
Mathematics, my friend.
Report Abuse
superstefan7 is not online. superstefan7
Joined: 08 Jan 2011
Total Posts: 295
07 Jan 2012 07:04 AM
Sure It Works? :|
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