function Ragdoll()
for i,Motor in pairs(Char:GetDescendants()) do
if Motor:IsA("Motor6D") then
local a1 = Instance.new("Attachment")
local a2 = Instance.new("Attachment")
local _0 = Motor.Part0
local _1 = Motor.Part1
local BSC = Instance.new("BallSocketConstraint")
a1.Parent = _0
a2.Parent = _1
BSC.Attachment0 = a1
BSC.Attachment1 = a2
BSC.LimitsEnabled = true
BSC.TwistLimitsEnabled = true
BSC.Parent = Motor.Parent
a1.CFrame = Motor.C0
a2.CFrame = Motor.C1
Motor.Enabled = false
MOTORS[#MOTORS+1]=Motor
end
end
--Char.HumanoidRootPart.CanCollide = false
--local welderson = Utility.Weld(Char.UpperTorso,Char.HumanoidRootPart,Char.HumanoidRootPart)
script.ChangeState:FireClient(Plr,"RA") --this does [[ Humanoid:ChangeState(Enum.HumanoidStateType.Ragdoll)
Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,false)]] on a local script
Ragdolled.Value = true
end