Force r6 from script

Hey guys!

So I am trying to morph a plr back into their original roblox avatar. They are currently in a morphed state and I want to revert them back through a script. I am able to fetch their original humanoidModel through CreateHumanoidModelFromUserId(plr.UserId) but this may result in an r15 rig despite my game’s settings being set strictly to r6.

Does anybody know how to fix this? LMK if you need clarification as to my problem.

I apologize but I finally found the solution. (I was working for 45 minutes before initial post).

To any future people seeing this, the solution is using this function to get the humanoidDesc

local function fetchHumanoidDescription(player: Player): HumanoidDescription?
	if not player then
		warn("Player not provided.")
		return nil
	end

	local humanoidDescription
	local success, errorMessage = pcall(function()
		humanoidDescription = game.Players:GetHumanoidDescriptionFromUserId(player.UserId)
	end)

	if not success then
		warn("Failed to fetch HumanoidDescription for player:", player.Name, "-", errorMessage)
		return nil
	end

	return humanoidDescription
end

and then using this line to get the r6 char:

game:GetService("Players"):CreateHumanoidModelFromDescription(desc, Enum.HumanoidRigType.R6, Enum.AssetTypeVerification.Always)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.