Character cloning acting weird

so im trying to clone a players character via a for loop, but when i run the code i get teleported and also get stuck where my original position was even if i set CanCollide to false
image

code:

for _,part in pairs(guy.Parent:GetDescendants()) do
		if part:IsA("BasePart") then
		local clone = part:Clone()
		clone.CanCollide = false
		clone.Anchored = true
		clone.Parent = workspace
	end
end 
1 Like

Cloning a character may run into issues and a long source of code, hence I’d advise to utilise Players:GetHumanoidDescription(userId) or Humanoid:GetAppliedDescription() for achieving their character, then applying it with Humanoid:ApplyDescription().

3 Likes

I’m not sure why you couldn’t just clone it’s Model itself? :thinking: All you need to do is set its Archivable property to true then back to false in order to clone it

guy.Parent.Archivable = true

local CharacterClone = guy:Clone()
CharacterClone.Parent = workspace
CharacterClone:MakeJoints() --I have a habit with this

CharacterClone.PrimaryPart.Anchored = true
1 Like