Why am I getting "Error reading mesh data: unknown version"?

I have a script that changes the player’s appearance so they can’t use their custom avatars. However when I try to add a package to them it comes up with this error message:

MeshContentProvider failed to process https://assetgame.roblox.com/asset/?id=55717271 because Error reading mesh data: unknown version

Mesh i’m trying to apply: Agent 53 Torso - Roblox

Script:

    game.Players.PlayerAdded:connect(function(player)
	player.CanLoadCharacterAppearance = false
	player.CharacterAdded:connect(function(char)
		
		
		
		
		if player.TeamColor == BrickColor.new("Bright blue") then
			char:WaitForChild("Torso").BrickColor = BrickColor.new("Really blue")
			char:WaitForChild("Left Arm").BrickColor = BrickColor.new("Black")
			char:WaitForChild("Right Arm").BrickColor = BrickColor.new("Black")
			char:WaitForChild("Left Leg").BrickColor = BrickColor.new("Black")
			char:WaitForChild("Right Leg").BrickColor = BrickColor.new("Black")
			char:WaitForChild("Head").BrickColor = BrickColor.new("Black")
			
            local blueTorsoMesh = Instance.new("SpecialMesh")
			blueTorsoMesh.Name = "TorsoMesh"
			blueTorsoMesh.Parent = char:WaitForChild("Torso")
			blueTorsoMesh.MeshId = "rbxassetid://55717271"
			blueTorsoMesh.TextureId = "rbxgameasset://Images/TXT_BodyArmor_Blue"
			
			
			helmfolder.BlueTeamHelm:clone().Parent = char
			
		
			
			elseif player.TeamColor == BrickColor.new("Bright red") then
			char:WaitForChild("Torso").BrickColor = BrickColor.new("Really red")
			char:WaitForChild("Left Arm").BrickColor = BrickColor.new("Black")
			char:WaitForChild("Right Arm").BrickColor = BrickColor.new("Black")
			char:WaitForChild("Left Leg").BrickColor = BrickColor.new("Black")
			char:WaitForChild("Right Leg").BrickColor = BrickColor.new("Black")
			char:WaitForChild("Head").BrickColor = BrickColor.new("Black")
			helmfolder.RedTeamHelm:clone().Parent = char
			
			local redTorsoMesh = Instance.new("SpecialMesh")
			redTorsoMesh.Name = "TorsoMesh"
			redTorsoMesh.MeshType = Enum.MeshType.FileMesh
			redTorsoMesh.Parent = char:WaitForChild("Torso")
			redTorsoMesh.MeshId = "rbxassetid://55717271"
			redTorsoMesh.TextureId = "rbxgameasset://Images/TXT_BodyArmor_Red"
			
			
	
		
			
		end
	end)
end)

You are using the id for the model, not the mesh. The model contains the meshes for both R15 and R6.

Load the model using:

game.InsertService:LoadAsset(55717271).Parent = game.Workspace

Then get the MeshId from the mesh in the R6 folder.

2 Likes

Speaking of which, how do you load Bundles into a game now? The GetAssetIdsForPackage works on their catalog Id, not their Bundle Id. Do I have to do this?:

I’m not sure if there is a way to get the items from the bundle using only Lua APIs now. The GetAssetIdsForPackage API was very useful so I hope something similar can be added for bundles. @FarazTheGreat might know about this.

There’s this now, but you need a proxy to use it. Second on getting lua implementation for this.

We are adding a similar lua API for bundles. Should be available soon.

3 Likes