Not able to stop all animations?

  1. What do you want to achieve? I want to make the player stop all his animations when he (stops sprinting/unequips the tool)

  2. What is the issue? The animations don’t stop for some reason, I made it check for the animations for 70 times and the animations don’t stop still

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?, I tried stopping the animations called “Animation1”,“Animation”,“Animation2”,“ToolNoneAnim”,“RunAnimation”,“RunWGunAnimation” (RunAnimation,RunWGunAnimation are custom animations) but that didn’t work. | Yes. but none of them worked

here is the model: devforumpost_1 - Roblox

some info:
Put AmmoBoxes in workspace

Is this what you’re looking for


The animation possessed by the player stops

The animation in the tool will start to Play


The animation that the tool possesses stops

You start playing the animations that the player has

1 Like

to get all animation tracks, you can use function known as :GetPlayingAnimationTracks

for i, animation in pairs(player:GetPlayingAnimationTracks()) do
    if animation.Name ~= "" then -- add animation names if you don't want to stop some animations
        animation:Destroy() --delete :Destroy() if it not works
1 Like

It worked!, thank you so much :happy2:

1 Like

You’re welcome.Glad I could help :grinning:

1 Like