austint30
|
  |
| Joined: 20 Mar 2010 |
| Total Posts: 1482 |
|
|
| 06 Jun 2014 04:05 PM |
I made a code that successfully changed the fog black, but it doesn't turn the lighting to blue. __________________________________________________ local Lighting = game:GetService("Lighting")
function onLightingChanged() if Lighting.TimeOfDay == "6:00:00" then Lighting.FogColor = Color3.new(180, 255, 234) --Day print("Day time") end
if Lighting.TimeOfDay == "18:00:00" then Lighting.FogColor = Color3.new(0, 0, 0) --Night print("Night time") end end Lighting.LightingChanged:connect(onLightingChanged)
__________________________________________________
I can't figure out why it is not turning blue when it turns daytime. |
|
|
| Report Abuse |
|
|
Quasar99
|
  |
| Joined: 21 Nov 2009 |
| Total Posts: 9328 |
|
|
| 06 Jun 2014 04:06 PM |
color 3 values are in between 0 and 1, so it has to be a fraction over /255.
e.g it would be:
Color3.new(180/255, 1, 234/255) |
|
|
| Report Abuse |
|
|
austint30
|
  |
| Joined: 20 Mar 2010 |
| Total Posts: 1482 |
|
|
| 06 Jun 2014 04:07 PM |
| I tried and nothing changed. |
|
|
| Report Abuse |
|
|
Quasar99
|
  |
| Joined: 21 Nov 2009 |
| Total Posts: 9328 |
|
| |
|
austint30
|
  |
| Joined: 20 Mar 2010 |
| Total Posts: 1482 |
|
|
| 06 Jun 2014 04:09 PM |
| It also prints "Night time" 4 times for some reason. |
|
|
| Report Abuse |
|
|
austint30
|
  |
| Joined: 20 Mar 2010 |
| Total Posts: 1482 |
|
| |
|