| |
|
Jinxy
|
  |
| Joined: 04 Aug 2007 |
| Total Posts: 18317 |
|
| |
|
| |
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 09 Jul 2011 09:47 PM |
function onTouched(hit) for i, v in pairs(Workspace["MP"]:GetChildren()) do if v:IsA("BasePart") then coroutine.resume(coroutine.create(function() for i = 1, 8 do v.Position = v.Position - Vector3.new(1, 0, 0) end end)) end end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 09 Jul 2011 09:48 PM |
FORGOT THE WAIT AAAAAARGH -RAGES-
function onTouched(hit) for i, v in pairs(Workspace["MP"]:GetChildren()) do if v:IsA("BasePart") then coroutine.resume(coroutine.create(function() for i = 1, 8 do v.Position = v.Position - Vector3.new(1, 0, 0) wait(.25) end end)) end end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 09 Jul 2011 09:49 PM |
Argh I made another mistake D:
function onTouched(hit) for i, v in pairs(Workspace["MP"]:GetChildren()) do if v:IsA("BasePart") then coroutine.resume(coroutine.create(function() for c = 1, 8 do v.Position = v.Position - Vector3.new(1, 0, 0) wait(.25) end end)) end end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
| |
|
Jinxy
|
  |
| Joined: 04 Aug 2007 |
| Total Posts: 18317 |
|
|
| 09 Jul 2011 09:53 PM |
| You mean a brick mover? I think I have one of those.... I tweaked it... |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 09 Jul 2011 09:54 PM |
| OH COME ON! Can't anybody see my script?! |
|
|
| Report Abuse |
|
|
Jinxy
|
  |
| Joined: 04 Aug 2007 |
| Total Posts: 18317 |
|
|
| 09 Jul 2011 09:55 PM |
| I saw it, I was merely pointing out that I have one that's a bit simpler... |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 09 Jul 2011 09:56 PM |
| But mine does exactly what he wants :c |
|
|
| Report Abuse |
|
|
Jinxy
|
  |
| Joined: 04 Aug 2007 |
| Total Posts: 18317 |
|
| |
|
| |
|
|
| 09 Jul 2011 10:17 PM |
| How did you indent (tab) in the forum? O_o |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2011 10:17 PM |
I feel bad for the threadcreator, he typed all that when it could have been much shorter D:
Just replace your script with spectrum's and it should work fine. |
|
|
| Report Abuse |
|
|
Jinxy
|
  |
| Joined: 04 Aug 2007 |
| Total Posts: 18317 |
|
|
| 09 Jul 2011 10:19 PM |
| If this worked, then he indented with spaces. |
|
|
| Report Abuse |
|
|
| |
|
Jinxy
|
  |
| Joined: 04 Aug 2007 |
| Total Posts: 18317 |
|
|
| 09 Jul 2011 10:59 PM |
| I think you just place it in the brick/model you want to move. |
|
|
| Report Abuse |
|
|