|
| 15 May 2014 06:56 PM |
Doesn't work.
function tele() local things = Game.Workspace.Maps.Spawns:GetChildren() local Plyrs = Game.Players:GetChildren() local d = 1 for x = 1, #plyrs do if plyrs[x] ~= nil then local location = things[d] Plyrs[x].Character.Torso.CFrame = CFrame.new(Vector3.new(location.Position.x,location.Position.y + 3,location.Position.z)) wait(0.2) end end d = d + 1 if d > #things then d = 1 end tele() end |
|
|
| Report Abuse |
|
|
|
| 15 May 2014 06:58 PM |
CFrame.new(Vector3.new(location.Position.x,location.Position.y + 3,location.Position.z))
Vector3 inside CFrame.new? Why?
CFrame.new(location.Position.x,location.Position.y + 3,location.Position.z) |
|
|
| Report Abuse |
|
|
|
| 15 May 2014 07:25 PM |
| A vector3 within a CFrame is valid, but your vector3 is pointless... CFrame.new(location.Position) would work. |
|
|
| Report Abuse |
|
|
|
| 15 May 2014 07:31 PM |
| I put this in my game script, and it worked. But I found the for i = 1 method to be a bit sloppy (in my opinion) when teleporting players, so I just used for i, v in pairs. |
|
|
| Report Abuse |
|
|