|
| 08 Nov 2016 03:16 PM |
| I've tried looking it up on Scriptinghelpers but I haven't had much luck getting the only solution that Google showed me to work. |
|
|
| Report Abuse |
|
|
|
| 08 Nov 2016 03:17 PM |
part.CFrame = part.CFrame * CFrame.Angles(0,math.rad(degrees),0)
if you want global rotation
part.CFrame = CFrame.Angles(0,math.rad(degrees),0) * part.CFrame
|
|
|
| Report Abuse |
|
|
|
| 08 Nov 2016 03:17 PM |
or i think thats global if not then you need to make it rotation relative to the parts current rotation |
|
|
| Report Abuse |
|
|
|
| 08 Nov 2016 03:32 PM |
| Says that "degrees" is an unknown global... |
|
|
| Report Abuse |
|
|
qqtt991
|
  |
| Joined: 14 Dec 2007 |
| Total Posts: 1387 |
|
|
| 08 Nov 2016 03:55 PM |
Okay well, if you don't know how variables work then you're not going to be able to do anything with what you're given here.
You have to define degrees and its value yourself.
|
|
|
| Report Abuse |
|
|
|
| 08 Nov 2016 04:52 PM |
Well duh, it stands for your degree of rotation you put your degrees in there lmao |
|
|
| Report Abuse |
|
|
| |
|