Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you clone someone's character?

Asked by
blowup999 659 Moderation Voter
10 years ago

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

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. User#11893 186 — 10y

4 answers

Log in to vote
8
Answered by
nate890 495 Moderation Voter
10 years ago

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))
0
Thanks nate I didn't realize I had to give the clone a parent blowup999 659 — 10y
Ad
Log in to vote
1
Answered by 10 years ago

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.

Log in to vote
0
Answered by
Necrorave 560 Moderation Voter
10 years ago

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.

Log in to vote
-6
Answered by
yob67 -10
10 years ago

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. 3. Click on the file choice at your top left of Roblox Studio. 4. 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 3. I think you know the rest. -Thank you, LUA master Yob67.

Answer this question