Humanoid Character Animation Works only on Client-Side and not Replicating to Server

I’m working on a team-based game where depending on your team, your character model will change to the character model affiliated with the team. However, I stumbled across a problem that’s got me stuck in the road. When the player moves, the animation related to the movement plays, but only on the client-side and not being replicated to the server. When I take the character model from one of the teams and set it as a StarterCharacter model, the animation replicates to the server. Perhaps maybe how I change the player character model to the team models is the reason?

On Teams:

StarterCharacter:

Heres a portion from my code that handles the player character model to change to a different character model. (I’m using an Enhanced for loop)

   		local Char = game.ReplicatedStorage.Hewbert:Clone()
   		local Pos = v.Character:GetPrimaryPartCFrame()
   		v.Character:Destroy()
   		v.Character = Char
   		Char.Parent = workspace
   		Char:SetPrimaryPartCFrame(Pos)
   		v.Character.Torso.CFrame = game.Workspace.Spawns.Huberts.CFrame + Vector3.new(0,5,0)
3 Likes

I would double check to make sure that your animations (if they are custom especially) are a child of the Animator script in Player.Humanoid. If they aren’t they won’t load properly and replicate to all clients. Since you’re using a custom character model that might be the problem, in which case you just need to make sure your animations are loaded in properly with Humanoid:LoadAnimation().

3 Likes