Hi everyone, could someone please help edit my cloning script so that the player’s limbs also clone accurately with the characrer? I’ve got everything else working so far however the player looks as follows and it’s really off-putting.
(dunno what haooened to the fps…)
game.ReplicatedStorage.CheckpointEvent.OnServerEvent:Connect(function(plr, char, cm)
local Character = char
local PhysicsService = game:GetService("PhysicsService")
PhysicsService:RegisterCollisionGroup("NoCollide")
PhysicsService:CollisionGroupSetCollidable("NoCollide", "Default", false) -- No collision
if workspace:FindFirstChild(Character.Name .. "Clone") then
local v = workspace:FindFirstChild(Character.Name .. "Clone")
Character:PivotTo(v.HumanoidRootPart.CFrame)
v:Destroy()
else
Character.Archivable = true
local cloneMain = Character:clone()
Character.Archivable = false
cloneMain.Name = Character.Name .. "Clone"
cloneMain.Parent = workspace
cloneMain:PivotTo(cm)
for i, clone in pairs(cloneMain:GetChildren()) do
if clone:IsA("Part") or clone:IsA("BasePart") or clone:IsA("MeshPart") then
clone.Material = Enum.Material.SmoothPlastic
clone.Anchored = true
clone.CollisionGroup = "NoCollide"
if clone.Name ~= "HumanoidRootPart" and clone.Name ~= "CameraFollowPart" then
clone.Transparency = .5
end
--[[for i,cloneTwo in pairs(clone:GetChildren()) do
if cloneTwo:IsA("Attachment") or cloneTwo:IsA("Motor6D") or cloneTwo:IsA("Weld") then
cloneTwo:Destroy()
end
end]]
end
end
end
end)