Here’s whats happening:
In explorer:
Its parented to my character
My code:
local newChar = serverStorage.Ragdoll:Clone()
local a0, a1 = Instance.new("Attachment", Character.PrimaryPart), Instance.new("Attachment", newChar.PrimaryPart)
local weld = Instance.new("BallSocketConstraint")
weld.Attachment0 = a0
weld.Attachment1 = a1
newChar.Parent = Character
newChar:PivotTo(Character.PrimaryPart.CFrame)
weld.Parent = Character
for _, part in pairs(Character:GetChildren()) do
if part:IsA("BasePart") then
part.Transparency = 1
end
if part:IsA("Accessory") then
part.Handle.Transparency = 1
end
if part.Name == "Head" then
part.face:Destroy()
end
end
local humanoidDescription = Players:GetHumanoidDescriptionFromUserId(Player.UserId)
print(humanoidDescription)
newChar.Humanoid:ApplyDescription(humanoidDescription)
Character.Humanoid.Died:Connect(function()
newChar:Destroy()
weld:Destroy()
for _, part in pairs(Character:GetChildren()) do
if part:IsA("BasePart") then
part.Transparency = 0
if part.Name == "HumanoidRootPart" then
part.Transparency = 1
end
end
if part:IsA("Accessory") then
part.Handle.Transparency = 0
end
end
end)
for _, part in pairs(newChar:GetChildren()) do
if part:IsA("BasePart") then
part.CanCollide = false
end
end