Tamox
|
  |
| Joined: 14 Apr 2011 |
| Total Posts: 9113 |
|
|
| 20 Jun 2013 08:37 PM |
I just can't Put my finger on it.
function onClicked() script.Parent.Parent.l1.Transparency = 1 script.Parent.Parent.l1.CanCollide = true end script.Parent.ClickDetector.MouseClick:connect (onClicked)
function onClicked() script.Parent.Parent.l6.Transparency = 1 script.Parent.Parent.l6.CanCollide = false end script.Parent.ClickDetector.MouseClick:connect (onClicked)
|
|
|
| Report Abuse |
|
|
H5L
|
  |
| Joined: 19 Jun 2013 |
| Total Posts: 352 |
|
| |
|
Tamox
|
  |
| Joined: 14 Apr 2011 |
| Total Posts: 9113 |
|
|
| 20 Jun 2013 08:39 PM |
| Anything? Im hoping its right. Its for my jail cell on the buttons. |
|
|
| Report Abuse |
|
|
Tamax
|
  |
| Joined: 19 Jul 2011 |
| Total Posts: 435 |
|
| |
|
Voidion
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 2668 |
|
| |
|
|
| 20 Jun 2013 09:47 PM |
function onClicked() script.Parent.Parent.Gate.Transparency = 0 script.Parent.Parent.Gate.CanCollide = true wait(.001) end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
function onClicked() script.Parent.Parent.Gate.Transparency = 1 script.Parent.Parent.Gate.CanCollide = false wait(.001) end
script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2013 09:49 PM |
| I think you forgot teh wait() |
|
|
| Report Abuse |
|
|
Tamax
|
  |
| Joined: 19 Jul 2011 |
| Total Posts: 435 |
|
|
| 20 Jun 2013 09:50 PM |
| When I get unbanned I'll try this. Thanks. |
|
|
| Report Abuse |
|
|
Tamax
|
  |
| Joined: 19 Jul 2011 |
| Total Posts: 435 |
|
|
| 21 Jun 2013 07:52 AM |
| I see you tweaked the transparency a little. I have basically a decal that is transparent jail bars. So I'm keeping it at one. What it is basically trying to say is that when clicked turn the door to transparency 1 then make the brick either Colicollided Or Un Collicollided |
|
|
| Report Abuse |
|
|
Tamax
|
  |
| Joined: 19 Jul 2011 |
| Total Posts: 435 |
|
| |
|