Cloned characters equip the players tools

  1. 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

  2. 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)

  1. 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

Does the tool weld to your players right hand attachment?
If so you might be able to remove it from your clone

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.