yoshiwars
|
  |
| Joined: 27 Jul 2009 |
| Total Posts: 216 |
|
|
| 03 Jul 2013 12:09 PM |
What am doing wrong? :c
bin = script.Parent
function onClicked(mouse) script.Disabled = true script.Parent.ClickDetector.MaxActivationDistance = 0
c = game.Lighting:findFirstChild("Red"):Clone() c.Parent = Workspace c:MoveTo(game.Workspace.lineone.Position)
wait(2)
script.Disabled = false script.Parent.ClickDetector.MaxActivationDistance = 10 end
bin.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2013 12:10 PM |
| You disabled the script before doing anything else. Remove that part, you already set the max distance to 0. |
|
|
| Report Abuse |
|
|
mark298
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 1264 |
|
|
| 03 Jul 2013 12:12 PM |
| Yeah, as KnightmareXD said, don't disable the script because it will no run all of that and then enable itself again because it is disabled. |
|
|
| Report Abuse |
|
|
yoshiwars
|
  |
| Joined: 27 Jul 2009 |
| Total Posts: 216 |
|
|
| 03 Jul 2013 12:16 PM |
Thanks, you made my script smaller but that is obviously not what I'm looking for.. I'll show you my output
12:15:08.306 - MoveTo is not a valid member of Part 12:15:08.308 - Script "Workspace.Head.Script", Line 8 12:15:08.309 - stack end 12:15:08.309 - Disconnected event because of exception |
|
|
| Report Abuse |
|
|
yoshiwars
|
  |
| Joined: 27 Jul 2009 |
| Total Posts: 216 |
|
| |
|
|
| 03 Jul 2013 12:25 PM |
| script.Disabled = true. XD |
|
|
| Report Abuse |
|
|