So basically everything works except the fact that it does not run the animation on the ball. Why is this?
local tool = script.Parent
local handle = tool.Handle
local C = tool.Command
local righthand = tool.RightHand
local Idle = tool.IdleDribble
local animationsFolder = tool.Animations
local RightHandDribble = animationsFolder.RightHandDribble
local function onEquipped()
local char = tool.Parent
if righthand.Value == true then
local Motor6D = Instance.new("Motor6D")
Motor6D.Part0 = handle
Motor6D.Part1 = char.Torso
Motor6D.C0 = handle.CFrame
Motor6D.C1 = char.HumanoidRootPart.CFrame
local humanoid = char.Humanoid
local RightHandIdle = humanoid:LoadAnimation(RightHandDribble)
RightHandIdle:Play()
end
end
tool.Equipped:Connect(onEquipped)

2 comments
mb dont have time to indent
Btw it is supposed to run on both right arm and the handle