JJHarry
|
  |
| Joined: 18 Dec 2010 |
| Total Posts: 809 |
|
|
| 30 Sep 2012 09:38 AM |
Some reason this fog script isn't running, and there is no errors in the output. Am I doing it wrong? I really can't tell what the problem is... :/
Time = game.Lighting.TimeOfDay
Brightness = game.Lighting.Brightness
Ambient = game.Lighting.Ambient
Fog1 = game.Lighting.FogColor
Fog2 = game.Lighting.FogEnd
Fog3 = game.Lighting.FogStart
if Time == "11:40:00" then Fog1 = Color3.new(192, 192, 192) Fog2 = 2750 elseif Time == "17:00:00" then Fog1 = Color3.new(77, 77, 77) Fog2 = 2400 Brightness = 0.5 elseif Time == "17:10:00" then Fog2 = 1750 elseif Time == "17:20:00" then Fog2 = 1500 elseif Time == "17:30:00" then Fog2 = 1250 elseif Time == "17:40:00" then Fog1 = Color3.new(153, 51, 0) Fog2 = 1000 elseif Time == "17:50:00" then Fog1 = Color3.new(51, 51, 51) Ambient = "95; 95; 95" elseif Time == "18:00:00" then Fog1 = Color3.new(153, 51, 0) elseif Time == "18:10:00" then Fog1 = Color3.new(8, 8, 8) Fog2 = 500 elseif Time == "18:20:00" then Brightness = 0 elseif Time == "05:10:00" then Fog1 = Color3.new(28, 28, 28) Fog2 = 750 elseif Time == "05:20:00" then Fog2 = 1000 elseif Time == "05:30:00" then Fog1 = Color3.new(102, 51, 0) Fog2 = 1250 elseif Time == "05:40:00" then Fog2 = 1500 Brightness = 0.25 elseif Time == "05:50:00" then Fog1 = Color3.new(255, 102, 0) Fog2 = 1750 Brightness = 0.5 elseif Time == "06:00:00" then Fog2 = 2250 elseif Time == "06:10:00" then Fog1 = Color3.new(51, 51, 51) Brightness = 0.75 elseif Time == "06:20:00" then Brightness = 1 elseif Time == "06:30:00" then Fog1 = Color3.new(248, 248, 248) end |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 30 Sep 2012 09:54 AM |
| Ambient takes a color3 value. Even though you can type it like you do in parameters, through a script you need a ambient = Color3.new(r/255,g/255,b/255) |
|
|
| Report Abuse |
|
|
JJHarry
|
  |
| Joined: 18 Dec 2010 |
| Total Posts: 809 |
|
|
| 30 Sep 2012 10:30 AM |
Thanks, but the script still doesn't work at all D: |
|
|
| Report Abuse |
|
|
JJHarry
|
  |
| Joined: 18 Dec 2010 |
| Total Posts: 809 |
|
| |
|
|
| 30 Sep 2012 10:45 AM |
| Errr, script too long. Any output? |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2012 10:47 AM |
| Oh, didn't read it. xP Let me read the whole script to see if there is any problems. |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2012 10:48 AM |
Time = game.Lighting.TimeOfDay
Brightness = game.Lighting.Brightness
Ambient = game.Lighting.Ambient
Fog1 = game.Lighting.FogColor
Fog2 = game.Lighting.FogEnd
Fog3 = game.Lighting.FogStart
if Time == "11:40:00" then Fog1 = Color3.new(192, 192, 192) Fog2 = 2750 elseif Time == "17:00:00" then Fog1 = Color3.new(77, 77, 77) Fog2 = 2400 Brightness = 0.5 elseif Time == "17:10:00" then Fog2 = 1750 elseif Time == "17:20:00" then Fog2 = 1500 elseif Time == "17:30:00" then Fog2 = 1250 elseif Time == "17:40:00" then Fog1 = Color3.new(153, 51, 0) Fog2 = 1000 elseif Time == "17:50:00" then Fog1 = Color3.new(51, 51, 51) Ambient = "95; 95; 95" elseif Time == "18:00:00" then Fog1 = Color3.new(153, 51, 0) elseif Time == "18:10:00" then Fog1 = Color3.new(8, 8, 8) Fog2 = 500 elseif Time == "18:20:00" then Brightness = 0 elseif Time == "05:10:00" then Fog1 = Color3.new(28, 28, 28) Fog2 = 750 elseif Time == "05:20:00" then Fog2 = 1000 elseif Time == "05:30:00" then Fog1 = Color3.new(102, 51, 0) Fog2 = 1250 elseif Time == "05:40:00" then Fog2 = 1500 Brightness = 0.25 elseif Time == "05:50:00" then Fog1 = Color3.new(255, 102, 0) Fog2 = 1750 Brightness = 0.5 elseif Time == "06:00:00" then Fog2 = 2250 elseif Time == "06:10:00" then Fog1 = Color3.new(51, 51, 51) Brightness = 0.75 elseif Time == "06:20:00" then Brightness = 1 elseif Time == "06:30:00" then Fog1 = Color3.new(248, 248, 248) return end
try this? :P |
|
|
| Report Abuse |
|
|
JJHarry
|
  |
| Joined: 18 Dec 2010 |
| Total Posts: 809 |
|
|
| 30 Sep 2012 12:02 PM |
| Thanks for trying, but it still doesn't work... |
|
|
| Report Abuse |
|
|
JJHarry
|
  |
| Joined: 18 Dec 2010 |
| Total Posts: 809 |
|
| |
|
kubuto2
|
  |
| Joined: 16 Jul 2008 |
| Total Posts: 1275 |
|
|
| 30 Sep 2012 12:36 PM |
| To many ifs... Just Replace all thoes with waits and add a loop... While true do CODE end --- is the best loop for this... Ifs will not help you for thi kind of script... |
|
|
| Report Abuse |
|
|
kubuto2
|
  |
| Joined: 16 Jul 2008 |
| Total Posts: 1275 |
|
|
| 30 Sep 2012 12:37 PM |
| Don't use color3 eithier try BrickColor.new... |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2012 12:39 PM |
^
Some properties only use Color3. |
|
|
| Report Abuse |
|
|
kubuto2
|
  |
| Joined: 16 Jul 2008 |
| Total Posts: 1275 |
|
|
| 30 Sep 2012 12:42 PM |
--Your going to have to put in the colors your self like "Really blue" or something in the parenteses
Time == "11:40:00" wait(1) Fog1 = BrickColor.new(192, 192, 192) Fog2 = 2750 Time == "17:00:00" wait(1) Fog1 = BrickColor.new(77, 77, 77) Fog2 = 2400 Brightness = 0.5 Time == "17:10:00" wait(1) Fog2 = 1750 Time == "17:20:00" wait(1) Fog2 = 1500 Time == "17:30:00" wait(1) Fog2 = 1250 Time == "17:40:00" wait(1) Fog1 = BrickColor.new(153, 51, 0) Fog2 = 1000 Time == "17:50:00" wait(1) Fog1 = BrickColor.new(51, 51, 51) Ambient = "95; 95; 95" Time == "18:00:00" wait(1) Fog1 = BrickColor.new(153, 51, 0) Time == "18:10:00" wait(1) Fog1 = BrickColor.new(8, 8, 8) Fog2 = 500 Time == "18:20:00" wait(1) Brightness = 0 Time == "05:10:00" wait(1) Fog1 = BrickColor.new(28, 28, 28) Fog2 = 750 Time == "05:20:00" wait(1) Fog2 = 1000 Time == "05:30:00" wait(1) Fog1 = BrickColor.new(102, 51, 0) Fog2 = 1250 Time == "05:40:00" wait(1) Fog2 = 1500 Brightness = 0.25 Time == "05:50:00" wait(1) Fog1 = BrickColor.new(255, 102, 0) Fog2 = 1750 Brightness = 0.5 Time == "06:00:00" wait(1) Fog2 = 2250 Time == "06:10:00" wait(1) Fog1 = BrickColor.new(51, 51, 51) Brightness = 0.75 Time == "06:20:00" wait(1) Brightness = 1 Time == "06:30:00" wait(1) Fog1 = BrickColor.new(248, 248, 248) end |
|
|
| Report Abuse |
|
|
JJHarry
|
  |
| Joined: 18 Dec 2010 |
| Total Posts: 809 |
|
|
| 30 Sep 2012 12:47 PM |
I don't think it will work well with waits, because I'm using this with a fast time script so the time will change by the time the wait is over, and how would wait make it work?
Btw, is it Brickcolour or color3? Some say Brickcolour and some say color3!
I'm confused. |
|
|
| Report Abuse |
|
|
JJHarry
|
  |
| Joined: 18 Dec 2010 |
| Total Posts: 809 |
|
| |
|
|
| 30 Sep 2012 01:00 PM |
Hmm..
http://www.roblox.com/XxChopSlaperxX-39-s-Admin-Commands-GUI-item?id=93969383 -- Ceaselesssoul copied | Take one and enjoy! Read the description, has a lot of information. |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2012 01:19 PM |
Lol @Your siggy xxchopslaperxx Ceaseless copied hmm?
http://www.roblox.com/The-Roblox-Quiz-place?id=93016262 checkout my quiz! Still not done though, any suggestions or questions PM me. |
|
|
| Report Abuse |
|
|