|
| 28 Aug 2014 12:49 PM |
Hi, I'm trying to make lights change colour on a bool value that is in workspace.
Cooling = game.Workspace.Cooling Light = script.Parent.SpotLight
function Cooling.Changed:connect if (Cooling == false) then Light.Color = Color3.new (170,0,0) else Light.Color = Color3.new (255, 247, 187) end end
Above is what I have so far, but I'm unfamiliar with using functions, or Changed, so I'm somewhat in the dark, could anyone offer any assistance?
Help is much appreciated. |
|
|
| Report Abuse |
|
|
| 28 Aug 2014 12:52 PM |
(Worth noting: The issue displayed currently is as follows: if (Cooling == false) then "'(' expected near 'If'" |
|
|
| Report Abuse |
|
|
| 28 Aug 2014 01:20 PM |
| Edit: I changed to Cooling.Value |
|
|
| Report Abuse |
|