I have a rig set up in a WorldModel in a ViewportFrame, and this rig has a humanoid created locally on the client. I apply a HumanoidDescription to the humanoid, and I want it to look like the player so I get the HumanoidDescription with players:GetHumanoidDescriptionFromUserId(). Everything works fine, however every body part except the head is unaffected. All accessories load in correctly, and so does the head, but the torso, arms, and legs remain unchanged.
Here’s the code that changes the appearance of the rig. It is a LocalScript.
--Load player avatar viewport
local avatar = viewCharacters:WaitForChild("Avatar") --this variable is the rig
local avatarHumanoid = Instance.new("Humanoid", avatar)
avatarHumanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
local humanoidDescription = players:GetHumanoidDescriptionFromUserId(localPlayer.UserId)
avatarHumanoid:ApplyDescription(humanoidDescription)
There are no errors.
-
What do you want to achieve? I want to make a rig inside a WorldModel inside a ViewportFrame look like the LocalPlayer.
-
What is the issue? The torso, arms, and legs aren’t loaded properly.
-
What solutions have you tried so far? I searched for similar posts, but found no solution.
I need a HumanoidDescription because I need the rig to look like the player’s avatar, so just adding some preset accessories and have no HumanoidDescription won’t work. I checked the explorer and there are new instances created by the HumanoidDescription, but don’t visually appear in the viewport.