local v=script.Parent.Parent:WaitForChild("\072\117\109\097\110\111\105\100")v.BreakJointsOnDeath=false wait(.01)for v,X in pairs(script.Parent.Parent:GetDescendants())do if X:IsA("\077\111\116\111\114\054\068")then local v=Instance.new("\066\097\108\108\083\111\099\107\101\116\067\111\110\115\116\114\097\105\110\116")local C=Instance.new("\065\116\116\097\099\104\109\101\110\116")local p=Instance.new("\065\116\116\097\099\104\109\101\110\116")C.Parent=X.Part0 p.Parent=X.Part1 v.Parent=X.Parent v.Attachment0=C v.Attachment1=p C.CFrame=X.c0 p.CFrame=X.c1 v.LimitsEnabled=true v.TwistLimitsEnabled=true X:Destroy()local h=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121")h.MaxForce=Vector3.new(math.huge,math.huge,math.huge)h.Velocity=script.Parent.Parent.HumanoidRootPart.CFrame.lookVector*0 h.Parent=script.Parent.Parent.HumanoidRootPart game.Debris:AddItem(h,.1)end end wait(3)for v,X in pairs(script.Parent.Parent:GetDescendants())do if X:IsA("\066\097\108\108\083\111\099\107\101\116\067\111\110\115\116\114\097\105\110\116")then X.UpperAngle=0 X.TwistUpperAngle=0 X.TwistLowerAngle=0 local v=Instance.new("\077\111\116\111\114\054\068",X.Parent)v.Part0=X.Attachment0.Parent v.Part1=X.Attachment1.Parent v.C0=X.Attachment0.CFrame v.C1=X.Attachment1.CFrame X:Destroy()end end script.Parent:Destroy()


local humanoid = script.Parent.Parent:WaitForChild('Humanoid')

humanoid.BreakJointsOnDeath = false

wait(0.01)
	for index,joint in pairs(script.Parent.Parent:GetDescendants()) do
		if joint:IsA('Motor6D') then
			local socket = Instance.new('BallSocketConstraint')
			local a1 = Instance.new('Attachment')
			local a2 = Instance.new('Attachment')
			a1.Parent = joint.Part0
			a2.Parent = joint.Part1
			socket.Parent = joint.Parent
			socket.Attachment0 = a1
			socket.Attachment1 = a2
			a1.CFrame = joint.c0
			a2.CFrame = joint.c1
			socket.LimitsEnabled = true
			socket.TwistLimitsEnabled = true
			joint:Destroy()
			local bv = Instance.new("BodyVelocity")
			bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
			bv.Velocity = script.Parent.Parent.HumanoidRootPart.CFrame.lookVector * -0
			bv.Parent = script.Parent.Parent.HumanoidRootPart
			game.Debris:AddItem(bv, .1)
		end
end
wait(3)
for i, v in pairs(script.Parent.Parent:GetDescendants()) do
	if v:IsA("BallSocketConstraint") then

		v.UpperAngle = 0
		v.TwistUpperAngle = 0
		v.TwistLowerAngle = 0
		local Joins = Instance.new("Motor6D", v.Parent)
		Joins.Part0 = v.Attachment0.Parent
		Joins.Part1 = v.Attachment1.Parent
		Joins.C0 = v.Attachment0.CFrame
		Joins.C1 = v.Attachment1.CFrame
		v:Destroy()
	end
end
script.Parent:Destroy()
