Why is this clone nil?

local function CloneCharacter(Character)
	local charChlone = Character:Clone()
	print(charChlone, Character.Parent)
	charChlone.Parent = CachedAvatars
end

output

18:30:54.634  nil Workspace  -  Client
18:30:54.636  Players.aeroactual.PlayerScripts.scriptCloner:164: attempt to index nil with 'Parent'  -  Client

Character is a players character in workspace, charChlone is nilling Idk why

You cannot clone player characters unless you set the Archivable property of the character to true.

1 Like