Animation Stopped event not running

I want to run a callback function upon the animation stopping.

The .Stopped event doesn’t work, I have tried using AnimationTrack.Stopped:Wait() and AnimationTrack.Stopped:Connect(function().

-- Framework Class
function Framework:Reload()
	if Disabled then return end
	if not CurrentModule then return end
	
	--//
	local Data = CurrentModule:GetData()
	local Ammo = Data.Ammo.Primary
	
	--// Animation
	if Ammo <= 0 then
		ViewmodelPlugin:PlayAnimation("Reload", ReloadingPlugin:ReloadNormal(Data))
	else
		ViewmodelPlugin:PlayAnimation("ReloadEmpty", ReloadingPlugin:ReloadNormal(Data))
	end
end
--Viewmodel Class
function Viewmodel:PlayAnimation(Name, Callback)
	Animations[Name]:Play()
	
	if Callback then
		Animations[Name].Stopped:Connect(function()
			print("Stopped!")
		end)
	end
end

No clue why this is not working.

I don’t have to much experience in animations but you would want to do AnimationTrack.Stopped:Wait()

If possible could you show how you setting up your “Animations” table?

Try adding a print right after the if Callback then just to make sure Callback is really true.

If the animation belongs to only one player, then you should play it on their client and the animation will replicate to the other clients (as long as the Animator is a descendant of a players character).