Dondonini
|
  |
| Joined: 21 Dec 2007 |
| Total Posts: 734 |
|
| |
|
Robain
|
  |
| Joined: 10 Oct 2008 |
| Total Posts: 349 |
|
|
| 02 Jan 2012 04:20 AM |
print(workspace.Part's name here.CFrame)
Duh.. |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 02 Jan 2012 07:42 AM |
| I don't get it why some 07'ers only know some of Lua. |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2012 08:50 AM |
@Robain
Really? Thats not in Vector3. |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
| |
|
|
| 02 Jan 2012 08:56 AM |
| I think hes trying to get just the rotation in Vector3. Thats not possible because the rotation is a 9 number matrix. |
|
|
| Report Abuse |
|
|
Fl0x
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 5169 |
|
|
| 02 Jan 2012 09:18 AM |
Part.CFrame.lookVector Is a Vector3 which is the facing direction where a part looks to by his front side. Part.CFrame:toEulerAnglesXYZ() Returns it's rotation in a Vector3. |
|
|
| Report Abuse |
|
|
Dondonini
|
  |
| Joined: 21 Dec 2007 |
| Total Posts: 734 |
|
| |
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 02 Jan 2012 03:52 PM |
| Oh so you ment you want to know which way the part is facing? |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2012 04:00 PM |
| I thought you meant get rotation from a vector3. Yes, CFrame.lookVector gives you the unit vector of the direction. |
|
|
| Report Abuse |
|
|