How to stop all animations playing on the client from the server?

I’m playing animations on the client and tried to stop them from the server but it doesn’t seem to do anything

Code in server sided script:

	for i,v in pairs(h.Animator:GetPlayingAnimationTracks()) do
		v:Stop()
	end

i’ve had a similar issue where i have tried to stop sounds that were playing on the client via a server script. My solution was to stop them in the same ClientScript i used to play them. So you would need to run the for loop with in the same ClientScript you used to play the sounds
(hope this helps)

The server and client are separate environments with limited direct interaction…
The server cannot directly manipulate client-side objects like Animator or AnimationTracks . Instead, you need to use RemoteEvents or RemoteFunctions to communicate between the server and client.