Darkaaja
|
  |
| Joined: 24 Sep 2009 |
| Total Posts: 178 |
|
|
| 17 Jul 2011 04:53 PM |
Read Title... Thats the error and I dont know what I can do to fix it...
local door = game.Workspace.Base.BaseWall.Door
script.Parent.ClickDetector:connect(function() repeat until door.Position == Vector3.new(62, 8.9, -22) door.Position = Vector3.new(door.Position + 0,0,-1) end) |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 17 Jul 2011 04:55 PM |
You must have a ClickDetector inside the script.Parent and then say
script.Parent.ClickDetector.MouseClick:connect( |
|
|
| Report Abuse |
|
|
Darkaaja
|
  |
| Joined: 24 Sep 2009 |
| Total Posts: 178 |
|
|
| 17 Jul 2011 04:58 PM |
| Its in the proper place its output saying Connect is an invalid function for ClickDetector |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2011 04:59 PM |
... ...
You don't use connect, you use MouseClick:
script.Parent.ClickDetector.MouseClick:connect(function() end) .....................................^^^^^^^ |
|
|
| Report Abuse |
|
|
Camoy
|
  |
| Joined: 21 May 2009 |
| Total Posts: 6207 |
|
|
| 17 Jul 2011 05:02 PM |
| Yeah, my fault... I typed too fast I didn't add event line in (I gave him teh code for this one). |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2011 05:06 PM |
*GASP* I'm gonna give you a slap on the wrist for that one. |
|
|
| Report Abuse |
|
|
Camoy
|
  |
| Joined: 21 May 2009 |
| Total Posts: 6207 |
|
|
| 17 Jul 2011 05:08 PM |
| Oh don't act as if you haven't done it too :P |
|
|
| Report Abuse |
|
|
Darkaaja
|
  |
| Joined: 24 Sep 2009 |
| Total Posts: 178 |
|
|
| 17 Jul 2011 05:10 PM |
Still not working
local door = game.Workspace.Base.BaseWall.Door
script.Parent.ClickDetector:connect(function() repeat until door.Position == Vector3.new(62, 8.9, -22) door.Position = Vector3.new(door.Position + 0,0,-1) end)
If I add .MouseClick after ClickDetector The game freezes when I click it. |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2011 05:11 PM |
| Probably because Vector3.new(door.Position + 0,0,-1) is screwed up. |
|
|
| Report Abuse |
|
|
Camoy
|
  |
| Joined: 21 May 2009 |
| Total Posts: 6207 |
|
|
| 17 Jul 2011 05:11 PM |
You didn't use my edits!
script.Parent.ClickDetector.MouseClick:connect(function() repeat wait() until door.Position == Vector3.new(62, 8.9, -22) door.Position = door.Position + Vector3.new(0, 0, -1) end) |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2011 05:13 PM |
| You didn't even put ClickDetector.MouseClick:connect ..... |
|
|
| Report Abuse |
|
|