Clickest
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 6504 |
|
|
| 31 Mar 2014 06:05 PM |
function teleport(plrs, area) for _, v in pairs(area) do for i = 1, #plrs do plrs[i].Character.Torso.CFrame = CFrame.new(area[math.random(1, #area)].Position + Vector3.new(0, 3, 0)) end end end
teleport(players, game.Workspace.Classic.Spawns:GetChildren())
It doesn't teleport :(
ℭ - Frame |
|
|
| Report Abuse |
|
|
Lem0nzz
|
  |
| Joined: 18 Jul 2011 |
| Total Posts: 926 |
|
|
| 31 Mar 2014 06:08 PM |
| for i, v in pairs(area) do |
|
|
| Report Abuse |
|
|
Clickest
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 6504 |
|
|
| 31 Mar 2014 06:09 PM |
Whats the difference?
ℭ - Frame |
|
|
| Report Abuse |
|
|
Clickest
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 6504 |
|
|
| 31 Mar 2014 06:11 PM |
It didn't do anything.
ℭ - Frame |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2014 06:13 PM |
Oh my gosh, are you trying to kill them?
function teleport(plrs, area) for _, v in pairs(area) do for i = 1, #plrs do plrs[i].Character:MoveTo(area[math.random(1, #area)].Position + Vector3.new(0, 3, 0)) end end end
teleport(players, game.Workspace.Classic.Spawns:GetChildren())
Dontcha know that separating the torso from the head (or vice versa) instananeously kills your subject. Come on now. |
|
|
| Report Abuse |
|
|
Clickest
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 6504 |
|
|
| 31 Mar 2014 06:14 PM |
@fire, that wasn't the problem :/
CFrame works perfectly, its just not teleporting.
ℭ - Frame |
|
|
| Report Abuse |
|
|
Lem0nzz
|
  |
| Joined: 18 Jul 2011 |
| Total Posts: 926 |
|
|
| 31 Mar 2014 06:14 PM |
| Why dont you just breakjoints, then they automatically spawn there? |
|
|
| Report Abuse |
|
|
Clickest
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 6504 |
|
|
| 31 Mar 2014 06:19 PM |
Because it's not an actually spawn.
ℭ - Frame |
|
|
| Report Abuse |
|
|
| |
|