|
| 30 Dec 2014 11:05 AM |
game.Workspace.Part.CFrame = game.Workspace.Part * CFrame.fromEulerAnglesXYZ(123, 0, 0)
Doesn't work, Nor am I fimilar with CFraming i'm just interested so i'm testing. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2014 11:07 AM |
game.Workspace.Part.CFrame = game.Workspace.Part.CFrame * CFrame.Angles(math.rad(123), 0, 0)
Explanation: CFrame.Angles is the same as CFrame.fromEulerAnglesXYZ, but it is shorter. You cannot multiply an Instance by a CFrame, so multiply the CFrame. CFrame.Angles takes radians, not degrees. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2014 11:41 AM |
| How would I print the CFrame angles? |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2014 11:44 AM |
| And wouldn't be using rotation be the same as CFrame? |
|
|
| Report Abuse |
|
|
TaslemGuy
|
  |
| Joined: 10 Jun 2009 |
| Total Posts: 12174 |
|
|
| 30 Dec 2014 11:47 AM |
What do you mean by "print the CFrame angles"?
|
|
|
| Report Abuse |
|
|
|
| 30 Dec 2014 11:50 AM |
| Like if I pre-Positioned a part so I could see the angle's it uses then put the angle's into the script. |
|
|
| Report Abuse |
|
|