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

idle animation for tool doesn't stop?

Asked by 3 years ago

the animation starts playing just fine! but it wont stop. i have no clue how to fix this. pls help lol

this is a repost btw bc the last one didn't get any response. (and a 2nd time when i deleted the question by mistake, woops)

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)
0
Just the code for this won't be enough. Perhaps show us how the animation looks like in the editor? Soban06 410 — 3y

Answer this question