Bug on custom rig

local players = game.Players
players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
		local HumanoidDesc = players:GetHumanoidDescriptionFromUserId(player.UserId)
		HumanoidDesc.Head = 100
		HumanoidDesc.LeftArm = 100
		HumanoidDesc.LeftLeg = 100
		HumanoidDesc.RightArm = 100
		HumanoidDesc.RightLeg = 100
		HumanoidDesc.Torso = 100
		char:FindFirstChildWhichIsA("Humanoid"):ApplyDescription(HumanoidDesc)
		wait() 
		char.HumanoidRootPart.Anchored = false
	end)
end)

It goes with the correct size, but the avatar doesn’t load. Any idea why? (shirts, pants, accessesories, etc dont load, only the size) It’s a Script in ServerScriptService.

instead of char:FindFirstChildWhichIsA("Humanoid"):ApplyDescription(HumanoidDesc) (gave me this error in output: Humanoid::ApplyDescription() HumanoidDescription has the same asset used in more than one property)

I would use this:

char:FindFirstChild("Humanoid"):ApplyDescription(players:GetHumanoidDescriptionFromUserId(player

Im not sure why but this somehow worked for me…
Hope this helps!

1 Like
local Enumeration = Enum
local Game = game
local Players = Game:GetService("Players")

local function OnPlayerAdded(Player)
	local function OnCharacterAdded(Character)
		if not Player:HasAppearanceLoaded() then Player.CharacterAppearanceLoaded:Wait() end
		local Humanoid = Character:FindFirstChildOfClass("Humanoid") or Character:WaitForChild("Humanoid")
		local HumanoidDescription = Humanoid:GetAppliedDescription()
		for _, BodyPart in ipairs(Enumeration.BodyPart:GetEnumItems()) do
			HumanoidDescription[BodyPart.Name] = 0
		end
		Humanoid:ApplyDescription(HumanoidDescription)
	end

	Player.CharacterAdded:Connect(OnCharacterAdded)
end

Players.PlayerAdded:Connect(OnPlayerAdded)

‘0’ is the default value for limbs not ‘100’. Assuming you want all characters to use default limbs.