Part not visible

I am making a first-person shooter and put a MESH PART into the starter character. But when I play the game it turns invisible. I tried to use this in a local script but it didn’t work.

function antiTrans(part)
		part.LocalTransparencyModifier = part.Transparency
		part.Changed:connect(function (property)    
			part.LocalTransparencyModifier = part.Transparency--Changes the local modifyer(client side only)
	end)
end

while wait() do
	
	antiTrans(script.Parent)
	
end
1 Like

That’s because you need to have a part in the Workspace in order for it to be visible. Put the MeshPart in the Workspace.

But I have the meshpart attached to the character so it animates. Will the moto6d work still?