Egzekiel
|
  |
| Joined: 10 Jan 2011 |
| Total Posts: 1079 |
|
|
| 25 Nov 2014 09:47 AM |
Yo guys, i have a little problem, i did a script to transform myself into a special form for my game, the transformation create a halo that goes on my head, everything is good except that if i try to rotate 180 degrees in x axis, the part turn AROUND the head when i only want it to rotate around itself. Cant give the script right gotta wait tonight. But can someone help me to understand?(I think it has something to do with C0) |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2014 09:51 AM |
Weld.C0 = Weld.C0 * CFrame.fromEulerAnglesXYZ(Vector3) Use radians so 3.1416 should be close enough to 180, even for large objects.
|
|
|
| Report Abuse |
|
|
Egzekiel
|
  |
| Joined: 10 Jan 2011 |
| Total Posts: 1079 |
|
|
| 25 Nov 2014 09:56 AM |
Thanks, i understand now.
local p3=Instance.new("Weld") p3.Parent=char.Head p3.Part0=char.Head p3.Part1=p1 p3.C0 = p3.C0 * CFrame.fromEulerAnglesXYZ(0,2.5,0) p3.C1=CFrame.Angles(math.pi,0,0)
I'm gonna try this. |
|
|
| Report Abuse |
|
|