Animation doesn't replicate from server to client

This is a super strange issue. I’m loading an animation on the server when a character spawns in.
How it looks on one client:
image
How it looks on another client:
image
How it looks on the server:
image
For some reason, animations are not replicating from the server to the client.
Here’s the code: (Simplified)

	Player.CharacterAdded:Connect(function(Character)
		-- Animations:
		local Animations = {
			18379761213,
			18379830516,
			18379820444
		}
		local Animator : Animator = Humanoid:WaitForChild("Animator")
		local Animation = Instance.new("Animation")
		Animation.AnimationId = "rbxassetid://"..Animations[math.random(1, #Animations)]
		local Anim = Animator:LoadAnimation(Animation)
		Anim:Play()
	end)

Could we see the full code? and where it is located? Also some more context might help a bit lol.

I fixed it by setting the animation on the client.
Thanks for your help, though!

1 Like