Spawning character with LoadCharacterWith-HumanoidDescription creates a gap in the character's body?

  1. What do you want to achieve?
    I want the player’s character to be spawned, but green, have some custom clothe and pants and spawn bigger

  2. What is the issue?
    The character spawns OK, with the size I give, but after I resize it to size 1, it has a gap.

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

This is what I do when the size of the character is loaded from the server

		local hd =  Players:GetHumanoidDescriptionFromUserId(userId)
		
		hd.DepthScale = valueClamped
		hd.WidthScale = valueClamped
		hd.HeightScale = valueClamped
		hd.HeadScale = valueClamped * .5
		
		p:LoadCharacterWithHumanoidDescription(hd)	

This is the way I resize the character:

function SetSize(userId, value)
	local humanoid = humanoids[userId]
	
	local valueRounded = tonumber(string.format("%0.1f", value))
	
	local valueClamped = math.clamp(valueRounded, 1, MAX_SIZE)
	
	local sizeChanged = EPSILON < math.abs(humanoid.BodyWidthScale.Value - valueClamped)
	
	humanoid.BodyWidthScale.Value = valueClamped
	humanoid.BodyDepthScale.Value = valueClamped
	humanoid.BodyHeightScale.Value = valueClamped
	humanoid.HeadScale.Value = valueClamped * .5
	
	if sizeChanged then
		local charPrimaryPart = characters[userId].PrimaryPart
		charPrimaryPart.Position = Vector3.new(charPrimaryPart.Position.X, charPrimaryPart.Position.Y + value, charPrimaryPart.Position.Z)
	end
	

end