I've prepared a script that should create a series of joints between parts in order to form not only hips and shoulders, but elbows and knees as well. When I run the instance, the model sticks together correctly, however, When I try to select it with the animation editor , the output says, 'Animedit only supports Motor6D with Parent == Part0 or Part1' There is a part labeled HumanoidRootPart, I've tried inserting a humanoid or alternatively , an animation controller. Below is the code, as well as a link to the actual model. Thanks in advance for any help you can offer!
http://www.roblox.com/Project-Anima-Broken-item?id=304227572 --The Model
--------------Welds------------------
local Body = script.Parent
local W1 = Instance.new("Weld" , game.JointsService)
W1.Parent = Body.HumanoidRootPart
W1.Part0 = Body.Spine
W1.Part1 = Body.Chest
W1.C0 = CFrame.new(0,1.2,0)
W1.C1 = CFrame.new(0,0,0)
local W2 = Instance.new("Weld" , game.JointsService)
W2.Parent = Body.HumanoidRootPart
W2.Part0 = Body.Spine
W2.Part1 = Body.Pelvis
W2.C0 = CFrame.new(0,-1.3,0)
W2.C1 = CFrame.new(0,0,0)
local W3 = Instance.new("Weld" , game.JointsService)
W3.Parent = Body.HumanoidRootPart
W3.Part0 = Body.Spine
W3.Part1 = Body.HumanoidRootPart
W3.C0 = CFrame.new(0,0,0)
W3.C1 = CFrame.new(0,0,0)
-----------------Joints-------------------
local M1 = Instance.new("Motor6D" , game.JointsService)
M1.Name = "LeftElbow"
M1.Parent = Body.HumanoidRootPart
M1.Part0 = Body.LeftArm
M1.Part1 = Body.LeftForearm
M1.C0 = CFrame.new(0,-1.7,0) * CFrame.Angles(math.rad(20),0,0)
M1.C1 = CFrame.new(0,0,0.3)
local M2 = Instance.new("Motor6D" , game.JointsService)
M2.Name = "RightElbow"
M2.Parent = Body.HumanoidRootPart
M2.Part0 = Body.RightArm
M2.Part1 = Body.RightForearm
M2.C0 = CFrame.new(0,-1.7,0) * CFrame.Angles(math.rad(20),0,0)
M2.C1 = CFrame.new(0,0,0.3)
local M3 = Instance.new("Motor6D" , game.JointsService)
M3.Name = "LeftShoulder"
M3.Parent = Body.HumanoidRootPart
M3.Part0 = Body.Chest
M3.Part1 = Body.LeftArm
M3.C0 = CFrame.new(-1.4,-0.8,0) * CFrame.Angles(0,0,0)
M3.C1 = CFrame.new(0,0,0)
local M4 = Instance.new("Motor6D" , game.JointsService)
M4.Name = "RightShoulder"
M4.Parent = Body.HumanoidRootPart
M4.Part0 = Body.Chest
M4.Part1 = Body.RightArm
M4.C0 = CFrame.new(1.4,-0.8,0) * CFrame.Angles(0,0,0)
M4.C1 = CFrame.new(0,0,0)
local M5 = Instance.new("Motor6D" , game.JointsService)
M5.Name = "LeftHip"
M5.Parent = Body.HumanoidRootPart
M5.Part0 = Body.Pelvis
M5.Part1 = Body.LeftThigh
M5.C0 = CFrame.new(1.2,-0.8,0) * CFrame.Angles(math.rad(10),0,0)
M5.C1 = CFrame.new(0,0,0.3)
local M6 = Instance.new("Motor6D" , game.JointsService)
M6.Name = "RightHip"
M6.Parent = Body.HumanoidRootPart
M6.Part0 = Body.Pelvis
M6.Part1 = Body.RightThigh
M6.C0 = CFrame.new(-1.2,-0.8,0) * CFrame.Angles(math.rad(10),0,0)
M6.C1 = CFrame.new(0,0,0.3)
local M7 = Instance.new("Motor6D" , game.JointsService)
M7.Name = "LeftKnee"
M7.Parent = Body.HumanoidRootPart
M7.Part0 = Body.LeftThigh
M7.Part1 = Body.LeftCalf
M5.C0 = CFrame.new(0,-1.7,0.15) * CFrame.Angles(math.rad(-10),0,0)
M5.C1 = CFrame.new(0,0,0)
local M8 = Instance.new("Motor6D" , game.JointsService)
M8.Name = "RightKnee"
M8.Parent = Body.HumanoidRootPart
M8.Part0 = Body.RightThigh
M8.Part1 = Body.RightCalf
M6.C0 = CFrame.new(0,-1.7,0.15) * CFrame.Angles(math.rad(-10),0,0)
M6.C1 = CFrame.new(0,0,0)
Body.HumanoidRootPart.RootHip.Part0 = Body.HumanoidRootPart
Body.HumanoidRootPart.RootHip.Part1 = Body.Spine
wait(1)
script:remove()
