Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you clone someone's character?

How do you clone somebody's character? I've seen multiple people do it but whenever I try it doesn't work.

1 comment

0

You did not title your question appropriately. "Character" does not tell us anything about what you are asking. You need to make titles a short, one-sentence question which summarizes what you want to know about.

4 answers

✓ Accepted answer

You must enable the Archivable property of the object in order to be able to clone the object.

function cloneCharacter(character)
	character.Archivable = true
	local fake = character:clone()
	character.Archivable = false
	return fake
end

local blowup999_clone = cloneCharacter(game.Players.blowup999.Character)
blowup999_clone.Parent = workspace
blowup999_clone:MoveTo(Vector3.new(0, 5, 0))

1 comment

0

Thanks nate I didn't realize I had to give the clone a parent

If you are wanting to clone the character, first you need to make the Archivable property true.

	local pl = game.Players['YourName']; --Change "YourName" to your Player's name

	if pl and pl.Character then
		local c = pl.Character;
		c.Archivable = true;
		local clone = c:Clone();
		clone.Parent = Workspace;
		clone:MoveTo(Vector3.new(0,0,0));
	end

This would clone the player's character, parent the clone to workspace, and move it to 0,0,0. You can change this as needed.

Also, if you did not already know..

To clone things in Lua, you would want to add ":Clone()" at the end of the Part/Model you lead a path too.

Keep in mind, you might want to assign the clone to a variable so that you can refer to it again.

Depends Here are a few ways, If you like Kohl's Admin just simply say :Clone me But if you want to make it a model that will save you can make it into a model I suggest in case you don't know here is how:

  1. Find your character in Worspace. 2.Click on it.
  2. Click on the file choice at your top left of Roblox Studio.
  3. Click the button that says "Publish Section to Roblox" It'll guide you from there.

If you don't need to re-use it or any noob taking it, do this.

  1. Find character in Workspace. 2.Click copy
  2. I think you know the rest. -Thank you, LUA master Yob67.

This discussion is preserved as it was. New answers, comments, and votes are closed.