Hey! This been stumbling me for the past 2 days. I made a rig for my sword, with motor6d and it works in the animation editor (showing where I want it and all)
But for some reason, the sword doesn’t look right at all when I test.
My Code that adds the Motord6d Upon Join (Odachi is the weapon)
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local odachi = game.ServerStorage.Weapon:FindFirstChild("Odachi"):Clone()
odachi.Parent = character
local motord6d= Instance.new("Motor6D")
motord6d.Name = 'Blade'
motord6d.Part0 = character:FindFirstChild("RightHand")
motord6d.Part1 = odachi
motord6d.Parent = character:FindFirstChild("RightHand")
--//Sheath
local sheath = game.ServerStorage.Weapon.Sheathe:Clone()
sheath.Parent = character
local w = Instance.new("Weld")
w.Part0 = character:FindFirstChild("HumanoidRootPart")
w.Part1 = sheath
w.C0 = CFrame.new(-1,-0.8,0.2) * CFrame.Angles(math.rad(-360),math.rad(275),math.rad(180))
w.Parent = sheath
end)
end)
Anyone can help me fix this?