rauluss1
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 599 |
|
|
| 15 Aug 2013 03:08 PM |
print("crazyman32's Scripts") local isOn = true
function on() isOn = true script.Parent.Siren:Play() wait(0.5) script.Parent.Siren2:Play() script.Parent.Parent.Script.Disabled = false -- HERE end
function off() isOn = false script.Parent.Siren:Stop() script.Parent.Siren2:Stop() scritp.Parent.Parent.Script.Disabled = true -- HEREE TOO wait(1) script.Parent.Parent.Blue.Light.Light.Visible = false script.Parent.Parent.Blue.PointLight.Enabled = false script.Parent.Parent.Red.Light.Light.Visible = false script.Parent.Parent.Red.PointLight.Enabled = false end
function onClicked() if isOn == true then off() else on() end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
on() ------------------------------------------------------------------------------------- It just wont work.
Please help. |
|
|
| Report Abuse |
|
|
|
| 15 Aug 2013 03:11 PM |
Is Script the only script that is a child of script.Parent.Parent?
*Tell me about the rabbits, George* |
|
|
| Report Abuse |
|
|
rauluss1
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 599 |
|
| |
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
| |
|
rauluss1
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 599 |
|
| |
|