How to fix animation stacking bug?

ok so
image
you see there are 4 rigs here, they all have same parts and the parts are arms and hrp with humanoid. but when i play individual anims on all of them like

fhrp.MahitoArm1.Humanoid.Animator:LoadAnimation(game.ReplicatedStorage.Movesets.IdleTransfiguration.Anims.DomainA1):Play()
fhrp.MahitoArm2.Humanoid.Animator:LoadAnimation(game.ReplicatedStorage.Movesets.IdleTransfiguration.Anims.DomainA2):Play()
fhrp.MahitoArm3.Humanoid.Animator:LoadAnimation(game.ReplicatedStorage.Movesets.IdleTransfiguration.Anims.DomainA3):Play()
fhrp.MahitoArm4.Humanoid.Animator:LoadAnimation(game.ReplicatedStorage.Movesets.IdleTransfiguration.Anims.DomainA4):Play()

they try to play all anims together. how can i fix that?

you need to elaborate more, sorry

1 Like

let me send a video comparing what should happen and what happens

thats what should happen

thats what happens

that’s rather… odd

to be honest i have no clue :sob:

1 Like

so how can i fix that lol because i have to fix that until next weekend

To be honest I’m sorta confused by what you mean but if you are talking about animations overriding each other for some reason. You can do this:

local tracks = animator:GetPlayingAnimationTracks()
for i, track in tracks do
if track.IsPlaying then
track:Stop()
end
-- MAKE SURE YOU DO THIS OUTSIDE THE FOR LOOP AND UNDER IT
local wantedtrack = animator:LoadAnimation(animation)
wantedtrack:Play()