Jakeup10
|
  |
| Joined: 29 Nov 2008 |
| Total Posts: 6782 |
|
|
| 01 May 2013 11:33 AM |
script.Parent.ClickDetector.MouseClick:connect(onClicked)
function onClicked() script.Parent.Transparency = 0 script.Parent.CanCollide = true script.Parent.02.Script.Disabled = false script.Parent.02.Transparency = 0.5 script.Disabled = true end The script doesn't seem to work, but it says the problem is with the line to turn cancollide true...I don't see any problems? So whats wrong with it? |
|
|
| Report Abuse |
|
|
|
| 01 May 2013 11:40 AM |
function onClicked(c) script.Parent.Transparency = 0 script.Parent.CanCollide = true script.Parent.02.Script.Disabled = true script.Parent.02.Transparency = 0.5 script.Disabled = false end
Try that |
|
|
| Report Abuse |
|
|
iGap
|
  |
| Joined: 17 Mar 2013 |
| Total Posts: 1087 |
|
|
| 01 May 2013 11:42 AM |
script.Parent.ClickDetector.MouseClick:connect(function() script.Parent.Transparency = 0 script.Parent.CanCollide = true script.Parent.02.Script.Disabled = false script.Parent.02.Transparency = 0.5 script.Disabled = true end) |
|
|
| Report Abuse |
|
|
Jakeup10
|
  |
| Joined: 29 Nov 2008 |
| Total Posts: 6782 |
|
|
| 01 May 2013 03:58 PM |
@Hard, Nothing happened
@iGap Just made "script.Parent.02.Script.Disabled = false" the error...
|
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 01 May 2013 04:38 PM |
| The connection line must always go after the function, unless it's an anonymous function (like IGaps) |
|
|
| Report Abuse |
|
|
velibor
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 1003 |
|
|
| 01 May 2013 04:43 PM |
script.Parent["02"].Disabled = false
02 is something that you need to put between []
|
|
|
| Report Abuse |
|
|
Jakeup10
|
  |
| Joined: 29 Nov 2008 |
| Total Posts: 6782 |
|
|
| 01 May 2013 08:25 PM |
@Veli, That helped, but now I get...
"Attempt to call a nil value" "disconnected event because of exception" |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 02 May 2013 01:18 AM |
| Is 02 grouped with the script; it should be. |
|
|
| Report Abuse |
|
|