|
| 25 Sep 2011 06:21 PM |
function onTouched(hit) script.Parent.Parent.Door.Transparency= 0.5 script.Parent.Parent.Door.Cancollide= false wait(3) script.Parent.Parent.Door.Transparency= 0 Script.Parent.Parent.Door.Cancollide= true end script.Parent.Touched:connect(onTouched)
----
Perhaps the ='s? |
|
|
| Report Abuse |
|
|
| |
|
MattJon
|
  |
| Joined: 28 Apr 2009 |
| Total Posts: 660 |
|
|
| 25 Sep 2011 06:27 PM |
I tihnk it's supposed to be connect(onTouch)
function onTouched(hit) script.Parent.Parent.Door.Transparency = 0.5 script.Parent.Parent.Door.CanCollide = false wait(3) script.Parent.Parent.Door.Transparency = 0 script.Parent.Parent.Door.Cancollide = true end script.Parent.Touched:connect(onTouch) |
|
|
| Report Abuse |
|
|
Jagger19
|
  |
| Joined: 14 Jun 2008 |
| Total Posts: 1877 |
|
|
| 25 Sep 2011 06:41 PM |
function onTouch(hit) script.Parent.Parent.Door.Transparency = 0.5 script.Parent.Parent.Door.CanCollide = false wait(3) script.Parent.Parent.Door.Transparency = 0 Script.Parent.Parent.Door.CanCollide = true end script.Parent.Touched:connect(onTouch)
The following statement is false. the previous statement is true. |
|
|
| Report Abuse |
|
|
MattJon
|
  |
| Joined: 28 Apr 2009 |
| Total Posts: 660 |
|
|
| 25 Sep 2011 07:01 PM |
Fix this?
function onClicked() b = 0.1 y = script.Parent.Parent.Door if y.Transparency = 0 then do y.Transparency = y.Transparency + b until y.Transparency = 1 y.CanCollide = false end end script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
| |
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 25 Sep 2011 08:14 PM |
function onTouched(hit) script.Parent.Parent.Door.Transparency= 0.5 script.Parent.Parent.Door.CanCollide= false -- Need's CanCollide not Cancollide wait(3) script.Parent.Parent.Door.Transparency= 0 Script.Parent.Parent.Door.CanCollide= true -- Need's CanCollide not Cancollide end script.Parent.Touched:connect(onTouched)
-- 1Topcop
+ You know me as CrumleButt. This account was banned for 3 days at that time. :L
|
|
|
| Report Abuse |
|
|
|
| 25 Sep 2011 08:18 PM |
@top
It's not working... Is it because you accidently capitalized script? I'll try that. Anyway, thanks again. You're much better at this than I. |
|
|
| Report Abuse |
|
|
|
| 25 Sep 2011 08:21 PM |
| Thanks for everyone who helped, I figured it out... It's kind of... um... humiliating that I couldn't see that I didn't change the brick's name to "Door." |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 25 Sep 2011 08:32 PM |
Lol. We've all done it.
~ pwnedu46 ~ |
|
|
| Report Abuse |
|
|