I can't change head mesh id, adding special mesh wont work

" The MeshId is the content ID of the mesh that is to be displayed on the MeshPart.

Note that this property currently cannot be changed by scripts as the collision model of the mesh cannot be recomputed during runtime. Developers should not rely on this behavior as it may change in the future. Those looking for a custom mesh object that can be updated during runtime should use SpecialMesh."

So according to → MeshPart | Documentation - Roblox Creator Hub

I can’t change a head mesh id during run time, but my avatar currently has the “Invisible head” hat equipped. And this uses the meshpart id for the actual mesh. I can’t change this via script. And adding a special mesh does nothing. How can I solve this?

1 Like
local function SetHead(Player: Player, AssetId: string?)
	local Character = Player.Character
	if not Character then return end

	local Desc = game:GetService("Players"):GetHumanoidDescriptionFromUserId(Player.UserId)
	Desc.Head = AssetId
	Character.Humanoid:ApplyDescription(Desc)
end

2 Likes

thanks man!
////////////////////

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