mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 06 Sep 2012 10:56 PM |
Ok so I want this brick when its completely transpareny for the child script(s) to be disabled. I have little knowledge of coding.
function check(part) a = script.Parent if a.Transparency ~= nil then script.Parent.lava.Disabled = false else script.Parent.lava.Disabled = true end end script.Parent.Touched:connect(check)
Whats wrong with it? |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 06 Sep 2012 10:56 PM |
| THe lava is the name of the child script... |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2012 11:04 PM |
function check(part) a = script.Parent if a.Transparency == 1 then script.Parent.lava.Disabled = true else script.Parent.lava.Disabled = false end end script.Parent.Touched:connect(check)
http://wiki.roblox.com/index.php/User:ElectricBlaze |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 06 Sep 2012 11:10 PM |
| I had a feeling that was it. Thank you! |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2012 11:19 PM |
No problem. ;)
http://wiki.roblox.com/index.php/User:ElectricBlaze |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 06 Sep 2012 11:21 PM |
| Lol, I'm more of a sword fighter, barely any scripting XD |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2012 11:32 PM |
:P
http://wiki.roblox.com/index.php/User:ElectricBlaze |
|
|
| Report Abuse |
|
|