**What do you want to achieve?**I want to make a players character Clone.
What is the issue?
What solutions have you tried so far? Youtube
game.Players.PlayerAdded:Connect(function(plr)
print(plr.Name)
for i,v in pairs(game.Players:GetChildren()) do
print(v.Name)
if game.Players:FindFirstChild(v.Name) then
v.Character:Clone()
end
end
--local p3 = plr.Character
--local body = p3
--body:Clone()
--body.Parent = game.workspace
end)
game.Players.PlayerAdded:Connect(function(plr)
print(plr.Name)
for i,v in pairs(game.Players:GetPlayers()) do
print(v.Name)
v.Character:Clone()
end
--local p3 = plr.Character
--local body = p3 --are you getting the torso or the humanoid root part?
--body:Clone()
--body.Parent = game.workspace
end)
One Problem, I only want one duplicate for each server. I just want the dummy to change the the characters appearance kind of like Piggy in the cutscenes.
local CharacterClone = {}
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAppearanceLoaded:Connect(function(char)
if CharacterClone[plr] then
CharacterClone[plr]:Destroy()
end
char.Archivable = true
CharacterClone[plr] = char:Clone()
if CharacterClone[plr] then
CharacterClone[plr].Parent = workspace
end
CharacterClone[plr].Archivable = false
end)
end)
game.Players.PlayerRemoving:Connect(function(plr)
if CharacterClone[plr] then
CharacterClone[plr]:Destroy()
end
end)