Zythyx
|
  |
| Joined: 18 May 2011 |
| Total Posts: 6503 |
|
|
| 07 Aug 2011 10:13 PM |
OKay Green button: function onClicked() script.Parent.Parent.Gate.Transparency = 0 script.Parent.Parent.Gate.CanCollide = false wait(.001) end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Red button function onClicked() script.Parent.Parent.Gate.Transparency = 1 script.Parent.Parent.Gate.CanCollide = true wait(0.001) end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
I want green to open and red to close Currently: Green closes Red opens |
|
|
| Report Abuse |
|
|
nPwn
|
  |
| Joined: 17 Sep 2010 |
| Total Posts: 3197 |
|
|
| 07 Aug 2011 10:28 PM |
| works fine just have it all in a model |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 08 Aug 2011 12:22 AM |
THis is what I would do
Ungroup and
GREEN function onClicked() Game.Workspace.Part.Transparency = 1--Change the part to the name Game.Workspace.Part.CanCollide = false--change wait(.1) end script.Parent.ClickDetector.MouseClick:connect(onTouch)
and do the same thing with red exept transparency = 0 and CanCollide = true |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 08 Aug 2011 12:22 AM |
| Sorry Transparency for green is 0 not 1(from what your saying) |
|
|
| Report Abuse |
|
|
nPwn
|
  |
| Joined: 17 Sep 2010 |
| Total Posts: 3197 |
|
| |
|