hello guys someone know how to fix my ragdoll
function this:removeRagdollInstances(character: Model)
this:checkRunType(character, true)
if (character) then
local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
local humanoid = character:FindFirstChildWhichIsA("Humanoid")
local ragdollFolder = character:FindFirstChild("Ragdoll")
if (humanoid and humanoidRootPart and ragdollFolder) then
if (isServer) then
for _, descendant in pairs(character:GetDescendants()) do
if (descendant:IsA("BasePart")) then
descendant.CollisionGroup = "Default"
else
local part0 = instancesData["motors6D"][descendant]
if (part0) then
instancesData["motors6D"][descendant] = nil
descendant.Part0 = part0
end
end
end
ragdollFolder:Destroy()
local player = services_plrs:GetPlayerFromCharacter(character)
if player then
humanoidRootPart:SetNetworkOwnershipAuto()
end
end
humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
humanoid.PlatformStand = false
humanoid.AutoRotate = true
humanoid.WalkSpeed = 16
humanoid.JumpPower = 50
humanoidRootPart.CanCollide = true
end
end
return
end```
** You are now Level 1! **