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

How to clone character, locally?

How do I make it so when a player joined their character gets cloned, locally? I know I have to use a local script but how do I actually clone the player?

2 answers

To make it very simplified, set the Character.Archivable property to true. Attempting to clone an object that is not archivable will return nil

Barebones Example:

game.Players.LocalPlayer.Character.Archivable = true

local cloneCharacter = game.Players.LocalPlayer.Character:Clone()
cloneCharacter.Parent = workspace

4 comments

0

This isnt working.

0

dumb idiot

0

???

0

Where are you running your code?

ok friend very easy to do. first know that character.archivable proeprty must be true as it umm determines wether it can be cloned or not.

the script:

local Player = game.Players.LocalPlayer

local Char = Player.Character or Player.CharacterAdded:Wait() -- if umm character not exist then it will wait for it to exist meaning the script wont run until character is there

Char:Clone()
Char.Parent = workspace 

bye

1 comment

0

Your wait function will wait infinitely and it does not work cause my character isnt cloned and I cant find it in the workspace. Next time dont call others dumb if you cant help either.

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