ash877
|
  |
| Joined: 18 Feb 2008 |
| Total Posts: 5142 |
|
|
| 03 Apr 2015 09:28 PM |
plr.Character.Torso.CFrame=CFrame.new(0,0,0)*workspace.Part.CFrame.lookVector
--Is this right? |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2015 09:34 PM |
No.
lookVector is just vector to which the object is facing. You can apply it many ways, but I don't know what you're doing. |
|
|
| Report Abuse |
|
|
ash877
|
  |
| Joined: 18 Feb 2008 |
| Total Posts: 5142 |
|
|
| 03 Apr 2015 09:35 PM |
| trying to get the character to face the direction of a part. |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2015 09:37 PM |
| I recommend using a BodyGyro. |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 03 Apr 2015 09:38 PM |
CFrame.new (Vector3.new (0,0,0), workspace.Part.CFrame.lookVector)
http://wiki.roblox.com/index.php?title=CFrame |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2015 09:40 PM |
| Excuse me, Maxomega3, but that moves the player too. Unless you are using that with a BodyGyro, of corse. (Wow, I almost posted even knowing about that typo.) |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Apr 2015 09:41 PM |
local rot = workspace.Part.CFrame - workspace.Part.Position;
plr.Character.Torso.CFrame=CFrame.new(plr.Character.Torso.Position) * rot; |
|
|
| Report Abuse |
|
|
ash877
|
  |
| Joined: 18 Feb 2008 |
| Total Posts: 5142 |
|
|
| 03 Apr 2015 09:41 PM |
| trying to get the character to face the direction of a part. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Apr 2015 09:41 PM |
Oh, face the part...
plr.Character.Torso.CFrame=CFrame.new(plr.Character.Torso.Position, workspace.Part.Position) |
|
|
| Report Abuse |
|
|
ash877
|
  |
| Joined: 18 Feb 2008 |
| Total Posts: 5142 |
|
|
| 03 Apr 2015 09:42 PM |
| thanks. I am trying to move the player :/. |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2015 09:44 PM |
| I know that, ash. That's why I recommended BodyGyros... |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 03 Apr 2015 09:53 PM |
Misread the question, whoops. Yeah, what cntkillme said. |
|
|
| Report Abuse |
|
|