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?
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
When I said Idle I didn't mean the animation priority. It's been at Action, it's just looped and when I run my code, the looped animation wouldn't stop.
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
All this code does is stop any animation once it starts playing, breaking my code. The problem from my original code was that if a looped animation was playing, it wouldn't stop.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
That's the script I'm using. Same problem. Did you even read my code?