Trying to make mesh stay in player when respawn

so i made a system when a player clicks a rig or girl rig and when they click the girl rig their torso changes to the woman’s torso, it does work it’s that when the player die’s the mesh doesn’t stay

heres the script (the script is in severscriptservice)

1 Like

Maybe keep a value on the player with the selected rig, and a table with the ID of every part to replace

local rigTable={
["Rig1"]= {["LeftHand"]=123456789} --And so on for all parts and all rig types
}
--Inside the character added event
for _,Part in character:GetChildren() do

Part.MeshID= rigTable[player:GetAtrribute("RigType")][Part.Name]

end