101PILOT
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 960 |
|
|
| 15 Oct 2013 05:53 PM |
I have a script that is supposed to change the color of a block and a Point light in that block. the block will change color but the point light wont. any ideas?
script.Parent.Touched:connect(function(Hit) if pcall(function() Hit:children() end) then if Hit.Name=="Bullet" then game:service("Debris"):AddItem(Hit,0) script.Parent.BrickColor = BrickColor.new("Really red") script.Parent.PointLight.Color = Color.new("Really red") end end end) |
|
|
| Report Abuse |
|
|
|
| 15 Oct 2013 05:55 PM |
script.Parent.PointLight.Color = BrickColor.new("Really red").Color
the Color property of PointLight does not accept "Color.new", it accepts Color3, and Color3 cannot be used with BrickColor if you want to use a BrickColor, use the Color property of said BrickColor |
|
|
| Report Abuse |
|
|
101PILOT
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 960 |
|
| |
|