Viewmodel meshids not working

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve?

I have a viewmodel, and I want to make the viewmodel have the same meshid as the player’s body parts. This is an R6 game so i’m using the charactermesh object.

  1. What is the issue?

I remember somehow I was making it work in the beginning, the meshid would be replicated on the player’s body arms. However, now it isn’t. Instead when you set the meshid the player’s arms go invisible. Not sure why.

local Player = game.Players.LocalPlayer
local Character = script.Parent
local Cam = workspace.CurrentCamera
local ViewModel = game.ReplicatedStorage:WaitForChild("ViewModel"):Clone()

for Every, Descendant in Character:GetDescendants() do
	if Descendant:IsA("BodyColors") then
		local BC = Descendant:Clone()
		BC.Parent = ViewModel
		-- Body colours working
	end
	if Descendant:IsA("CharacterMesh") then
		if string.match(Descendant.Name, "Right Arm") then
			-- Mesh ids make the arms go invisible
			local CM = Descendant
			ViewModel:WaitForChild("Character Right Arm").OverlayTextureId = CM.OverlayTextureId
			ViewModel:WaitForChild("Character Right Arm").MeshId = CM.MeshId
		end
		if string.match(Descendant.Name, "Left Arm") then
			local CM = Descendant
			ViewModel:WaitForChild("Character Left Arm").OverlayTextureId = CM.OverlayTextureId
			ViewModel:WaitForChild("Character Left Arm").MeshId = CM.MeshId
		end
	end
end

ViewModel.Parent = Cam
local RunService = game:GetService("RunService")
 
RunService.RenderStepped:Connect(function()
	if Character:WaitForChild("Humanoid").Health == 0 then
		if Cam:WaitForChild("ViewModel") then
			Cam:WaitForChild("ViewModel"):Destroy()
		end
	end
 
	if Cam:WaitForChild("ViewModel") then
		Cam:WaitForChild("ViewModel"):WaitForChild("HumanoidRootPart").CFrame = Cam.CFrame * CFrame.new(.025, -1.5, -1)
	end
end)

Any help is really appreciated.

Any help is really appreciated. I assume I may need to use supermeshids… But it worked before once?
Still doesn’t make sense though as the meshids are applying to the client’s viewmodel. Just can’t be seen.

if im not mistaken, player limbs are made roundy by the humanoid. i think if you add a humanoid to the parent of the arms it should make them look like the player.

But if there already is a humanoid you need to make sure the rig type matches up with the names of the arms.

What i mean is if the Humanoid is R6 the arms have to be named “Right Arm” or “Left Arm”

Yeah they’re named like this exactly, i’m not sure why this is happening.

Alright guys, I found the solution myself. In R6 it’s not possible to get the same body part type mesh as the player. However, in R15 it is. Which is kinda sad, I also realised I was right about this because I saw another game which was in R6 with a viewmodel and they couldn’t clone the exact body part either. They just had to stick with the clothing/bodycolors. So thanks.

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