|
| 22 Aug 2015 11:30 AM |
So I made the real arms transparent, made new, visible arms, I've got a working weld, my issue now is positioning them.
The error:1 7:25:03.067 - attempt to multiply a Vector3 with an incompatible value type or nil
Le code:
weld1.C0 = la2.CFrame:inverse() weld1.C1 = torso.CFrame:inverse() weld1.Part0 = la2 weld1.Part1 = torso weld2.C0 = ra2.CFrame:inverse() weld2.C1 = torso.CFrame:inverse() weld2.Part0 = ra2 weld2.Part1 = torso la2.Rotation = la2.Rotation * CFrame.Angles(math.rad(-10), math.rad(-5), 0)-- From here on it breaks la2.Position = la2.Position * CFrame.new(0,-0.7,0.2) --Y, X, Z
ra2.Rotation = ra2.Rotation * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(90)) ra2.Position = ra2.Position * CFrame.new(0.5, 0, 1.3) -- x y z wait(0.1)
4th time I have tried to post this! Private Road - Residents Only |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2015 11:44 AM |
luv me
Private Road - Residents Only |
|
|
| Report Abuse |
|
|
Funse
|
  |
| Joined: 11 Jun 2012 |
| Total Posts: 7887 |
|
|
| 22 Aug 2015 11:47 AM |
Rotation is Vector3.
Try this?
Vector3.new(la2.Rotation * CFrame.Angles(math.rad(-10), math.rad(-5), 0)) |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2015 11:47 AM |
| I'm guessing cause Rotation is a Vector3 Value and you can't multiply vector3's w/ cframe's |
|
|
| Report Abuse |
|
|
Funse
|
  |
| Joined: 11 Jun 2012 |
| Total Posts: 7887 |
|
| |
|
|
| 22 Aug 2015 11:54 AM |
It says incompatible.
Private Road - Residents Only |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2015 12:23 PM |
Try this: la2.Rotation = la2.Rotation + Vector3.new(-10,-5,0) |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 22 Aug 2015 12:33 PM |
Order matters:
[x.x y.x z.x p.x]*[v.x] [x.y y.y z.y p.y] [v.y] [x.z y.z z.z p.z] [v.z] [000 000 000 001] [001]
Is not the same as
[v.x]*[x.x y.x z.x p.x] [v.y] [x.y y.y z.y p.y] [v.z] [x.z y.z z.z p.z] [001] [000 000 000 001]
That said, you can multiply CFrames by vectors, but cannot multiply vectors by CFrames.
weld1.C0 = la2.CFrame:inverse() weld1.C1 = torso.CFrame:inverse() weld1.Part0 = la2 weld1.Part1 = torso weld2.C0 = ra2.CFrame:inverse() weld2.C1 = torso.CFrame:inverse() weld2.Part0 = ra2 weld2.Part1 = torso la2.Rotation = CFrame.Angles(math.rad(-10), math.rad(-5), 0)*la2.Rotation -- From here on it breaks la2.Position = CFrame.new(0,-0.7,0.2)*la2.Position --Y, X, Z
ra2.Rotation = CFrame.Angles(math.rad(-16), math.rad(0), math.rad(90))*ra2.Rotation ra2.Position = CFrame.new(0.5, 0, 1.3)*ra2.Position -- x y z wait(0.1)
|
|
|
| Report Abuse |
|
|
|
| 22 Aug 2015 01:36 PM |
It doesn't work, but doesn't read an error
Private Road - Residents Only |
|
|
| Report Abuse |
|
|