Hey my friend has animated a katana with sheath for a fighting class and I’m trying to attach it to the character with Motor6Ds. However something goes very wrong.
Expected result:
Actual result:
The code below is me copying the C0 and C1 from the Motor6Ds in the animated dummy and remaking them into the player’s character… Is this not the right way to weld? Can I do something do fix this? Or do I need a completely different method??
local set = rip.Models.DaishoSet:Clone()
set.Parent = character
local weldS1K = Instance.new("Motor6D")
weldS1K.C0 = CFrame.new(-1.223, -1.175, 1.338); weldS1K.C0 = CFrame.Angles(0, -94, -17);
weldS1K.C1 = CFrame.new(0, 0, 0); weldS1K.C1 = CFrame.Angles(0, 0, 0)
weldS1K.Part0 = character.Torso
weldS1K.Part1 = set.Katana.Sheath1K
weldS1K.Parent = character["Torso"]
local weldS1W = Instance.new("Motor6D")
weldS1W.C0 = CFrame.new(-1.067, -0.845, 0.79); weldS1W.C0 = CFrame.Angles(-0, -93, -4);
weldS1W.C1 = CFrame.new(0, 0, 0); weldS1W.C1 = CFrame.Angles(0, 0, 0)
weldS1W.Part0 = character.Torso
weldS1W.Part1 = set.Wakizashi.Sheath1W
weldS1W.Parent = character["Torso"]
local katana = rip.Models.Katana:Clone()
katana.Parent = character
local weldK = Instance.new("Motor6D")
weldK.C0 = CFrame.new(-0.012, -0.965, 0.087); weldK.C0 = CFrame.Angles(0, 90, -0);
weldK.C1 = CFrame.new(0, 0, 0); weldK.C1 = CFrame.Angles(0, 0, 0)
weldK.Part0 = character["Right Arm"]
weldK.Part1 = katana.HandleK
weldK.Parent = character["Right Arm"]