cokePanda
|
  |
| Joined: 30 Dec 2008 |
| Total Posts: 1901 |
|
|
| 16 Mar 2015 09:07 PM |
game.Lighting.OutdoorAmbient.Color3 = Color3.new("54, 54, 54")
or is that wrong? Must be because it's not working.. |
|
|
| Report Abuse |
|
|
kert109
|
  |
| Joined: 31 Dec 2009 |
| Total Posts: 681 |
|
|
| 16 Mar 2015 09:11 PM |
It's like this:
game.Lighting.OutdoorAmbient.Color3 = Color3.new(1,1,1)
In color3, 1 is 255 while 0 is 0.
Color3.new(54/255,54/255,54/255) -- That's what you want. |
|
|
| Report Abuse |
|
|
|
| 16 Mar 2015 09:11 PM |
game.Lighting.OutdoorAmbient = Color3.new("54, 54, 54")
Is that what you meant..? |
|
|
| Report Abuse |
|
|
|
| 16 Mar 2015 09:12 PM |
| Color3.new(54/255,54/255,54/255) is correct. |
|
|
| Report Abuse |
|
|
cokePanda
|
  |
| Joined: 30 Dec 2008 |
| Total Posts: 1901 |
|
|
| 16 Mar 2015 09:20 PM |
02:20:06.203 - Color3 cannot be assigned to 02:20:06.204 - Script 'Workspace.Brightness', Line 6 02:20:06.204 - Stack End |
|
|
| Report Abuse |
|
|
cokePanda
|
  |
| Joined: 30 Dec 2008 |
| Total Posts: 1901 |
|
|
| 16 Mar 2015 09:21 PM |
code:
while true do wait(0.1) local t = tonumber(game.Lighting.TimeOfDay:match("(%d%d):")) if t >= 4 and t < 17 then game.Lighting.Brightness = 1 game.Lighting.OutdoorAmbient.Color3 = Color3.new("54/255,54/255,54/255") else game.Lighting.Brightness = 0 game.Lighting.OutdoorAmbient.Color3 = Color3.new("127/255,127/255,127/255") end end
|
|
|
| Report Abuse |
|
|
|
| 16 Mar 2015 09:31 PM |
| It shouldn't be a string. Get rid of the quotes in Color3.new |
|
|
| Report Abuse |
|
|
cokePanda
|
  |
| Joined: 30 Dec 2008 |
| Total Posts: 1901 |
|
| |
|
cokePanda
|
  |
| Joined: 30 Dec 2008 |
| Total Posts: 1901 |
|
| |
|
|
| 16 Mar 2015 09:39 PM |
| game.Lighting.OutdoorAmbient = Color3.new(127/255,127/255,127/255) |
|
|
| Report Abuse |
|
|