|
| 30 Nov 2014 03:20 PM |
local light = Instance.new("PointLight", Block) -- adds light to the Block if (Block.BrickColor = "Really Red" )) then -- this where the problem is light.Color = 255, 0, 0 -- adds red light to the brick instead of white light..
Please help.... :(
|
|
|
| Report Abuse |
|
|
KLGA
|
  |
| Joined: 19 Apr 2014 |
| Total Posts: 2571 |
|
|
| 30 Nov 2014 03:24 PM |
That's a Color3, they're set up as Red, Green, Blue.
If you want white use 255,255,255.
light.Color = Color3.new(255,255,255) |
|
|
| Report Abuse |
|
|
|
| 30 Nov 2014 03:25 PM |
local light = Instance.new("PointLight, Block) if Block.BrickColor == ("Really red") then light.Color3 = Color3.new(1, 0, 0) end -- try this |
|
|
| Report Abuse |
|
|
KLGA
|
  |
| Joined: 19 Apr 2014 |
| Total Posts: 2571 |
|
|
| 30 Nov 2014 03:26 PM |
| oh, you worded that weird, I thought you meant you wanted it to show up as white. |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 30 Nov 2014 03:29 PM |
| Can't compare BrickColor to a string |
|
|
| Report Abuse |
|
|
|
| 30 Nov 2014 03:32 PM |
| if Block.BrickColor == BrickColor.new("Really red") then |
|
|
| Report Abuse |
|
|
|
| 30 Nov 2014 08:30 PM |
| ok thanks guys.. i got the if statement right but not the color light.. |
|
|
| Report Abuse |
|
|
|
| 30 Nov 2014 08:35 PM |
Color3.new(Insert color here, Insert color here, Insert color here)
1.Take the colors ( 0 - 255 ) 2.Get a calculator 3. Take the color # and divide by 255 for each 4. Insert color here
|
|
|
| Report Abuse |
|
|