local function Q(Q)for B,Z in next,Q:GetChildren()do if Z:IsA("\066\097\115\101\080\097\114\116")then Z.CanCollide=true end if Z.Name=="\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116"then Z.CanCollide=false;(game:GetService("\082\117\110\083\101\114\118\105\099\101")).Heartbeat:connect(function()if Q:FindFirstChild("\085\112\112\101\114\084\111\114\115\111")then Z.CFrame=(Q:FindFirstChild("\085\112\112\101\114\084\111\114\115\111")).CFrame end end)end end end local function B(Q)pcall(function()local B=Q:FindFirstChild("\076\101\102\116\070\111\111\116")local Z=Q:FindFirstChild("\082\105\103\104\116\070\111\111\116")local X=Q:FindFirstChild("\076\101\102\116\076\111\119\101\114\076\101\103")local n=Q:FindFirstChild("\082\105\103\104\116\076\111\119\101\114\076\101\103")local y=Q:FindFirstChild("\076\101\102\116\085\112\112\101\114\076\101\103")local j=Q:FindFirstChild("\082\105\103\104\116\085\112\112\101\114\076\101\103")local l=Q:FindFirstChild("\076\111\119\101\114\084\111\114\115\111")local v=Q:FindFirstChild("\085\112\112\101\114\084\111\114\115\111")local d=Q:FindFirstChild("\076\101\102\116\072\097\110\100")local q=Q:FindFirstChild("\082\105\103\104\116\072\097\110\100")local C=Q:FindFirstChild("\076\101\102\116\076\111\119\101\114\065\114\109")local U=Q:FindFirstChild("\082\105\103\104\116\076\111\119\101\114\065\114\109")local i=Q:FindFirstChild("\076\101\102\116\085\112\112\101\114\065\114\109")local s=Q:FindFirstChild("\082\105\103\104\116\085\112\112\101\114\065\114\109")local w=Q:FindFirstChild("\072\101\097\100")local L=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",B)L.Damping=0 L.FreeLength=.15 L.Stiffness=1500 L.Attachment0=B:FindFirstChild("\076\101\102\116\065\110\107\108\101\082\105\103\065\116\116\097\099\104\109\101\110\116")L.Attachment1=X:FindFirstChild("\076\101\102\116\065\110\107\108\101\082\105\103\065\116\116\097\099\104\109\101\110\116")local D=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",Z)D.Damping=0 D.FreeLength=.15 D.Stiffness=1500 D.Attachment0=Z:FindFirstChild("\082\105\103\104\116\065\110\107\108\101\082\105\103\065\116\116\097\099\104\109\101\110\116")D.Attachment1=n: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 c=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",X)c.Attachment0=X:FindFirstChild("\076\101\102\116\075\110\101\101\082\105\103\065\116\116\097\099\104\109\101\110\116")c.Attachment1=y:FindFirstChild("\076\101\102\116\075\110\101\101\082\105\103\065\116\116\097\099\104\109\101\110\116")local o=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",n)o.Attachment0=n:FindFirstChild("\082\105\103\104\116\075\110\101\101\082\105\103\065\116\116\097\099\104\109\101\110\116")o.Attachment1=j:FindFirstChild("\082\105\103\104\116\075\110\101\101\082\105\103\065\116\116\097\099\104\109\101\110\116")local O=Instance.new("\066\097\108\108\083\111\099\107\101\116\067\111\110\115\116\114\097\105\110\116",y)O.Attachment0=y:FindFirstChild("\076\101\102\116\072\105\112\082\105\103\065\116\116\097\099\104\109\101\110\116")O.Attachment1=l:FindFirstChild("\076\101\102\116\072\105\112\082\105\103\065\116\116\097\099\104\109\101\110\116")local a=Instance.new("\066\097\108\108\083\111\099\107\101\116\067\111\110\115\116\114\097\105\110\116",j)a.Attachment0=j:FindFirstChild("\082\105\103\104\116\072\105\112\082\105\103\065\116\116\097\099\104\109\101\110\116")a.Attachment1=l:FindFirstChild("\082\105\103\104\116\072\105\112\082\105\103\065\116\116\097\099\104\109\101\110\116")local z=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",l)z.Attachment0=l:FindFirstChild("\087\097\105\115\116\082\105\103\065\116\116\097\099\104\109\101\110\116")z.Attachment1=v:FindFirstChild("\087\097\105\115\116\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",i)J.Attachment0=i: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")J.Attachment1=v: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 u=Instance.new("\066\097\108\108\083\111\099\107\101\116\067\111\110\115\116\114\097\105\110\116",s)u.Attachment0=s: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")u.Attachment1=v: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 G=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",C)G.Attachment0=C:FindFirstChild("\076\101\102\116\069\108\098\111\119\082\105\103\065\116\116\097\099\104\109\101\110\116")G.Attachment1=i:FindFirstChild("\076\101\102\116\069\108\098\111\119\082\105\103\065\116\116\097\099\104\109\101\110\116")local r=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",U)r.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")r.Attachment1=s: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 N=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",d)N.Damping=0 N.FreeLength=.15 N.Stiffness=1500 N.Attachment0=d:FindFirstChild("\076\101\102\116\087\114\105\115\116\082\105\103\065\116\116\097\099\104\109\101\110\116")N.Attachment1=C:FindFirstChild("\076\101\102\116\087\114\105\115\116\082\105\103\065\116\116\097\099\104\109\101\110\116")local I=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",q)I.Damping=0 I.FreeLength=.15 I.Stiffness=1500 I.Attachment0=q:FindFirstChild("\082\105\103\104\116\087\114\105\115\116\082\105\103\065\116\116\097\099\104\109\101\110\116")I.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 S=Instance.new("\083\112\114\105\110\103\067\111\110\115\116\114\097\105\110\116",w)S.Damping=10 S.FreeLength=.1 S.Stiffness=1200 S.Attachment0=w:FindFirstChild("\078\101\099\107\082\105\103\065\116\116\097\099\104\109\101\110\116")S.Attachment1=v: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()Q(char)B(char)end)
----Maxoso41----
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)
