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

Idle animation for punching tool does not stop when you die and unequipped it? (STILL NOT ANSWERED)

Asked by
Rdumb1 4
5 years ago
Edited 5 years ago

Can someone tell me why my idle animation just doesn't stop when I die and unequipped it? I even put this at the end of the local script for the animations.

problem: doesn't stop the idle animation when I die then unequip it. the idle animation is looped and the priority is idle.

code:

tool.Unequipped:connect(function()
local hum = char:WaitForChild("Humanoid")
for _,anim in pairs(hum:GetPlayingAnimationTracks()) do
anim:Stop()
end
end)

can someone please fix this?

1
omg pls use Connect damnit LoganboyInCO 150 — 5y
1
omg pls use Connect damnit LoganboyInCO 150 — 5y
1
Where are you loading the idle animation? SerpentineKing 3885 — 5y
0
I put the animations inside the local script. Rdumb1 4 — 5y
View all comments (14 more)
0
not seeing what char is maybe because you have not defined it? aandmprogameing 52 — 5y
0
Ok so _,anim is not a good, please use a variable like k,anim aandmprogameing 52 — 5y
0
I didn't show the whole script since its pretty hard tryna code block. Rdumb1 4 — 5y
0
But I defined what char is at the beginning of the local script. local char = plr.Character or plr.CharacterAdded:wait() Rdumb1 4 — 5y
0
so any solutions? Rdumb1 4 — 5y
0
um.. I still got the problem Rdumb1 4 — 5y
0
I would just do a script like this: aandmprogameing 52 — 5y
0
tool.Unequipped:Connect(function() aandmprogameing 52 — 5y
0
anim:Stop() aandmprogameing 52 — 5y
0
end) aandmprogameing 52 — 5y
0
could you describe it to me on answer? Rdumb1 4 — 5y
0
well that wouldn't stop the idle animation. Rdumb1 4 — 5y
0
hey um... I still need some help. Rdumb1 4 — 5y
0
hello??? Rdumb1 4 — 5y

Answer this question