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

I am trying to make a tool play an animation when I equip it?

Asked by 2 years ago
local Tool = script.Parent
local Animation = Tool.Animation

Tool.Equipped:Connect(function()
    local Character = Tool.Parent
    local Humanoid = Character.Humanoid

    local AnimationTrack = Humanoid:LoadAnimation(Animation)
    AnimationTrack:Play()
end)

https://imgur.com/a/XVVVNeD

This just ends up doing nothing and I don't really know where I made an error

Answer this question