local Humanoid = game.Players.LocalPlayer.Character.Humanoid local ActiveTracks = Humanoid:GetPlayingAnimationTracks() for _,v in pairs(ActiveTracks) do v:Stop() end
Works, but one of my looped idle animations doesn't stop. Is there a fix?
https://scriptinghelpers.org/questions/42820/is-there-a-way-to-stop-all-animations
It Might be a replication of this.
Change all your custom animations' priorities to Action
.
Maybe the problem is not from this code.
Change the priority by this:
local AnimationTrack = Humanoid:LoadAnimation(Your animation here) AnimationTrack.Priority = Enum.AnimationPriority.Action AnimationTrack:Play()--Then play it
local Humanoid = game.Players.LocalPlayer.Character.Humanoid local ActiveTracks = Humanoid:GetPlayingAnimationTracks() for _,v in pairs(ActiveTracks) do v:Stop() -- Stop animationTrack v.Looped = false -- Disable loop end