Animation doesn't stop on server-side

I have a script that plays a shooting animation, when the player unequips a weapon or just doesn’t shoot, the animation keeps playing on the server, but on the client, there’s no animation playing

I used AnimationTrack:Stop(), but it doesn’t work.

We can’t really diagnose your problem without the script you are using, could you send the code for your weapon?

1 Like

I fixed the problem already, I had to do:

tool.Unequipped:Connect(function()
	local animtracks = character.Humanoid:GetPlayingAnimationTracks()

	for i, track in pairs (animtracks) do
		track:Destroy()
	end
end)
4 Likes