Z007
|
  |
| Joined: 14 Sep 2010 |
| Total Posts: 11729 |
|
|
| 09 May 2012 11:51 AM |
Yeah, I'm pretty sure this is basically JUNK.
function onTouch(part) O009 = script.Parent arget = CFrame.new(-9.7, 24, 107.6) --could be near a brick or in a new area for i, player in ipairs(game.Players:GetChildren()) do player.Character.Torso.CFrame = target + Vector3.new( i * 5, 0, 0) end O009.Touched:connect(onTouch)
end |
|
|
| Report Abuse |
|
|
Celestus
|
  |
| Joined: 15 Aug 2011 |
| Total Posts: 14873 |
|
| |
|
|
| 09 May 2012 11:57 AM |
It doesn't work. That's why I'm posting it.
Derp. This, is Z007 by the way. |
|
|
| Report Abuse |
|
|
Celestus
|
  |
| Joined: 15 Aug 2011 |
| Total Posts: 14873 |
|
|
| 09 May 2012 12:02 PM |
| Isn't 'arget' supposed to be target? |
|
|
| Report Abuse |
|
|
jelly134
|
  |
| Joined: 25 Aug 2008 |
| Total Posts: 1137 |
|
|
| 09 May 2012 12:15 PM |
Fixed
O009 = script.Parent --this needs to be outside of the function
function onTouch(part) target = CFrame.new(-9.7, 24, 107.6) --could be near a brick or in a new area for i, player in ipairs(game.Players:GetChildren()) do player.Character.Torso.CFrame = target + CFrame.new( i * 5, 0, 0) end end
O009.Touched:connect(onTouch) --this also needs to be outside of the function you want it to trigger
--This should hopefully work for you :) |
|
|
| Report Abuse |
|
|
Z007
|
  |
| Joined: 14 Sep 2010 |
| Total Posts: 11729 |
|
|
| 09 May 2012 03:38 PM |
| Doesn't work... Don't know why. |
|
|
| Report Abuse |
|
|
Z007
|
  |
| Joined: 14 Sep 2010 |
| Total Posts: 11729 |
|
| |
|
jelly134
|
  |
| Joined: 25 Aug 2008 |
| Total Posts: 1137 |
|
|
| 10 May 2012 10:10 AM |
| i know why, it says 'in ipairs'. instead of 'in pairs' |
|
|
| Report Abuse |
|
|