|
| 29 Jul 2017 12:11 AM |
i need a script for a part that rotates pls
R$3,610 i need forum posts |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2017 12:12 AM |
| part.CFrame = part.CFrame*CFrame.Angles(AngleX,AngleY,AngleZ) |
|
|
| Report Abuse |
|
|
Briicks
|
  |
| Joined: 03 Apr 2015 |
| Total Posts: 1796 |
|
|
| 29 Jul 2017 12:12 AM |
someone will prob give you one, but this is for helping not making free scripts, use CFrame for this, look it up.
|
|
|
| Report Abuse |
|
|
|
| 29 Jul 2017 12:15 AM |
ty bb
R$3,610 i need forum posts |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2017 12:30 AM |
Question, why do you multiply CFrame instead of add?
R$3,610 i need forum posts |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
| |
|
|
| 29 Jul 2017 12:33 AM |
I guess lol
R$3,610 i need forum posts |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2017 12:34 AM |
CFrame is the position of said part.
CFrame.fromEulerAnglesXYZ is the rotation of said part.
Basically, you are telling Studio that take this part, place it here (by CFrame), and rotate the part from that CFrame by those angles. |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2017 12:40 AM |
Casualist is right, but to elaborate:
You CAN add the Vector3 components of CFrames. This is called a translation because you are shifting it. Rotating a CFrame requires multiplication because it is a transformation (in particular, a linear transformation, hence Casualist's answer), which is a bit more complex than just shifting. |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 29 Jul 2017 12:50 AM |
| You can't really add a Vector3 and a CFrame as they aren't the same dimension. someCFrame+someVector3 from a maths perspective is really CFrame.new(someVector3)*someCFrame. |
|
|
| Report Abuse |
|
|