Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Animation not playing?

Asked by 9 years ago

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!!!

1 answer

Log in to vote
0
Answered by
1waffle1 2908 Trusted Badge of Merit Moderation Voter Community Moderator
9 years ago

You're missing anim:Play()

Ad

Answer this question