basically what i want is so when i equip my tool, it will play the custom equip animation
but it's not working so yea
here's a snippet of the code i dont know how to change the line numbers in this question thing (line 18 to 33)
staff.Equipped:Connect(function()
--check if the body type is R6 or R15
if character:FindFirstChild("Lower Torso") then--if the body type is R15
local equipR15 = Instance.new("Animation")--makes animation instance
equipR15.AnimationId = "rbxassetid://4967140370"--sets the animation ID
local equipAnimTrackR15 = hum:LoadAnimation("equipR15")
equipAnimTrackR15:Play()
end
if character:FindFirstChild("Torso") then--if body type is R6
local equipR6 = Instance.new("Animation")--makes animation instance
equipR6.AnimationId = "rbxassetid://4967132516"
local equipAnimTrackR6 = hum:LoadAnimation("equipR6")
equipAnimTrackR6:Play()
end
end)
there is nothing in the output pls help

2 comments
are you running on a local script?
yes