Issue on R15 height with Humanoid:ApplyAppearance (Character doesn't stand on the ground properly)

I wanna make the character stand properly on the pod despite of it’s height, but differently from applying appearance on R6, the R15 changes it’s height based on the character configutarions.

So we got the default dummy right? it’s height is properly for standing on the pod
image

But when it comes to another appearance (my avatar for example) it can start floating:

Or clip the ground:

A solution i’ve tried is unanchoring and anchoring again, it “kinda” worked but it is definetely not the viable solution.

So is there a way to fix this in a easier way or i am gonna need to rely on hacky methos?

Script:

local idList = {1568877953--[[3020455 9666793, 571377746]]} -- Using that table just to test different characters appearances

for i,v in pairs(idList) do
	local humanoid = script.Parent.Humanoid
	local humDescription = game.Players:GetHumanoidDescriptionFromUserId(v)
	local dummyModel = humanoid.Parent
	
	humanoid.AutomaticScalingEnabled = false
	humanoid:ApplyDescription(humDescription)
	humanoid.AutomaticScalingEnabled = true
	wait(5)
end

I’m having the same problem right now! It’s unfortunate how nobody has replied to this yet. Bumping so people see it again

Found the solution! I made this function to easily set it:

function SetDescription(rig:Model,desc:HumanoidDescription)
	local root=rig.HumanoidRootPart
	local pos=rig.WorldPivot
	root.PivotOffset=CFrame.new(0,-3*desc.HeightScale,0)
	rig:PivotTo(pos)
	rig.Humanoid:ApplyDescription(desc)
end

edit: I tested it with

and it didn’t work :[

edit 2: fixed the issue! updated function:

function SetDescription(rig:Model,desc:HumanoidDescription)
	local root=rig.HumanoidRootPart
	local pos=rig.WorldPivot
	rig.Humanoid:ApplyDescription(desc)
	root.PivotOffset=CFrame.new(0,-desc.HeightScale-rig.Humanoid.HipHeight,0)
	rig:PivotTo(pos)
end