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