Xkrew
|
  |
| Joined: 06 Dec 2013 |
| Total Posts: 1044 |
|
|
| 08 Jun 2014 09:58 AM |
this script dont work
if game.Lighting.TimeOfDay = 00:00:00 then script.Parent.SpotLight.Enabled = true script.Parent.Light.Enabled = true end else if game.Lighting.TimeOfDay = 12:00:00 then script.Parent.SpotLight.Enabled = false script.Parent.Light.Enabled = false end |
|
|
| Report Abuse |
|
|
Xkrew
|
  |
| Joined: 06 Dec 2013 |
| Total Posts: 1044 |
|
| |
|
Xkrew
|
  |
| Joined: 06 Dec 2013 |
| Total Posts: 1044 |
|
| |
|
|
| 08 Jun 2014 10:04 AM |
If its so easy then why dont you fix it yourself? And whats the error? |
|
|
| Report Abuse |
|
|
Xkrew
|
  |
| Joined: 06 Dec 2013 |
| Total Posts: 1044 |
|
|
| 08 Jun 2014 10:08 AM |
if game.Lighting.TimeOfDay = 00:00:00 then script.Parent.SpotLight.Enabled = true script.Parent.Light.Enabled = true end elseif if game.Lighting.TimeOfDay = 12:00:00 then script.Parent.SpotLight.Enabled = false script.Parent.Light.Enabled = false end
tnen expected near '=' |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 10:12 AM |
if game.Lighting.TimeOfDay == "00:00:00" then script.Parent.SpotLight.Enabled = true script.Parent.Light.Enabled = true elseif game.Lighting.TimeOfDay == "12:00:00" then script.Parent.SpotLight.Enabled = false script.Parent.Light.Enabled = false end end |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2014 10:13 AM |
if game.Lighting.TimeOfDay == 00:00:00 then
if game.Lighting.TimeOfDay == 12:00:00 then |
|
|
| Report Abuse |
|
|