generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Teleport a player 1 stud behind another

Previous Thread :: Next Thread 
Chrixm is not online. 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
areaquest2 is not online. areaquest2
Joined: 05 Jun 2010
Total Posts: 196
02 Aug 2013 07:53 AM
im not sure myself but i found this article

http://wiki.roblox.com/index.php/Teleportation
Report Abuse
expressmyself is not online. expressmyself
Joined: 19 Apr 2011
Total Posts: 1768
02 Aug 2013 07:54 AM
how do you want to teleport the player?
Report Abuse
Chrixm is not online. Chrixm
Joined: 07 May 2013
Total Posts: 79
02 Aug 2013 07:56 AM
by adjusting the CFrame of their torso
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
02 Aug 2013 07:57 AM
Use MoveTo, it's much better.
Report Abuse
Java3D is not online. 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
AdvorsusDuo is not online. AdvorsusDuo
Joined: 17 May 2012
Total Posts: 5265
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image