| |
|
| 29 Jan 2013 11:02 AM |
Have settings as variables in the script. Say, something like this:
local myAmbience = Color3.new(0,0,0)
Then use a Changed event from Lighting, using your saved values to use as test cases.
game.Lighting.Changed:connect(function() if not (game.Lighting.Ambience == myAmbience) then game.Lighting.Ambience = myAmbience end end)
This must be a LocalScript. Somehow, it doesn't crash the client. All I know is it works. The full script would be:
local myAmbience = Color3.new(0,0,0)
game.Lighting.Changed:connect(function() if not (game.Lighting.Ambience == myAmbience) then game.Lighting.Ambience = myAmbience end end) |
|
|
| Report Abuse |
|
| |
|
| 29 Jan 2013 04:05 PM |
| I'm guessing you could do the same for fog and such? |
|
|
| Report Abuse |
|