Avocation
|
  |
| Joined: 22 Mar 2011 |
| Total Posts: 107 |
|
|
| 28 Feb 2015 11:09 AM |
I am trying to make a script change the lighting settings in my game when it starts so I don't have to change them back and forth while I edit, I am using Color3 and it isn't working.
local L = game.Lighting
function ServerStart() L.Ambient.Color3 = Color3.new(0, 0, 0) L.Brightness = 1 L.ColorShift_Bottom.Color3 = Color3.new(126, 0, 0) L.ColorShift_Top.Color3 = Color3.new(27, 0, 0) L.GlobalShadows = true L.OutDoorAmbient.Color3 = Color3.new(12, 12, 12) L.Outlines = false L.ShadowColor.Color3 = Color3.new(22, 22, 22) L.TimeOfDay = 21 L.FogColor.Color3 = Color3.new(0, 0, 0) L.FogEnd = 180 L.FogStart = 50 end
ServerStart() |
|
|
| Report Abuse |
|
|
|
| 28 Feb 2015 11:10 AM |
| Remove .Color3 after the properties |
|
|
| Report Abuse |
|
|
Avocation
|
  |
| Joined: 22 Mar 2011 |
| Total Posts: 107 |
|
| |
|
drager980
|
  |
| Joined: 25 May 2009 |
| Total Posts: 13385 |
|
|
| 28 Feb 2015 11:13 AM |
local L = game.Lighting
function ServerStart() L.Ambient = Color3.new(0, 0, 0) L.Brightness = 1 L.ColorShift_Bottom = Color3.new(126/255, 0, 0) L.ColorShift_Top = Color3.new(27, 0, 0) L.GlobalShadows = true L.OutDoorAmbient = Color3.new(12/255, 12/255, 12/255) L.Outlines = false L.ShadowColor = Color3.new(22/255, 22/255, 22/255) L.TimeOfDay = 21 L.FogColor = Color3.new(0, 0, 0) L.FogEnd = 180 L.FogStart = 50 end
ServerStart()
AND THE TIGER GOES ROAR |
|
|
| Report Abuse |
|
|
Avocation
|
  |
| Joined: 22 Mar 2011 |
| Total Posts: 107 |
|
| |
|