|
| 03 Sep 2011 09:46 PM |
door = Button.Parent
function onClick() wait(0.1) script.Parent.door.Transparency = 0.1 script.Parent.door.CanCollide = true wait(30) script.Parent.door.Transparency = 0 script.Parent.door.CanCollide = false end
script.Parent.ClickDetector.MouseClick:connect(onClick)
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 03 Sep 2011 09:48 PM |
| And I'm guessing that script.Parent is a model and a ClickDetector doesn't work in a model, unless you have a part in a part. |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2011 09:50 PM |
| Scripting is confusing Button was defined but what you said just then confuses me part in part click detector ... THe name of the bricks are button and door. |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2011 10:54 PM |
| Is the script in the button? |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2011 11:01 PM |
| Could you tell WHAT is wrong? |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2011 11:05 PM |
Listen..
can I just make a model and you take it... I'm tired of seeing this e.e |
|
|
| Report Abuse |
|
|