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: I dont really get this...

Previous Thread :: Next Thread 
FoggedOut is not online. 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 is not online. 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 is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
14 Apr 2013 02:59 PM
That video still scares me. xD
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
14 Apr 2013 03:03 PM
Bump, anyone?
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
14 Apr 2013 03:09 PM
#ForeverAlone
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
14 Apr 2013 03:25 PM
So no one knows...
Report Abuse
ssMeowss is not online. 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
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