|
| 20 May 2012 02:59 PM |
| I tried "game.Lighting.Ambient = 0; 0; 204" but for some reason, it isn't working. Did I do something wrong, or is it right and I just spelled something wrong? |
|
|
| Report Abuse |
|
|
jelly134
|
  |
| Joined: 25 Aug 2008 |
| Total Posts: 1137 |
|
|
| 20 May 2012 03:02 PM |
Color3
game.Lighting.Ambient = Color3.new(0, 0, (204/255))
Color3 is out of 1, so thats why it has (204/255) |
|
|
| Report Abuse |
|
|
|
| 20 May 2012 03:04 PM |
So, how do I change the (204/255) to do a different color??
game.Lighting.Ambient = Color3.new(0, (205/255), 0)? |
|
|
| Report Abuse |
|
|
jelly134
|
  |
| Joined: 25 Aug 2008 |
| Total Posts: 1137 |
|
|
| 20 May 2012 03:07 PM |
yep, you got it :) if you dont want to mess about with brackets, do the sum on a calculator then just put in the value: 204/255 = 0.8
game.Lighting.Ambient = Color3.new(0, 0.8, 0) |
|
|
| Report Abuse |
|
|
jack48271
|
  |
| Joined: 16 Jan 2009 |
| Total Posts: 2608 |
|
|
| 20 May 2012 03:17 PM |
I'm probably wrong because I'm not much of a scriptwriter but couldn't you do...
game.Lighting.Ambient.Brickcolor = "blue"
|
|
|
| Report Abuse |
|
|
jelly134
|
  |
| Joined: 25 Aug 2008 |
| Total Posts: 1137 |
|
|
| 20 May 2012 03:17 PM |
| first, BrickColor, second, "Bright blue" or "Really blue", third, no, sorry |
|
|
| Report Abuse |
|
|
gamehero
|
  |
| Joined: 12 Jun 2007 |
| Total Posts: 1455 |
|
|
| 20 May 2012 03:26 PM |
This is the only way I know how to do it like that.
game.Lighting.Ambient = BrickColor.Blue().Color
It's kind of pointless though. Color3 is still better once you get the hang of it. |
|
|
| Report Abuse |
|
|
|
| 20 May 2012 03:29 PM |
For clarification about the Color3.new:
The arguments are between 0 and 1, not between 0 and 255 as the properties tab shows you. So, to enter it in the script, whatever you see in the properties tab must be divided by 255. |
|
|
| Report Abuse |
|
|
jelly134
|
  |
| Joined: 25 Aug 2008 |
| Total Posts: 1137 |
|
|
| 20 May 2012 03:30 PM |
| Correct. [255/255 = 1] [0/255 = 0] It makes sense to divide by 255 if you think about it :) |
|
|
| Report Abuse |
|
|