|
| 28 Dec 2011 07:44 PM |
Alright, so, in the script below, the time of day does not change, nor does the fog, although the print() shows.
What am I doing wrong?
------[Variables]------- print("CrakTheRaven's Time/Fog Script Loaded") time = game.Lighting.TimeOfDay x = 5 -- Amount of time, in seconds. 120 = 2 minutes FogStart = game.Lighting.FogStart FogEnd = game.Lighting.FogEnd Brightness = game.Lighting.Brightness ----------------------------------- while true do time = 15 wait(x) time = 16 wait(x) time = 17 wait(x) time = 18 wait(x) print("Fog Loading") -- Fog starting to appear/Brightness dimming time = 19 FogStart = 10 FogEnd = 1000 Brightness = .9 wait(x) print("Fog Thickening") -- Fog getting thicker. Maybe...adjust? time = 20 FogStart = 10 FogEnd = 700 Brightness = .8 wait(x) print("Fog MOAR THICKERRRR") -- ASFASDFASFASF time = 21 FogStart = 10 FogEnd = 600 Brightness = .6 wait(x) print("okayenoughthickenmuch") -- dang too much x_x time = 22 FogStart = 10 FogEnd = 500 Brightness = .5 wait(x) time = 23 print("FogEnd") wait(x) time = 24 wait(x) time = 1 wait(x) time = 2 wait(x) print("Fog going away. :(") -- awww time = 3 FogStart = 10 FogEnd = 600 Brightness = .6 wait(x) time = 4 FogStart = 10 FogEnd = 700 Brightness = .8 wait(x) time = 5 FogStart = 10 FogEnd = 1000 Brightness = .9 wait(x) print("Fog gone. :(") time = 6 FogStart = 10 FogEnd = 1000000 Brightness = 1 wait(x) print("Script over, reloading") end |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2011 07:45 PM |
Tl;dr
http://www.roblox.com/Part-Generator-Plugin-V3-item?id=68342522 |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2011 07:45 PM |
>because this is such a long script.
Your a lovely helper. :) |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2011 07:45 PM |
Ty.
http://www.roblox.com/Part-Generator-Plugin-V3-item?id=68342522 |
|
|
| Report Abuse |
|
|
| |
|
|
| 28 Dec 2011 07:49 PM |
| What are you trying to do? |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2011 07:51 PM |
Basically, the start of the script would have the time at 14. Throughout the script, I want the time to loop all the way to 13, changing brightness and fog as time goes on.
The ending isn't done, but nevertheless, it doesn't change any of the values I wish for it to change. |
|
|
| Report Abuse |
|
|
| |
|
|
| 28 Dec 2011 08:09 PM |
Change 'time' to 'game.Lighting.TimeOfDay = x..":00:00" Change 'FogStart' to 'game.Lighting.FogStart' Change 'FogEnd' to 'game.Lighting.FogEnd' Change 'Brightness' to 'game.Lighting.Brightness' |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2011 08:13 PM |
| So variables won't work? ;v |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2011 08:15 PM |
YOUR variables don't work. You're just saving numbers. Not UserData. |
|
|
| Report Abuse |
|
|