Animations not stopping server side

I got an custom animate, that when i’m changing the animations, for some reason the animations only stop on the client

server:
image

client:
image

This is the line that i used to update the animations (i used a boolean value to update them)

script.UpdateAnimations:GetPropertyChangedSignal("Value"):Connect(function()
	LockAnimations = true
	
	task.wait()
	
	WalkAnimation = Animator:LoadAnimation(script.Animations.WalkAnimation)
	RunAnimation = Animator:LoadAnimation(script.Animations.RunAnimation)
	JumpAnimation = Animator:LoadAnimation(script.Animations.JumpAnimation)
	FallingAnimation = Animator:LoadAnimation(script.Animations.FallingAnimation)
	IdleAnimation = Animator:LoadAnimation(script.Animations.IdleAnimation)
	ClimbingAnimation = Animator:LoadAnimation(script.Animations.ClimbingAnimation)
	LandingAnimation = Animator:LoadAnimation(script.Animations.LandingAnimation)
	SeatAnimation = Animator:LoadAnimation(script.Animations.SitAnimation)
	
	task.wait()
	
	LockAnimations = false
	
	for a, anim in pairs(Hum:GetPlayingAnimationTracks()) do
		anim:Stop()
	end
end)
2 Likes

image

I had to add an server side script inside the client one so the client one could send the signal to update the animations server side too…

that was my solution for now