Animation changer not working on some people clients

  1. What do you want to achieve? Change animations on both server and client if player is a different character or has a model in them
  2. What is the issue? Animations end up being junky and not even appearing on some people clients
  3. What solutions have you tried so far? i tried putting the animation changer script itself in the character changer script but it didn’t work
game:GetService('Players').PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(Character)
		Character.ChildAdded:Connect(function(instance)
			if instance.Name == "Model" then
				Character.Animate.idle.Animation1.AnimationId = "rbxassetid://id"
				Character.Animate.idle.Animation2.AnimationId = "rbxassetid://id"
				Character.Animate.walk.WalkAnim.AnimationId = "rbxassetid://id"
			end
		end)
	end)
end)

Note that i am using ChildAdded to identify what type of character the player is by using instance.new model inside the character. Also for some reason roblox couldn’t identify the model name being “IsGiant” so i instead used Instance.Name == “Model” since it worked.

this is a server script and not local correct?

Yes in serverscriptservice

charschars

maybe something like this to ensure the correct anim is there

game:GetService('Players').PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(Character)
		Character.ChildAdded:Connect(function(instance)
			if instance.Name == "Model" then
repeat
task.wait(0.1)
Character.Animate.idle.Animation1.AnimationId = "rbxassetid://id"
until Character.Animate.idle.Animation1.AnimationId == "rbxassetid://id"
			end
		end)
	end)
end)

it worked! thank you! one more thing how do i make the animation change for other properties like walk and jump?

well it looks like u have it right here