How to get parts to work with Motor6d animations

script.Parent.Touched:Connect(function(hit)
	local char = hit.Parent
	local ball = script.Parent
	local hum = char:FindFirstChild("HumanoidRootPart")
	
	local motor = Instance.new("Motor6D")
	motor.Parent = ball
	motor.Part0 = hum
	motor.Part1 = ball
	
	local a = char.Humanoid.Animator:LoadAnimation(script.Parent.Animation)
    a:Play()	
end)

here is the script, How do I get the ball to animate aswell?