Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make custom joints in an NPC that is 2/5 of the normal size?

Asked by 9 years ago

Hello! I am currently scripting an NPC that is 2/5 the size of a normal NPC. (arms and legs are (0.4,0.8,0.4) and torso is (0.8,0.8,0.4,) I have an animation loop for the character and I found that I need joints for it to work. (Duh) I tried adding motor6d joints and change the properties with a script like this:

LHP = Hum:FindFirstChild("Left Leg")
LH = Tor:FindFirstChild("Left Hip")

LH.Part0 = Tor
LH.Part1 = LHP
LH.C0 = CFrame.new(Vector3.new( 0.2 , -0.4 , 0 ) )--I think this is where something is wrong as it sets Part1 and Part0 (Not sure if it sets the C0 and C1 correctly.
LH.C1 = CFrame.new(Vector3.new( 0 , 0.4 , 0 ) )

The animation plays but without moving the arms or legs. So how can I make them move? Any help?

Answer this question