sword = workspace.Sword
game.Players.PlayerAdded:Connect(function(plr)
plr = game.Workspace:WaitForChild(plr.Name)
local cSword = sword:Clone()
cSword.Parent = game.Workspace[plr.Name]
cSword.Position = plr.RightHand.Position
local swordPartWeld = Instance.new("Motor6D")
swordPartWeld.Parent = cSword.Welds
swordPartWeld.Part0 = cSword
swordPartWeld.Part1 = cSword.Part
swordPartWeld.C0 = cSword.CFrame
swordPartWeld.C1 = cSword.Part.CFrame
local handPartWeld = Instance.new("Motor6D")
swordPartWeld.Parent = cSword.Welds
swordPartWeld.Part0 = plr.RightHand
swordPartWeld.Part1 = cSword
swordPartWeld.C0 = plr.RightHand.CFrame:Inverse()
swordPartWeld.C1 = cSword.CFrame:Inverse()
end)
I have a like a Sword that is made of 2 parts. The first part which I would call it the Handle but the name of it is "Sword" and then inside Sword there's another part called "Part".
So I'm trying to do a Motor6D to weld it to the hand and then be able to animate with it. And my problem is that I don't know a lot about Motor6D.
Could anyone explain me the propeties or how can they work, please?

4 comments
I dont undersand what C0 and C1 are
C0 is the position aspect of the orientation between two parts in a weld.
and C1?
C1 is the same, but for the other part...like Part0 has the C0 and Part1 has the C1...you're giving them directions on how and where to interact basically