I made a script, when the player equips and clicks with a tool, the animation is put in their humanoid and played! The playing part isn't happening though. Here is my script
wait(1)
script.Parent.Equipped:connect(function(mouse)
mouse.Button1Down:connect(function()
local animation = script.Slash
local plyr = script.Parent.Parent.Name
local char = workspace:FindFirstChild(plyr)
local anim = char.Humanoid:LoadAnimation(animation)
print (anim)
print("done")
end)
end)
Please help!!! Thank you!!!
