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