local function T(T)for z,C in next,T:GetChildren()do if C:IsA("\066\097\115\101\080\097\114\116")then C.CanCollide=true end if C.Name=="\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116"then C.CanCollide=false;(game:GetService("\082\117\110\083\101\114\118\105\099\101")).Heartbeat:connect(function()if T:FindFirstChild("\085\112\112\101\114\084\111\114\115\111")then C.CFrame=(T:FindFirstChild("\085\112\112\101\114\084\111\114\115\111")).CFrame end end)end end end local function z(T)pcall(function()local z=T:FindFirstChild("\076\101\102\116\070\111\111\116")local C=T:FindFirstChild("\082\105\103\104\116\070\111\111\116")local M=T:FindFirstChild("\076\101\102\116\076\111\119\101\114\076\101\103")local s=T:FindFirstChild("\082\105\103\104\116\076\111\119\101\114\076\101\103")local E=T:FindFirstChild("\076\101\102\116\085\112\112\101\114\076\101\103")local H=T:FindFirstChild("\082\105\103\104\116\085\112\112\101\114\076\101\103")local Q=T:FindFirstChild("\076\111\119\101\114\084\111\114\115\111")local b=T:FindFirstChild("\085\112\112\101\114\084\111\114\115\111")local L=T:FindFirstChild("\076\101\102\116\072\097\110\100")local w=T:FindFirstChild("\082\105\103\104\116\072\097\110\100")local m=T:FindFirstChild("\076\101\102\116\076\111\119\101\114\065\114\109")local U=T:FindFirstChild("\082\105\103\104\116\076\111\119\101\114\065\114\109")local G=T:FindFirstChild("\076\101\102\116\085\112\112\101\114\065\114\109")local X=T:FindFirstChild("\082\105\103\104\116\085\112\112\101\114\065\114\109")local F=T:FindFirstChild("\072\101\097\100")local N=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",z)N.Damping=0 N.FreeLength=.15 N.Stiffness=1500 N.Attachment0=z:FindFirstChild("\076\101\102\116\065\110\107\108\101\082\105\103\065\116\116\097\099\104\109\101\110\116")N.Attachment1=M:FindFirstChild("\076\101\102\116\065\110\107\108\101\082\105\103\065\116\116\097\099\104\109\101\110\116")local q=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",C)q.Damping=0 q.FreeLength=.15 q.Stiffness=1500 q.Attachment0=C:FindFirstChild("\082\105\103\104\116\065\110\107\108\101\082\105\103\065\116\116\097\099\104\109\101\110\116")q.Attachment1=s:FindFirstChild("\082\105\103\104\116\065\110\107\108\101\082\105\103\065\116\116\097\099\104\109\101\110\116")local d=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",M)d.Attachment0=M:FindFirstChild("\076\101\102\116\075\110\101\101\082\105\103\065\116\116\097\099\104\109\101\110\116")d.Attachment1=E:FindFirstChild("\076\101\102\116\075\110\101\101\082\105\103\065\116\116\097\099\104\109\101\110\116")local l=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",s)l.Attachment0=s:FindFirstChild("\082\105\103\104\116\075\110\101\101\082\105\103\065\116\116\097\099\104\109\101\110\116")l.Attachment1=H:FindFirstChild("\082\105\103\104\116\075\110\101\101\082\105\103\065\116\116\097\099\104\109\101\110\116")local u=Instance.new("\066\097\108\108\083\111\099\107\101\116\067\111\110\115\116\114\097\105\110\116",E)u.Attachment0=E:FindFirstChild("\076\101\102\116\072\105\112\082\105\103\065\116\116\097\099\104\109\101\110\116")u.Attachment1=Q:FindFirstChild("\076\101\102\116\072\105\112\082\105\103\065\116\116\097\099\104\109\101\110\116")local J=Instance.new("\066\097\108\108\083\111\099\107\101\116\067\111\110\115\116\114\097\105\110\116",H)J.Attachment0=H:FindFirstChild("\082\105\103\104\116\072\105\112\082\105\103\065\116\116\097\099\104\109\101\110\116")J.Attachment1=Q:FindFirstChild("\082\105\103\104\116\072\105\112\082\105\103\065\116\116\097\099\104\109\101\110\116")local k=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",Q)k.Attachment0=Q:FindFirstChild("\087\097\105\115\116\082\105\103\065\116\116\097\099\104\109\101\110\116")k.Attachment1=b:FindFirstChild("\087\097\105\115\116\082\105\103\065\116\116\097\099\104\109\101\110\116")local h=Instance.new("\066\097\108\108\083\111\099\107\101\116\067\111\110\115\116\114\097\105\110\116",G)h.Attachment0=G:FindFirstChild("\076\101\102\116\083\104\111\117\108\100\101\114\082\105\103\065\116\116\097\099\104\109\101\110\116")h.Attachment1=b:FindFirstChild("\076\101\102\116\083\104\111\117\108\100\101\114\082\105\103\065\116\116\097\099\104\109\101\110\116")local P=Instance.new("\066\097\108\108\083\111\099\107\101\116\067\111\110\115\116\114\097\105\110\116",X)P.Attachment0=X:FindFirstChild("\082\105\103\104\116\083\104\111\117\108\100\101\114\082\105\103\065\116\116\097\099\104\109\101\110\116")P.Attachment1=b:FindFirstChild("\082\105\103\104\116\083\104\111\117\108\100\101\114\082\105\103\065\116\116\097\099\104\109\101\110\116")local S=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",m)S.Attachment0=m:FindFirstChild("\076\101\102\116\069\108\098\111\119\082\105\103\065\116\116\097\099\104\109\101\110\116")S.Attachment1=G:FindFirstChild("\076\101\102\116\069\108\098\111\119\082\105\103\065\116\116\097\099\104\109\101\110\116")local K=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",U)K.Attachment0=U:FindFirstChild("\082\105\103\104\116\069\108\098\111\119\082\105\103\065\116\116\097\099\104\109\101\110\116")K.Attachment1=X:FindFirstChild("\082\105\103\104\116\069\108\098\111\119\082\105\103\065\116\116\097\099\104\109\101\110\116")local f=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",L)f.Damping=0 f.FreeLength=.15 f.Stiffness=1500 f.Attachment0=L:FindFirstChild("\076\101\102\116\087\114\105\115\116\082\105\103\065\116\116\097\099\104\109\101\110\116")f.Attachment1=m:FindFirstChild("\076\101\102\116\087\114\105\115\116\082\105\103\065\116\116\097\099\104\109\101\110\116")local o=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",w)o.Damping=0 o.FreeLength=.15 o.Stiffness=1500 o.Attachment0=w:FindFirstChild("\082\105\103\104\116\087\114\105\115\116\082\105\103\065\116\116\097\099\104\109\101\110\116")o.Attachment1=U:FindFirstChild("\082\105\103\104\116\087\114\105\115\116\082\105\103\065\116\116\097\099\104\109\101\110\116")local p=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",F)p.Damping=10 p.FreeLength=.1 p.Stiffness=1200 p.Attachment0=F:FindFirstChild("\078\101\099\107\082\105\103\065\116\116\097\099\104\109\101\110\116")p.Attachment1=b:FindFirstChild("\078\101\099\107\082\105\103\065\116\116\097\099\104\109\101\110\116")end)end char=script.Parent script.Parent.Humanoid.Died:connect(function()T(char)z(char)end)

local function CanCollide(char)
	for i,v in next, char:GetChildren() do
		if v:IsA("BasePart") then
			v.CanCollide = true
		end
		if v.Name == "HumanoidRootPart" then
			v.CanCollide = false
			game:GetService("RunService").Heartbeat:connect(function()
				if char:FindFirstChild("UpperTorso") then
					v.CFrame = char:FindFirstChild("UpperTorso").CFrame
				end
			end)
		end
	end
end

local function MakeConstraints(char)
	pcall(function()
		local LeftFoot = char:FindFirstChild("LeftFoot")
		local RightFoot = char:FindFirstChild("RightFoot")
		local LeftLowerLeg = char:FindFirstChild("LeftLowerLeg")
		local RightLowerLeg = char:FindFirstChild("RightLowerLeg")
		local LeftUpperLeg = char:FindFirstChild("LeftUpperLeg")
		local RightUpperLeg = char:FindFirstChild("RightUpperLeg")
		local LowerTorso = char:FindFirstChild("LowerTorso")
		local UpperTorso = char:FindFirstChild("UpperTorso")
		local LeftHand = char:FindFirstChild("LeftHand")
		local RightHand = char:FindFirstChild("RightHand")
		local LeftLowerArm = char:FindFirstChild("LeftLowerArm")
		local RightLowerArm = char:FindFirstChild("RightLowerArm")
		local LeftUpperArm = char:FindFirstChild("LeftUpperArm")
		local RightUpperArm = char:FindFirstChild("RightUpperArm")
		local Head = char:FindFirstChild("Head")
		
		local S1 = Instance.new("SpringConstraint",LeftFoot)
		S1.Damping = 0
		S1.FreeLength = 0.15
		S1.Stiffness = 1500
		S1.Attachment0 = LeftFoot:FindFirstChild("LeftAnkleRigAttachment")
		S1.Attachment1 = LeftLowerLeg:FindFirstChild("LeftAnkleRigAttachment")
		
		local S2 = Instance.new("SpringConstraint",RightFoot)
		S2.Damping = 0
		S2.FreeLength = 0.15
		S2.Stiffness = 1500
		S2.Attachment0 = RightFoot:FindFirstChild("RightAnkleRigAttachment")
		S2.Attachment1 = RightLowerLeg:FindFirstChild("RightAnkleRigAttachment")
		
		local H1 = Instance.new("HingeConstraint",LeftLowerLeg)
		H1.Attachment0 = LeftLowerLeg:FindFirstChild("LeftKneeRigAttachment")
		H1.Attachment1 = LeftUpperLeg:FindFirstChild("LeftKneeRigAttachment")
		
		local H2 = Instance.new("HingeConstraint",RightLowerLeg)
		H2.Attachment0 = RightLowerLeg:FindFirstChild("RightKneeRigAttachment")
		H2.Attachment1 = RightUpperLeg:FindFirstChild("RightKneeRigAttachment")
		
		local B1 = Instance.new("BallSocketConstraint",LeftUpperLeg)
		B1.Attachment0 = LeftUpperLeg:FindFirstChild("LeftHipRigAttachment")
		B1.Attachment1 = LowerTorso:FindFirstChild("LeftHipRigAttachment")
		
		local B2 = Instance.new("BallSocketConstraint",RightUpperLeg)
		B2.Attachment0 = RightUpperLeg:FindFirstChild("RightHipRigAttachment")
		B2.Attachment1 = LowerTorso:FindFirstChild("RightHipRigAttachment")
		
		local H3 = Instance.new("HingeConstraint",LowerTorso)
		H3.Attachment0 = LowerTorso:FindFirstChild("WaistRigAttachment")
		H3.Attachment1 = UpperTorso:FindFirstChild("WaistRigAttachment")
		
		local B3 = Instance.new("BallSocketConstraint",LeftUpperArm)
		B3.Attachment0 = LeftUpperArm:FindFirstChild("LeftShoulderRigAttachment")
		B3.Attachment1 = UpperTorso:FindFirstChild("LeftShoulderRigAttachment")
		
		local B4 = Instance.new("BallSocketConstraint",RightUpperArm)
		B4.Attachment0 = RightUpperArm:FindFirstChild("RightShoulderRigAttachment")
		B4.Attachment1 = UpperTorso:FindFirstChild("RightShoulderRigAttachment")
		
		local H3 = Instance.new("HingeConstraint",LeftLowerArm)
		H3.Attachment0 = LeftLowerArm:FindFirstChild("LeftElbowRigAttachment")
		H3.Attachment1 = LeftUpperArm:FindFirstChild("LeftElbowRigAttachment")
		
		local H4 = Instance.new("HingeConstraint",RightLowerArm)
		H4.Attachment0 = RightLowerArm:FindFirstChild("RightElbowRigAttachment")
		H4.Attachment1 = RightUpperArm:FindFirstChild("RightElbowRigAttachment")
		
		local S3 = Instance.new("SpringConstraint",LeftHand)
		S3.Damping = 0
		S3.FreeLength = 0.15
		S3.Stiffness = 1500
		S3.Attachment0 = LeftHand:FindFirstChild("LeftWristRigAttachment")
		S3.Attachment1 = LeftLowerArm:FindFirstChild("LeftWristRigAttachment")
		
		local S4 = Instance.new("SpringConstraint",RightHand)
		S4.Damping = 0
		S4.FreeLength = 0.15
		S4.Stiffness = 1500
		S4.Attachment0 = RightHand:FindFirstChild("RightWristRigAttachment")
		S4.Attachment1 = RightLowerArm:FindFirstChild("RightWristRigAttachment")
		
		local S5 = Instance.new("SpringConstraint",Head)
		S5.Damping = 10
		S5.FreeLength = 0.1
		S5.Stiffness = 1200
		S5.Attachment0 = Head:FindFirstChild("NeckRigAttachment")
		S5.Attachment1 = UpperTorso:FindFirstChild("NeckRigAttachment")
	end)
end

char = script.Parent
	script.Parent.Humanoid.Died:connect(function()
			CanCollide(char)
			MakeConstraints(char)
	end)

