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

How to duplicate character with a server script?

I need to duplicate a specific character with a server script but when I use clone and chose parent it says attempt to index nil with 'Parent' how would this be done?

2 answers

You need to first say:

local Character = --Define the character
Character.Archivable = true --Makes you able to clone it.
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

1 comment

0

If it helped U then accept my question please

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