What do you want to achieve? I want to make the player stop all his animations when he (stops sprinting/unequips the tool)
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
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
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:Stop()
animation:Destroy() --delete :Destroy() if it not works
end
end