[CLOSED]Copy the avatar of the player joined into a custom Startercharacter

You should mark the post as solved then, I unfortunately seen your message late but I’ve written this code using HumanoidDescription (not tested)

local Players = game:GetService("Players")
local Debris = game:GetService("Debris")
local StarterCharacter = script.StarterCharacter

Players.PlayerAdded:Connect(function(jplr: Player)
	jplr.CharacterAdded:Connect(function(oldchar)
		local modchar = StarterCharacter:Clone()
		local modcharhum = modchar:FindFirstChildWhichIsA("Humanoid")
		
		--// fetch HumanoidDescription
		local success: boolean, humDesc: HumanoidDescription?, tries: number
		tries = 0
		repeat
			tries += 1
			success, humDesc = pcall(Players.GetHumanoidDescriptionFromUserId, Players, jplr.UserId)
		until (success and typeof(humDesc) == "Instance" and humDesc:IsA("HumanoidDescription")) or (tries > 3)
		
		if success and humDesc then
			modcharhum:ApplyDescription(humDesc)
			jplr.Character = modchar
			Debris:AddItem(oldchar, 1/30)
		else
			warn("Failed to setup character, unable to get HumanoidDescription.\n", humDesc)
		end
	end)
end)
1 Like

They didnt solve it on this post

But thank you for trying to help me, seriously thank you so much.

1 Like

If you still can’t get it to work, it most likely means your character is not really the same as R15/R6 rigs so if that is the case then, try getting the original character from one of those functions, go through every accesory, manually reposition (take in account for the custom position datas on the Accesory aswell btw) and weld them with Motor6D/Weld, then override the character. (make sure to also remove the old character and set the camera to the humanoid on the new character at the client)

1 Like