So basically I finished making the animations with the basketball, I inserted a motor6d weld into the basketball to animate it. Part0 has the UpperTorso and Part1 as the Ball. I've used a lot of scripts to play the animation and it works but it only moves the body and not the ball I know since its a motor6d tool it'll need a different script but idk how to go about that i've seen videos but none of them help because they're about animation guns with motor6d any help would be appreciated.

this is my script

local Player = game.Players.LocalPlayer
local Humanoid = Player.Character:WaitForChild("Humanoid")

local Tool = script.Parent
local Animation = Instance.new('Animation')
Animation.AnimationId = 'rbxassetid://5356686663'
local AnimationTrack = Humanoid:LoadAnimation(Animation)

Tool.Equipped:Connect(function()
    AnimationTrack:Play()
end)

Tool.Unequipped:Connect(function()
    AnimationTrack:Stop()
end)