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)