generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Issue with fake arms

Previous Thread :: Next Thread 
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
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
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
22 Aug 2015 11:44 AM
luv me

Private Road - Residents Only
Report Abuse
Funse is not online. 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
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
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 is not online. Funse
Joined: 11 Jun 2012
Total Posts: 7887
22 Aug 2015 11:48 AM
Yeah you can.^
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
22 Aug 2015 11:54 AM
It says incompatible.

Private Road - Residents Only
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
22 Aug 2015 12:23 PM
Try this:
la2.Rotation = la2.Rotation + Vector3.new(-10,-5,0)
Report Abuse
Casualist is not online. 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
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
22 Aug 2015 01:36 PM
It doesn't work, but doesn't read an error

Private Road - Residents Only
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image