FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
|
| 14 Apr 2013 02:51 PM |
Ok, so I want it so that Fog will appear at certain times. But I use an RL Time script so even the seconds go up at my time. Now, im wondering how I would make fog change becuase of this. Like, if there a way to do '3:00:00 through 6:00:00' type stuff? Please help. Script:
l = game.Lighting
function Color(r, g, b) return Color3.new(r/255, g/255, b/255) end
l.FogColor = Color(192, 192, 192) -- default fog l.FogStart = 100 l.FogEnd = 500
while true do wait(1) l:SetMinutesAfterMidnight(l:GetMinutesAfterMidnight()+1) if l:GetMinutesAfterMidnight() == 0 or l:GetMinutesAfterMidnight() == 1440 or l:GetMinutesAfterMidnight() == 1200 or l:GetMinutesAfterMidnight() == 240 then l.FogColor = Color(0,0,0) -- Black l.FogStart = 50 -- High l.FogEnd = 400 elseif l:GetMinutesAfterMidnight() == 330 or l:GetMinutesAfterMidnight() == 1110 then l.FogColor = Color(51,51,51) -- Light Black l.FogStart = 100 -- Medium l.FogEnd = 500 elseif l:GetMinutesAfterMidnight() == 345 or l:GetMinutesAfterMidnight() == 1095 then l.FogColor = Color(71,51,51) --Red l.FogStart = 300 -- Low l.FogEnd = 1300 elseif l:GetMinutesAfterMidnight() == 360 or l:GetMinutesAfterMidnight() == 1080 then l.FogColor = Color(71,71,71) -- Orange l.FogStart = 300 -- Low l.FogEnd = 1300 elseif l:GetMinutesAfterMidnight() == 375 or l:GetMinutesAfterMidnight() == 1065 then l.FogColor = Color(91,71,71) -- Pink l.FogStart = 300 -- Low l.FogEnd = 1300 elseif l:GetMinutesAfterMidnight() == 390 or l:GetMinutesAfterMidnight() == 720 or l:GetMinutesAfterMidnight() == 1050 then l.FogColor = Color(192,192,192) -- Grey l.FogStart = 100 -- Medium l.FogEnd = 500 end end |
|
|
| Report Abuse |
|
UnBuild
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 3233 |
|
|
| 14 Apr 2013 02:55 PM |
http://www.youtube.com/watch?v=hS1dzX6ZCmI&feature=youtu.be
;3
Sorry but you already know I don't know how to help :3 so haz a bump |
|
|
| Report Abuse |
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
|
| 14 Apr 2013 02:59 PM |
| That video still scares me. xD |
|
|
| Report Abuse |
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
| |
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
| |
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
| |
ssMeowss
|
  |
| Joined: 04 Oct 2014 |
| Total Posts: 78 |
|
|
| 25 Oct 2014 12:29 PM |
I'm trying to do something similar. I'm trying to make it where a sliding door opens at a certain time of day and closes at a certain time of day. |
|
|
| Report Abuse |
|