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()
end)
The code used to work, but now it doesn't. Could it possibly be a bug?

8 comments
hmm ill look into it
Thanks!
It most likely only works once, try adding a loop to stop the music more than once..
https://developer.roblox.com/en-us/api-reference/function/Sound/Stop
I'm using Animations, but I'll give that a try
Didn't work. I even checked if it printed, and it did. This is sooo weird...
When you stop an animation, it will continue until it's animation track is over.
Well it worked last time, now it all of a sudden doesn't.