Custom Body Parts not applying to character

Currently attempting to replace R15 body parts with custom meshes I’ve created with no success in sight.
I’m doing this by copying the meshes needed from Server Storage into a temporary folder, applying the Part0 and Part1 necessary to join the Upper Torso to Lower Torso and Lower Torso to HumanoidRootPart, then utilizing the ReplaceBodyPartR15() function to do the actual replacing part:

local servstorage = game:GetService("ServerStorage")
local starterlegs = servstorage.starterlegs
local holding = servstorage.holdingcell
local repstorage = game:GetService("ReplicatedStorage")

print("script init")
function changeleg(player)
	print("invoked leg change!")
	local starterleg_lowert_c = starterlegs.StarterLegs_LowerTorso:Clone()
	local starterleg_upperlegl_c = starterlegs.StarterLegs_LeftUpperLeg:Clone()
	local starterleg_lowerlegl_c = starterlegs.StarterLegs_LeftLowerLeg:Clone()
	local starterleg_footl_c = starterlegs.StarterLegs_LeftFoot:Clone()
	local starterleg_upperlegr_c = starterlegs.StarterLegs_RightUpperLeg:Clone()
	local starterleg_lowerlegr_c = starterlegs.StarterLegs_RightLowerLeg:Clone()
	local starterleg_footr_c = starterlegs.StarterLegs_RightFoot:Clone()

	starterleg_lowert_c.Parent = holding
	starterleg_upperlegl_c.Parent = holding
	starterleg_lowerlegl_c.Parent = holding
	starterleg_footl_c.Parent = holding
	starterleg_upperlegr_c.Parent = holding
	starterleg_lowerlegr_c.Parent = holding
	starterleg_footr_c.Parent = holding
	for i,v in pairs(holding:GetChildren()) do
		print(v.Parent)
	end
	starterleg_lowert_c.Joint.Part1 = player.Character.HumanoidRootPart
	player.Character.UpperTorso.Waist.Part0 = starterleg_lowert_c
	
	player.Character.Humanoid:ReplaceBodyPartR15(Enum.BodyPartR15.RightUpperLeg,starterleg_upperlegr_c)
	player.Character.Humanoid:ReplaceBodyPartR15(Enum.BodyPartR15.RightLowerLeg,starterleg_lowerlegr_c)
	player.Character.Humanoid:ReplaceBodyPartR15(Enum.BodyPartR15.LeftUpperLeg,starterleg_upperlegl_c)
	player.Character.Humanoid:ReplaceBodyPartR15(Enum.BodyPartR15.LeftLowerLeg,starterleg_lowerlegl_c)
	player.Character.Humanoid:ReplaceBodyPartR15(Enum.BodyPartR15.RightFoot,starterleg_footr_c)
	player.Character.Humanoid:ReplaceBodyPartR15(Enum.BodyPartR15.LeftFoot,starterleg_footl_c)
	player.Character.Humanoid:ReplaceBodyPartR15(Enum.BodyPartR15.LowerTorso,starterleg_lowert_c)

The issue is that only the lower torso seems to be replaced successfully, every other mesh will go straight to 0,0,0 and flop down without any animated movement. Before, when I didn’t clone the meshes, I was successful in having everything be parented to the player character, but this means that I won’t be able to select these legs again in a GUI (for example).

TLDR i’m trying to recreate Royale High’s dress-up system and i’m failing at it.

1 Like