Hi, so I have made this code and it bugs so hard with 3D clothes & 3D faces its so funny I need help making the code look better and it doesn’t really work. this is my stupid code
local bigholder = Instance.new("Folder")
bigholder.Parent = game.Workspace
bigholder.Name = "FakePlayersHolder"
local clones = 3
local counter = 0
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAppearanceLoaded:Connect(function(chr)
repeat task.wait()
counter += 1
holder = Instance.new("Model")
holder.Parent = bigholder
holder.Name = plr.Name.." Clone"
for _,v in chr:GetChildren() do
local bodyclone = v:Clone()
bodyclone.Parent = holder
end
holder.HumanoidRootPart.Anchored = true
holder.HumanoidRootPart.CFrame = chr.HumanoidRootPart.CFrame
until counter == clones
chr.Humanoid.Died:Connect(function()
holder:Destroy()
counter = 0
end)
end)
end)
Hello! I believe the 3D clothing / faces issue comes from when you clone the limbs etc individually, their weld / joint connections will be incorrect. You are better off cloning the whole character in one go .
I made some changes that may be solve your problem but since I don’t exactly know what you are making feel free to change things!
local bigholder = Instance.new("Folder")
bigholder.Parent = game.Workspace
bigholder.Name = "FakePlayersHolder"
local clones = 3
game.Players.PlayerAdded:Connect(function(plr)
local counter = 0
plr.CharacterAppearanceLoaded:Connect(function(chr)
local Clones = {}
repeat task.wait()
counter += 1
chr.Archivable = true
local holder = chr:Clone()
holder.Parent = bigholder
holder.Name = ""
chr.Archivable = false
holder.HumanoidRootPart.Anchored = true
holder:PivotTo(chr:GetPivot())
table.insert(Clones, holder)
until counter == clones
chr.Humanoid.Died:Connect(function()
for i,v in Clones do
v:Destroy()
end
counter = 0
end)
end)
end)
Hope this gets you started! And if you have more questions, feel free to ask!