What I am trying to do is when a player’s character gets removed (character.CharacterRemoving), to duplicate the character and keep it in the same place.
What I have done is :
plr.CharacterRemoving:Connect(function(char)
local v = plrs:GetPlayerFromCharacter(char)
if v and v.Character and v.Character:FindFirstChild("Humanoid") then
v.Character.Archivable = true
local cl = v.Character:Clone()
cl.Parent = game.Workspace
cl:MakeJoints()
cl:MoveTo(v.Character:GetModelCFrame().p)
cl:WaitForChild("Humanoid")
v.Character.Archivable = false
wait(10)
if cl then cl:Destroy() end
end
end)
What it does is when i die the model dies due to the humanoid, however when I destroy the humanoid all the clothes disappear. What would be a solution?