I welded a sword to a character as soon as they spawn, but the motor6D keeps causing the character to fall over as soon as they spawn, I know what’s causing this, I just don’t know how I would come by fix it…
Image of the problem:
Reason why I couldn’t upload a video is because my internet’s not doing great right now, everytime I tried to upload a video, it failed.
This is the script I’m using
plr_ser.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(chr)
local right_arm = chr:WaitForChild("Right Arm")
local sword = rep_ser.WeaponModels.Longsword.Handle:Clone()
sword.Parent = chr
sword:PivotTo(right_arm.CFrame)
local motor6d = Instance.new("Motor6D")
motor6d.Part0 = right_arm
motor6d.Part1 = sword
motor6d.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-90),0,0)
motor6d.C1 = CFrame.new(0, -2, 0)
motor6d.Parent = right_arm
sword:PivotTo(sword.CFrame * rotation)
end)
end)