|
| 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 |
|
|
|
| 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
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 21 Dec 2016 02:28 PM |
ncp:MoveTo(Vector3.new(...))
|
|
|
| Report Abuse |
|
|
|
| 21 Dec 2016 02:30 PM |
| Doesn't MoveTo just force them to walk not Teleport them..? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 21 Dec 2016 03:06 PM |
would I just keep it 0,0,0
R$25127 Hey am front ATR |
|
|
| Report Abuse |
|
|
|
| 21 Dec 2016 03:11 PM |
| monster.Torso.CFrame = CFrame.new(script.Parent.Position) |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
| |
|
|
| 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 |
|
|
|
| 21 Dec 2016 03:20 PM |
@Killer then why does it still work...
R$25127 Hey am front ATR |
|
|
| Report Abuse |
|
|
MK_0
|
  |
| Joined: 28 Aug 2010 |
| Total Posts: 1651 |
|
| |
|