Problems cloning character

I want to clone a character but for some reason isn’t working.

script:

game.ReplicatedStorage.CloneE.OnServerEvent:Connect(function(plr)
    local char = workspace:FindFirstChild(plr.Name)
    local newchar = char:Clone()
    newchar.Parent = workspace
end)

Is giving error saying: “(…) index nill with ’ Parent ’ (…)”

I already tried using plr.Character:Clone()

Archivable needs to be set to true

1 Like

You have to make the character Archivable.
When you clone the character do

game.ReplicatedStorage.CloneE.OnServerEvent:Connect(function(plr)
    local char = workspace:FindFirstChild(plr.Name)
    local newchar = char:Clone()
    newchar.Archivable = true
    newchar.Parent = workspace
end)

Based on your code

1 Like

All characters have their Character.Archivable property off. You can easily solve this by temporarily setting ‘Archivable’ to true and back to false, or you can create a custom dummy which has the HumanoidDescription which is applied to it via Humanoid:ApplyDescription(HumanoidDescription), with the description matching said Player.CharacterAppearanceId. It’s an easier and less ‘hacky’ way in my opinion, and plus you can control the dummy way easier.

1 Like