NuselKaie
|
  |
| Joined: 24 Oct 2013 |
| Total Posts: 939 |
|
|
| 01 Dec 2013 07:05 AM |
I cannot get my head around this logic! I need another brain, please.
local lamp = false if key == "t" then if lamp == false then lamp=true script.Parent.Lamp.SpotLight.Enabled = false else lamp=false script.Parent.Lamp.SpotLight.Enabled = true end end
This is inside a tool and the only problem is the logic. Please, help! :c |
|
|
| Report Abuse |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 01 Dec 2013 07:06 AM |
if key == "t" then script.Parent.Lamp.SpotLight.Enabled = not script.Parent.Lamp.SpotLight.Enabled end
try that |
|
|
| Report Abuse |
|
NuselKaie
|
  |
| Joined: 24 Oct 2013 |
| Total Posts: 939 |
|
| |