I'm using animations that are looped or only have one keyframe. It worked perfectly fine, but after adding a new combat tool, the animation for a different tool will keep playing even after the :Stop(). Is there any possibilities and reasons why this is happening?
game.ReplicatedStorage.FruitRemotes.GomuGomu.Pistol.OnServerEvent:Connect(function(player, hit, fruit)
local pistolAnim = character:WaitForChild("Humanoid"):LoadAnimation(game.ReplicatedStorage.Animations.GomuGomu.PistolAnim)
pistolAnim:Play()
end)
game.ReplicatedStorage.FruitRemotes.GomuGomu.PistolAttack.OnServerEvent:Connect(function(player, hit, fruit)
local oldAnimation = character.Humanoid:LoadAnimation(game.ReplicatedStorage.Animations.GomuGomu.PistolAnim)
oldAnimation:Stop()
