-
What do you want to achieve? Keep it simple and clear!
I want to clone the player and kill the clone so the clone stays ragdolled on the floor -
What is the issue? Include screenshots / videos if possible!
The issue I’m experiencing is whenever I clone the character. Tools equipped by the player attach to the clone (as well as the player)
- What solutions have you tried so far? Did you look for solutions on the Creator Hub?
Solutions I tried were: Looping through all tools and removing them from the clone. I also made sure it wasn’t just because I was holding the tool whenever I made the clone by adding a wait before firing the function and unequipping the tool which also didn’t work.
Heres the function im using:
function Service:KillPlayer(Target: Player)
local Character = Target.Character
if not Character then return end
task.spawn(function()
Character.Archivable = true
local NewCharacter = Character:Clone()
NewCharacter.Name = Target.Name.."'s Body"
NewCharacter.Parent = self.DeadPlayers
local Humanoid: Humanoid = NewCharacter:FindFirstChild("Humanoid")
if not Humanoid then return end
task.wait()
Humanoid.Health = 0
end)
end