|
| 23 Jun 2014 01:15 PM |
So my script won't activate the value, and it isn't another script because if I manually put the value it works.
bin = script.Parent lon = bin.Lights_On loff = bin.Lights_Off charger = game.Workspace.Charger lights = charger.Lights.Strobe
function LONClick() lights.Value.Value = true end
lon.MouseButton1Down:connect(LONClick)
function LOFFClick() lights.Value.Value = false end
loff.MouseButton1Down:connect(LOFFClick) |
|
|
| Report Abuse |
|
|
|
| 23 Jun 2014 01:21 PM |
| Try changing: lights.Value.Value with something else. Change the name of Value to something like On or TurnOn. I think having as Value might stop it from going through. I'm new to scripting in a way but i think that could fix it. |
|
|
| Report Abuse |
|
|
|
| 23 Jun 2014 02:01 PM |
| The first value finds the value then the second value along with "= true" makes it turn on. |
|
|
| Report Abuse |
|
|
|
| 23 Jun 2014 02:04 PM |
| Whats wrong with these F5 bombers |
|
|
| Report Abuse |
|
|
| |
|
|
| 23 Jun 2014 02:09 PM |
I also tried this:
bin = script.Parent lon = bin.Lights_On loff = bin.Lights_Off local Lights = script.Parent.Lights.Value
function LONClick() Lights.Strobe.Value = true end
lon.MouseButton1Down:connect(LONClick)
function LOFFClick() Lights.Strobe.Value = false end
loff.MouseButton1Down:connect(LOFFClick) |
|
|
| Report Abuse |
|
|