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

idle animation for tool doesnt stop?

Asked by 3 years ago

im making an idle animation for a tool. the animation wont stop tho ;-; it may be in plain sight idk im vary tired.

local Tool = script.Parent
local Animation = Tool.IdleAnim

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

    local AnimationTrack = Humanoid:LoadAnimation(Animation)
    AnimationTrack:Play()
end)
script.Parent.Unequipped:Connect(function()
    local Character = Tool.Parent
    local Humanoid = Character.Humanoid

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

this is a normal script not a local script btw

Answer this question