|
| 12 Jan 2013 02:05 PM |
How would I turn the ambient colors back to the default colors after I have changed them?
game.Lighting.Ambient = Color3.new(128,128,128) game.Lighting.ShadowColor = Color3.new(179,179,184) game.Lighting.FogColor = Color3.new(192,192,192)
I used this but everything was white in the background. |
|
|
| Report Abuse |
|
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 12 Jan 2013 02:07 PM |
game.Lighting.Ambient = Color3.new(128/255,128/255,128/255) game.Lighting.ShadowColor = Color3.new(179/255,179/255,184/255) game.Lighting.FogColor = Color3.new(192/255,192/255,192/255)
Color3 is a scale of 0 to 1
- What have the mini-mods come to nowadays? - |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2013 02:08 PM |
| Oh yea I forgot about the /255 part. Thanks! |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2013 02:10 PM |
Instead of Color3.new(128, 128, 128) you would use Color3.new(128 / 255, 128 / 255, 128 / 255). To return it back, you would simply save a variable of Ambient before you change it. So all in all, that makes your script:
local a = game.Lighting.Ambient local b = game.Lighting.ShadowCOlor local c = game.Lighting.FogColor
game.Lighting.Ambient = Color3.new(128 / 255,128 / 255,128 / 255) game.Lighting.ShadowColor = Color3.new(179 / 255,179 / 255,184 / 255) game.Lighting.FogColor = Color3.new(192 / 255,192 / 255,192 / 255)
-- Change it back: game.Lighting.Ambient = a game.Lighting.ShadowColor = b game.Lighting.FogColor = c |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2013 02:11 PM |
@Myself
Why am I always late? .__. |
|
|
| Report Abuse |
|
|