I coded a tool to play an animation when equipped but it does not play when equipped.Could someone explain the reason for it?
local Humanoid = game.Players.LocalPlayer.Character.Humanoid
local anim=Instance.new("Animation")
anim.Name = "Drawanim"
anim.AnimationId = 'http://www.roblox.com/asset/?id=305299714'
anim.Parent = workspace
script.Parent.Equipped:connect(function (idk)
local playanim = Humanoid:LoadAnimation(anim)
playanim:Play()
end)

2 comments
nvm,the script was fine,just the animation was incorrect.Sorry for posting this.
Remove it then please. or put [SOLVED] in the title to spare people some time.