Sam27
|
  |
| Joined: 31 May 2008 |
| Total Posts: 6 |
|
|
| 18 Feb 2012 02:59 PM |
I would like to know what's wrong with this script:
function clickit() if (script.Parent.Parent.Shutdown.Value == 0) then script.Parent.Parent.ShieldGeneratorPart0.Reflectance = 0 script.Parent.Parent.ShieldGeneratorPart0.GeneratorScript.Disabled == true script.Parent.Parent.Shutdown.Value = 1 script.Parent.BrickColor = BrickColor.new("Bright green") else script.Parent.Parent.ShieldGeneratorPart0.GeneratorScript.Disabled = false script.Parent.BrickColor = BrickColor.new("Bright red") script.Parent.Parent.Shutdown.Value = 0 end
script.Parent.ClickDetector.MouseClick:connect(clickit) |
|
|
| Report Abuse |
|
|
TwoBoo
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 10790 |
|
| |
|
Sam27
|
  |
| Joined: 31 May 2008 |
| Total Posts: 6 |
|
|
| 18 Feb 2012 03:01 PM |
Sorry, this isn't exactly the script I put. I put:
function clickit() if (script.Parent.Parent.Shutdown.Value == 0) then script.Parent.Parent.ShieldGeneratorPart0.Reflectance = 0 script.Parent.Parent.ShieldGeneratorPart0.GeneratorScript.Disabled = true script.Parent.Parent.Shutdown.Value = 1 script.Parent.BrickColor = BrickColor.new("Bright green") else script.Parent.Parent.ShieldGeneratorPart0.GeneratorScript.Disabled = false script.Parent.BrickColor = BrickColor.new("Bright red") script.Parent.Parent.Shutdown.Value = 0 end
script.Parent.ClickDetector.MouseClick:connect(clickit) |
|
|
| Report Abuse |
|
|
Sam27
|
  |
| Joined: 31 May 2008 |
| Total Posts: 6 |
|
|
| 18 Feb 2012 03:02 PM |
| Thanks for the quick answer! |
|
|
| Report Abuse |
|
|
TwoBoo
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 10790 |
|
| |
|