|
| 07 Sep 2012 05:28 PM |
I was making a group teleport with a waiting system and I cant seem to get it going? Please help. Thank you!
wait (10) target = CFrame.new(0, 100, 0) for i, player in ipairs(game.Players:GetChildren()) do player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0) end |
|
|
| Report Abuse |
|
|
agent767
|
  |
| Joined: 03 Nov 2008 |
| Total Posts: 4181 |
|
|
| 07 Sep 2012 07:54 PM |
Change "player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)" to "player.Character.Torso.CFrame = target + CFrame.new(0, i * 5, 0)"
Basicly you tried to add up a Vector3-value and a CFrame-value which caused the script to error. |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2012 08:03 PM |
No.
To add to CFrame with vector 3 you do
Part.CFrame = CFrame.new(0,0,0) + Vector3.new(0,0,0)
and to do it with CFrame only you do
Part.CFrame = CFrame.new(0,0,0) * CFrame.new(0,0,0) |
|
|
| Report Abuse |
|
|