repeat wait() until humanoid
character.Archivable = true
local clonem = character:Clone()
local clonef = character:Clone()
wait(0.1)
clonef.Parent = female.WorldModel
local humdesc = Instance.new("HumanoidDescription")
humdesc = humanoid:GetAppliedDescription()
humdesc.Torso = "48474356"
clonef:WaitForChild("Humanoid"):ApplyDescription(humdesc)
humdesc.Torso = "0"
clonem:WaitForChild("Humanoid"):ApplyDescription(humdesc)
The code was working until i added the clonem apply description, i have no idea why applying the description again would lead to that error considering you usually get it when the character isnt archivable, i even tried making the character archivable again after applying the first time yet it still gives the same error, someone please help if i cant fix this i am going to burst into tears ;-;
thanks for telling me about the parenting thing, i didnt realize it needed to be, additionally the torso property was accepting strings, but i decided to make it into numbers anyway. the error no long occurs but for some reason it isnt making the clonem avatar use the default r6 torso despite setting it to zero.
do you see any problems in my code that lead to that aforementioned problem?
To debug this, you could print out humdesc2.Torso before and after setting it to 0 to verify its value. This will help you confirm whether the torso ID is being set as expected.
If setting Torso to 0 doesn’t result in the default torso being applied, you might need to explicitly set it to the asset ID of the default R6 torso or find a method to reset it properly.
character.Archivable = true
local clonem = character:Clone()
local clonef = character:Clone()
wait(0.1)
clonef.Parent = female.WorldModel
clonem.Parent = male.WorldModel
-- Apply description to female clone
local humdesc = humanoid:GetAppliedDescription()
humdesc.Torso = 48474356
clonef:WaitForChild("Humanoid"):ApplyDescription(humdesc)
-- Apply description to male clone
local humdesc2 = humanoid:GetAppliedDescription()
-- Debug: Print the current Torso ID before changing it
print("Before setting to default Torso (0):", humdesc2.Torso)
humdesc2.Torso = 0
-- Debug: Print the current Torso ID after changing it
print("After setting to default Torso (0):", humdesc2.Torso)
clonem:WaitForChild("Humanoid"):ApplyDescription(humdesc2)
clonef:SetPrimaryPartCFrame(CFrame.new(Vector3.new(0,1,-6), Vector3.new(0,0,0)))
clonem:SetPrimaryPartCFrame(CFrame.new(Vector3.new(0,1,-6), Vector3.new(0,0,0)))