Chrixm
|
  |
| Joined: 07 May 2013 |
| Total Posts: 79 |
|
|
| 02 Aug 2013 07:52 AM |
| How would I go about doing this? Do I inverse the lookVector or something? |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2013 07:53 AM |
im not sure myself but i found this article
http://wiki.roblox.com/index.php/Teleportation |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2013 07:54 AM |
| how do you want to teleport the player? |
|
|
| Report Abuse |
|
|
Chrixm
|
  |
| Joined: 07 May 2013 |
| Total Posts: 79 |
|
|
| 02 Aug 2013 07:56 AM |
| by adjusting the CFrame of their torso |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 02 Aug 2013 07:57 AM |
Use MoveTo, it's much better.
|
|
|
| Report Abuse |
|
|
Java3D
|
  |
| Joined: 29 Jul 2012 |
| Total Posts: 1229 |
|
|
| 02 Aug 2013 08:01 AM |
| TeleportingPlayer.Character.Torso.CFrame = TeleportingToPlayer.Character.Torso.CFrame*CFrame.new(0,0,-2) -- Change to -1 if you want them directly behind, but I figured you wanted 1 stud between them? |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2013 08:04 AM |
CFrame essentially is the direction that the object is facing, so simply put, you could edit the Z coordinate to teleport them behind.
CFrame * CFrame.new(0,0,-1)
would teleport them behind the object. |
|
|
| Report Abuse |
|
|