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 » Scripters
Home Search
 

Re: Teleport without the joins getting ripped

Previous Thread :: Next Thread 
CosmicPigeon is not online. CosmicPigeon
Joined: 14 Oct 2012
Total Posts: 5978
21 Dec 2016 01:50 PM
How do I do a teleport
my NPCs do not have a HumanoidRootPart
and when their position is changed to an object's position they die and arms and legs get ripped off


R$25127 Hey am front ATR
Report Abuse
KillerKyle is not online. KillerKyle
Joined: 29 Jul 2007
Total Posts: 6371
21 Dec 2016 02:20 PM
You shouldn't have a problem if everything is welded correctly.

Are you moving them with Position or CFrame? Moving a part with position will kill the NPC. You must use CFrame.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
21 Dec 2016 02:28 PM
ncp:MoveTo(Vector3.new(...))


Report Abuse
KillerKyle is not online. KillerKyle
Joined: 29 Jul 2007
Total Posts: 6371
21 Dec 2016 02:30 PM
Doesn't MoveTo just force them to walk not Teleport them..?
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
21 Dec 2016 02:42 PM
That Move, not MoveTo

http://wiki.roblox.com/index.php?title=API:Class/Model/MoveTo


Report Abuse
CosmicPigeon is not online. CosmicPigeon
Joined: 14 Oct 2012
Total Posts: 5978
21 Dec 2016 02:59 PM
@Killer
I am doing
monster.Torso.Position = script.Parent.Position

how to do CFrame?


R$25127 Hey am front ATR
Report Abuse
MK_0 is online. MK_0
Joined: 28 Aug 2010
Total Posts: 1651
21 Dec 2016 03:03 PM


Torso.CFrame = Object.CFrame * CFrame.new(0,0,0) -- The offset


Report Abuse
CosmicPigeon is not online. CosmicPigeon
Joined: 14 Oct 2012
Total Posts: 5978
21 Dec 2016 03:04 PM
MK_0
but how would I make it CFrame to the script.Parent position instead of having to manually set it?


R$25127 Hey am front ATR
Report Abuse
CosmicPigeon is not online. CosmicPigeon
Joined: 14 Oct 2012
Total Posts: 5978
21 Dec 2016 03:06 PM
would I just keep it 0,0,0


R$25127 Hey am front ATR
Report Abuse
KillerKyle is not online. KillerKyle
Joined: 29 Jul 2007
Total Posts: 6371
21 Dec 2016 03:11 PM
monster.Torso.CFrame = CFrame.new(script.Parent.Position)
Report Abuse
CosmicPigeon is not online. CosmicPigeon
Joined: 14 Oct 2012
Total Posts: 5978
21 Dec 2016 03:12 PM
@Killer is


#script monster.Torso.CFrame = script.Parent.CFrame * CFrame.new(0,0,0)

the same thing


R$25127 Hey am front ATR
Report Abuse
Wowgnomes is online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
21 Dec 2016 03:17 PM
CFrame torso


Report Abuse
KillerKyle is not online. KillerKyle
Joined: 29 Jul 2007
Total Posts: 6371
21 Dec 2016 03:20 PM
Multiplying your CFrame by CFrame.new(0, 0, 0) will set anything to 0 as anything times 0 is 0.
Report Abuse
CosmicPigeon is not online. CosmicPigeon
Joined: 14 Oct 2012
Total Posts: 5978
21 Dec 2016 03:20 PM
@Killer
then why does it still work...


R$25127 Hey am front ATR
Report Abuse
MK_0 is online. MK_0
Joined: 28 Aug 2010
Total Posts: 1651
21 Dec 2016 03:40 PM
@Killer

No it doesn't...



Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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