| |
|
pauljkl
|
  |
| Joined: 23 Oct 2008 |
| Total Posts: 9364 |
|
|
| 22 Oct 2011 03:40 PM |
Use 1 button, much easier
local open = true script.Parent.ClickDetector.MouseClick:connect(function() if open then open = false script.Parent.Parent.Door.Transparency = 0 script.Parent.Parent.Door.CanCollide = true else open = true script.Parent.Parent.Door.Transparency = 1 script.Parent.Parent.Door.CanCollide = false end end) |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2011 03:55 PM |
| Doesn't work. I can't click the block to make it open. |
|
|
| Report Abuse |
|
|
pauljkl
|
  |
| Joined: 23 Oct 2008 |
| Total Posts: 9364 |
|
|
| 22 Oct 2011 03:58 PM |
Have this tree with that script
Model -Button --Script i gave --ClickDetector -Door (Part) |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2011 04:06 PM |
| Well, Your script helped me out with something! I was looking to help this guy when you helped him and me. My use for the script would be for things aside from doors though. Thank you! |
|
|
| Report Abuse |
|
|
| |
|