function ragdollkill(O)local V=O:findFirstChildOfClass("\072\117\109\097\110\111\105\100")local G=O:findFirstChild("\114\097\103\100\101\100")if not G then local V=Instance.new("\066\111\111\108\086\097\108\117\101",O)V.Name="\114\097\103\100\101\100"if not O:findFirstChild("\085\112\112\101\114\084\111\114\115\111")then O.Archivable=true for O,V in pairs(O:GetChildren())do if V.ClassName=="\083\111\117\110\100"then V:remove()end for O,V in pairs(V:GetChildren())do if V.ClassName=="\083\111\117\110\100"then V:remove()end end end local V=O:Clone()for O,V in pairs(V:GetDescendants())do if V.ClassName=="\077\111\116\111\114"or V.ClassName=="\077\111\116\111\114\054\068"then V:destroy()end end;(V:findFirstChildOfClass("\072\117\109\097\110\111\105\100")).BreakJointsOnDeath=false;(V:findFirstChildOfClass("\072\117\109\097\110\111\105\100")).Health=0 if V:findFirstChild("\072\101\097\108\116\104")then if(V:findFirstChild("\072\101\097\108\116\104")).ClassName=="\083\099\114\105\112\116"then(V:findFirstChild("\072\101\097\108\116\104")).Disabled=true end end for O,V in pairs(O:GetChildren())do if V.ClassName=="\080\097\114\116"or V.ClassName=="\070\111\114\099\101\070\105\101\108\100"or V.ClassName=="\065\099\099\101\115\115\111\114\121"or V.ClassName=="\072\097\116"then V:destroy()end end for V,G in pairs(O:GetChildren())do if G.ClassName=="\065\099\099\101\115\115\111\114\121"then local V=G.Handle:findFirstChildOfClass("\065\116\116\097\099\104\109\101\110\116")if V then for O,Q in pairs(O:GetChildren())do if Q.ClassName=="\080\097\114\116"then local O=Q:findFirstChild(V.Name)if O then local Q=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",G.Handle)Q.Attachment0=V Q.Attachment1=O Q.LimitsEnabled=true Q.LowerAngle=0 Q.UpperAngle=0 end end end end end end V.Parent=workspace if V:findFirstChild("\082\105\103\104\116 \065\114\109")then local O=Instance.new("\071\108\117\101",V.Torso)O.Part0=V.Torso O.Part1=V:findFirstChild("\082\105\103\104\116 \065\114\109")O.C0=CFrame.new(1.5,.5,0,0,0,1,0,1,0,-1,0,0)O.C1=CFrame.new(0,.5,0,0,0,1,0,1,0,-1,0,0)local G=Instance.new("\080\097\114\116",V:findFirstChild("\082\105\103\104\116 \065\114\109"))G.Size=Vector3.new(1.4,1,1)G.Shape="\067\121\108\105\110\100\101\114"G.Transparency=1 G.Name="\076\105\109\098\067\111\108\108\105\100\101\114"local Q=Instance.new("\087\101\108\100",G)Q.Part0=V:findFirstChild("\082\105\103\104\116 \065\114\109")Q.Part1=G Q.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)*CFrame.new(-0.3,0,0)end if V:findFirstChild("\076\101\102\116 \065\114\109")then local O=Instance.new("\071\108\117\101",V.Torso)O.Part0=V.Torso O.Part1=V:findFirstChild("\076\101\102\116 \065\114\109")O.C0=CFrame.new(-1.5,.5,0,0,0,-1,0,1,0,1,0,0)O.C1=CFrame.new(0,.5,0,0,0,-1,0,1,0,1,0,0)local G=Instance.new("\080\097\114\116",V:findFirstChild("\076\101\102\116 \065\114\109"))G.Size=Vector3.new(1.4,1,1)G.Shape="\067\121\108\105\110\100\101\114"G.Name="\076\105\109\098\067\111\108\108\105\100\101\114"G.Transparency=1 local Q=Instance.new("\087\101\108\100",G)Q.Part0=V:findFirstChild("\076\101\102\116 \065\114\109")Q.Part1=G Q.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)*CFrame.new(-0.3,0,0)end if V:findFirstChild("\076\101\102\116 \076\101\103")then local O=Instance.new("\071\108\117\101",V.Torso)O.Part0=V.Torso O.Part1=V:findFirstChild("\076\101\102\116 \076\101\103")O.C0=CFrame.new(-0.5,-1,0,0,0,-1,0,1,0,1,0,0)O.C1=CFrame.new(0,1,0,0,0,-1,0,1,0,1,0,0)local G=Instance.new("\080\097\114\116",V:findFirstChild("\076\101\102\116 \076\101\103"))G.Size=Vector3.new(1.4,1,1)G.Shape="\067\121\108\105\110\100\101\114"G.Name="\076\105\109\098\067\111\108\108\105\100\101\114"G.Transparency=1 local Q=Instance.new("\087\101\108\100",G)Q.Part0=V:findFirstChild("\076\101\102\116 \076\101\103")Q.Part1=G Q.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)*CFrame.new(-0.3,0,0)end if V:findFirstChild("\082\105\103\104\116 \076\101\103")then local O=Instance.new("\071\108\117\101",V.Torso)O.Part0=V.Torso O.Part1=V:findFirstChild("\082\105\103\104\116 \076\101\103")O.C0=CFrame.new(.5,-1,0,0,0,1,0,1,0,-1,0,0)O.C1=CFrame.new(0,1,0,0,0,1,0,1,0,-1,0,0)local G=Instance.new("\080\097\114\116",V:findFirstChild("\082\105\103\104\116 \076\101\103"))G.Size=Vector3.new(1.4,1,1)G.Shape="\067\121\108\105\110\100\101\114"G.Name="\076\105\109\098\067\111\108\108\105\100\101\114"G.Transparency=1 local Q=Instance.new("\087\101\108\100",G)Q.Part0=V:findFirstChild("\082\105\103\104\116 \076\101\103")Q.Part1=G Q.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)*CFrame.new(-0.3,0,0)end if V:findFirstChild("\072\101\097\100")and V.Torso:findFirstChild("\078\101\099\107\065\116\116\097\099\104\109\101\110\116")then local O=Instance.new("\065\116\116\097\099\104\109\101\110\116",V.Head)O.Position=Vector3.new(0,-0.5,0)local G=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",V.Head)G.LimitsEnabled=true G.Attachment0=V.Torso.NeckAttachment G.Attachment1=O G.UpperAngle=60 G.LowerAngle=-60 elseif V:findFirstChild("\072\101\097\100")and not V.Torso:findFirstChild("\078\101\099\107\065\116\116\097\099\104\109\101\110\116")then local O=Instance.new("\087\101\108\100",V.Torso)O.Part0=V.Torso O.Part1=V.Head O.C0=CFrame.new(0,1.5,0)end game.Debris:AddItem(V,30)local function G()wait(.2)local function O(V)for V,G in pairs(V:GetChildren())do O(G)if G.ClassName=="\066\111\100\121\080\111\115\105\116\105\111\110"or G.ClassName=="\066\111\100\121\086\101\108\111\099\105\116\121"then G:destroy()end end end O(V)wait(.5)if V:findFirstChildOfClass("\072\117\109\097\110\111\105\100")then(V:findFirstChildOfClass("\072\117\109\097\110\111\105\100")).PlatformStand=true end if V:findFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")then(V:findFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")):destroy()end end spawn(G)elseif O:findFirstChild("\085\112\112\101\114\084\111\114\115\111")then O.Archivable=true for O,V in pairs(O:GetChildren())do if V.ClassName=="\083\111\117\110\100"then V:remove()end for O,V in pairs(V:GetChildren())do if V.ClassName=="\083\111\117\110\100"then V:remove()end end end local V=O:Clone();(V:findFirstChildOfClass("\072\117\109\097\110\111\105\100")).BreakJointsOnDeath=false for O,V in pairs(V:GetDescendants())do if V.ClassName=="\077\111\116\111\114"or V.ClassName=="\077\111\116\111\114\054\068"then V:destroy()end end V:BreakJoints();(V:findFirstChildOfClass("\072\117\109\097\110\111\105\100")).Health=0 if V:findFirstChild("\072\101\097\108\116\104")then if(V:findFirstChild("\072\101\097\108\116\104")).ClassName=="\083\099\114\105\112\116"then(V:findFirstChild("\072\101\097\108\116\104")).Disabled=true end end for O,V in pairs(O:GetChildren())do if V.ClassName=="\080\097\114\116"or V.ClassName=="\070\111\114\099\101\070\105\101\108\100"or V.ClassName=="\065\099\099\101\115\115\111\114\121"or V.ClassName=="\072\097\116"or V.ClassName=="\077\101\115\104\080\097\114\116"then V:destroy()end end for V,G in pairs(O:GetChildren())do if G.ClassName=="\065\099\099\101\115\115\111\114\121"then local V=G.Handle:findFirstChildOfClass("\065\116\116\097\099\104\109\101\110\116")if V then for O,Q in pairs(O:GetChildren())do if Q.ClassName=="\080\097\114\116"or Q.ClassName=="\077\101\115\104\080\097\114\116"then local O=Q:findFirstChild(V.Name)if O then local Q=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",G.Handle)Q.Attachment0=V Q.Attachment1=O Q.LimitsEnabled=true Q.LowerAngle=0 Q.UpperAngle=0 end end end end end end V.Parent=workspace local G=V:findFirstChildOfClass("\072\117\109\097\110\111\105\100")G.PlatformStand=true local function Q(O,V,G,Q,a)local f=Instance.new("\066\097\108\108\083\111\099\107\101\116\067\111\110\115\116\114\097\105\110\116",O)f.LimitsEnabled=true f.Attachment0=V f.Attachment1=G f.TwistLimitsEnabled=true f.TwistLowerAngle=Q f.TwistUpperAngle=a local r=Instance.new("\080\097\114\116",O)r.Size=Vector3.new(.1,1,1)r.Shape="\067\121\108\105\110\100\101\114"r.Transparency=1 r:BreakJoints()local y=Instance.new("\087\101\108\100",r)y.Part0=O y.Part1=r y.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)end local function a(O,V,G,Q,a)local f=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",O)f.LimitsEnabled=true f.Attachment0=V f.Attachment1=G f.LimitsEnabled=true f.LowerAngle=Q f.UpperAngle=a local r=Instance.new("\080\097\114\116",O)r.Size=Vector3.new(.1,1,1)r.Shape="\067\121\108\105\110\100\101\114"r.Transparency=1 r:BreakJoints()local y=Instance.new("\087\101\108\100",r)y.Part0=O y.Part1=r y.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)end local f=Instance.new("\065\116\116\097\099\104\109\101\110\116",G.Parent.Head)f.Position=Vector3.new(0,-0.5,0)if V.UpperTorso:findFirstChild("\078\101\099\107\065\116\116\097\099\104\109\101\110\116")then a(G.Parent.Head,f,V.UpperTorso.NeckAttachment,-50,50)end a(G.Parent.LowerTorso,G.Parent.LowerTorso.WaistRigAttachment,G.Parent.UpperTorso.WaistRigAttachment,-50,50)Q(G.Parent.LeftUpperArm,G.Parent.LeftUpperArm.LeftShoulderRigAttachment,G.Parent.UpperTorso.LeftShoulderRigAttachment,-200,200,180)a(G.Parent.LeftLowerArm,G.Parent.LeftLowerArm.LeftElbowRigAttachment,G.Parent.LeftUpperArm.LeftElbowRigAttachment,0,-60)a(G.Parent.LeftHand,G.Parent.LeftHand.LeftWristRigAttachment,G.Parent.LeftLowerArm.LeftWristRigAttachment,-20,20)Q(G.Parent.RightUpperArm,G.Parent.RightUpperArm.RightShoulderRigAttachment,G.Parent.UpperTorso.RightShoulderRigAttachment,-200,200,180)a(G.Parent.RightLowerArm,G.Parent.RightLowerArm.RightElbowRigAttachment,G.Parent.RightUpperArm.RightElbowRigAttachment,0,-60)a(G.Parent.RightHand,G.Parent.RightHand.RightWristRigAttachment,G.Parent.RightLowerArm.RightWristRigAttachment,-20,20)Q(G.Parent.RightUpperLeg,G.Parent.RightUpperLeg.RightHipRigAttachment,G.Parent.LowerTorso.RightHipRigAttachment,-80,80,80)a(G.Parent.RightLowerLeg,G.Parent.RightLowerLeg.RightKneeRigAttachment,G.Parent.RightUpperLeg.RightKneeRigAttachment,0,60)a(G.Parent.RightFoot,G.Parent.RightFoot.RightAnkleRigAttachment,G.Parent.RightLowerLeg.RightAnkleRigAttachment,-20,20)Q(G.Parent.LeftUpperLeg,G.Parent.LeftUpperLeg.LeftHipRigAttachment,G.Parent.LowerTorso.LeftHipRigAttachment,-80,80,80)a(G.Parent.LeftLowerLeg,G.Parent.LeftLowerLeg.LeftKneeRigAttachment,G.Parent.LeftUpperLeg.LeftKneeRigAttachment,0,60)a(G.Parent.LeftFoot,G.Parent.LeftFoot.LeftAnkleRigAttachment,G.Parent.LeftLowerLeg.LeftAnkleRigAttachment,-20,20)for O,V in pairs(G.Parent:GetChildren())do if V.ClassName=="\065\099\099\101\115\115\111\114\121"then local O=V.Handle:findFirstChildOfClass("\065\116\116\097\099\104\109\101\110\116")if O then for G,Q in pairs(G.Parent:GetChildren())do if Q.ClassName=="\080\097\114\116"then local G=Q:findFirstChild(O.Name)if G then local Q=Instance.new("\072\105\110\103\101\067\111\110\115\116\114\097\105\110\116",V.Handle)Q.Attachment0=O Q.Attachment1=G Q.LimitsEnabled=true Q.LowerAngle=0 Q.UpperAngle=0 end end end end end end for O,V in pairs(V:GetChildren())do for O,V in pairs(V:GetChildren())do if V.ClassName=="\077\111\116\111\114\054\068"and V.Name~="\111\117\099\104\095\119\101\108\100"then V:destroy()end end end if V:findFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")then V.HumanoidRootPart:destroy()end if V:findFirstChildOfClass("\072\117\109\097\110\111\105\100")then(V:findFirstChildOfClass("\072\117\109\097\110\111\105\100")).PlatformStand=true end local function r()wait(.2)local function O(V)for V,G in pairs(V:GetChildren())do O(G)if G.ClassName=="\066\111\100\121\080\111\115\105\116\105\111\110"or G.ClassName=="\066\111\100\121\086\101\108\111\099\105\116\121"then G:destroy()end end end O(V)end spawn(r)game.Debris:AddItem(V,30)end end end function damage(O,V,G,Q)for a,f in pairs(workspace:GetDescendants())do if f.ClassName=="\077\111\100\101\108"then local a=f:findFirstChild("\072\101\097\100")local r=f:findFirstChildOfClass("\072\117\109\097\110\111\105\100")local y=f:findFirstChild("\084\111\114\115\111")local h=f:findFirstChild("\114\097\103\100\111\108\108\101\100\112\117\110\099\104")if r and a then if(a.Position-O.Position).magnitude<Q and(f~=character and r.Health>0)then if V~="\115\116\111\109\112"then if h then return end end local O=Instance.new("\066\111\111\108\086\097\108\117\101",f)O.Name="\114\097\103\100\111\108\108\101\100\112\117\110\099\104"game.Debris:AddItem(O,G)if V=="\112\117\110\099\104"then local O=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121",a)O.MaxForce=Vector3.new(math.huge,0,math.huge)O.Velocity=character.HumanoidRootPart.CFrame.lookVector*math.random(5,15)punchsound.PlaybackSpeed=1+math.random(-5,5)/15 punchsound:Play()game.Debris:AddItem(O,.2)elseif V=="\117\112\112\101\114\099\117\116"then local O=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121",a)O.MaxForce=Vector3.new(math.huge,math.huge,math.huge)O.Velocity=character.HumanoidRootPart.CFrame.upVector*math.random(5,15)+character.HumanoidRootPart.CFrame.lookVector*math.random(5,15)kicksound.PlaybackSpeed=1+math.random(-5,5)/15 kicksound:Play()game.Debris:AddItem(O,.2)elseif V=="\107\105\099\107"then local O=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121",a)O.MaxForce=Vector3.new(math.huge,0,math.huge)O.Velocity=character.HumanoidRootPart.CFrame.lookVector*20 goresound.PlaybackSpeed=1+math.random(-5,5)/15 goresound:Play()game.Debris:AddItem(O,.2)elseif V=="\100\114\111\112\107\105\099\107"then local O=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121",a)O.MaxForce=Vector3.new(math.huge,0,math.huge)O.Velocity=character.HumanoidRootPart.CFrame.lookVector*30 kicksound.PlaybackSpeed=1+math.random(-5,5)/15 kicksound:Play()goresound.PlaybackSpeed=1+math.random(-5,5)/15 goresound:Play()game.Debris:AddItem(O,.2)elseif V=="\115\116\111\109\112"then punchsound.PlaybackSpeed=1+math.random(-5,5)/15 punchsound:Play()end if V~="\098\108\111\099\107\101\100"then local O=math.random(30,50)if V=="\117\112\112\101\114\099\117\116"then O=O+math.random(20,30)elseif V=="\107\105\099\107"then O=O+math.random(40,50)elseif V=="\100\114\111\112\107\105\099\107"then O=O+math.random(50,90)end if r.Health<=O then r.Health=0 ragdollkill(f)end r.Health=r.Health-O end if V~="\098\108\111\099\107\101\100"and(V~="\117\112\112\101\114\099\117\116"and(V~="\107\105\099\107"and V~="\100\114\111\112\107\105\099\107"))then if math.random(1,5)~=1 then return end end if V=="\115\116\111\109\112"then return end r.PlatformStand=true;(coroutine.wrap(function()wait(G)r.PlatformStand=false end))()if y then(coroutine.wrap(function()r=f:WaitForChild("\072\117\109\097\110\111\105\100")local O=f if O:findFirstChild("\082\105\103\104\116 \065\114\109")then local V=Instance.new("\071\108\117\101",O.Torso)V.Part0=O.Torso V.Part1=O:findFirstChild("\082\105\103\104\116 \065\114\109")V.C0=CFrame.new(1.5,.5,0,0,0,1,0,1,0,-1,0,0)V.C1=CFrame.new(0,.5,0,0,0,1,0,1,0,-1,0,0)local Q=Instance.new("\080\097\114\116",O:findFirstChild("\082\105\103\104\116 \065\114\109"))Q.Size=Vector3.new(1.4,1,1)Q.Shape="\067\121\108\105\110\100\101\114"Q.Transparency=1 Q.Name="\076\105\109\098\067\111\108\108\105\100\101\114"local a=Instance.new("\087\101\108\100",Q)a.Part0=O:findFirstChild("\082\105\103\104\116 \065\114\109")a.Part1=Q a.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)*CFrame.new(-0.3,0,0);(coroutine.wrap(function()if O.Torso:findFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")then local V=(O.Torso:findFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")):Clone();(O.Torso:findFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")):destroy();(coroutine.wrap(function()wait(G)V.Parent=O.Torso V.Part0=O.Torso V.Part1=O["\082\105\103\104\116 \065\114\109"]end))()end wait(G)V:destroy()Q:destroy()a:destroy()end))()end if O:findFirstChild("\076\101\102\116 \065\114\109")then local V=Instance.new("\071\108\117\101",O.Torso)V.Part0=O.Torso V.Part1=O:findFirstChild("\076\101\102\116 \065\114\109")V.C0=CFrame.new(-1.5,.5,0,0,0,-1,0,1,0,1,0,0)V.C1=CFrame.new(0,.5,0,0,0,-1,0,1,0,1,0,0)local Q=Instance.new("\080\097\114\116",O:findFirstChild("\076\101\102\116 \065\114\109"))Q.Size=Vector3.new(1.4,1,1)Q.Shape="\067\121\108\105\110\100\101\114"Q.Name="\076\105\109\098\067\111\108\108\105\100\101\114"Q.Transparency=1 local a=Instance.new("\087\101\108\100",Q)a.Part0=O:findFirstChild("\076\101\102\116 \065\114\109")a.Part1=Q a.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)*CFrame.new(-0.3,0,0);(coroutine.wrap(function()if O.Torso:findFirstChild("\076\101\102\116 \083\104\111\117\108\100\101\114")then local V=(O.Torso:findFirstChild("\076\101\102\116 \083\104\111\117\108\100\101\114")):Clone();(O.Torso:findFirstChild("\076\101\102\116 \083\104\111\117\108\100\101\114")):destroy();(coroutine.wrap(function()wait(G)V.Parent=O.Torso V.Part0=O.Torso V.Part1=O["\076\101\102\116 \065\114\109"]end))()end wait(G)V:destroy()Q:destroy()a:destroy()end))()end if O:findFirstChild("\076\101\102\116 \076\101\103")then local V=Instance.new("\071\108\117\101",O.Torso)V.Part0=O.Torso V.Part1=O:findFirstChild("\076\101\102\116 \076\101\103")V.C0=CFrame.new(-0.5,-1,0,0,0,-1,0,1,0,1,0,0)V.C1=CFrame.new(0,1,0,0,0,-1,0,1,0,1,0,0)local Q=Instance.new("\080\097\114\116",O:findFirstChild("\076\101\102\116 \076\101\103"))Q.Size=Vector3.new(1.5,1,1)Q.Shape="\067\121\108\105\110\100\101\114"Q.Name="\076\105\109\098\067\111\108\108\105\100\101\114"Q.Transparency=1 local a=Instance.new("\087\101\108\100",Q)a.Part0=O:findFirstChild("\076\101\102\116 \076\101\103")a.Part1=Q a.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)*CFrame.new(-0.2,0,0);(coroutine.wrap(function()if O.Torso:findFirstChild("\076\101\102\116 \072\105\112")then local V=(O.Torso:findFirstChild("\076\101\102\116 \072\105\112")):Clone();(O.Torso:findFirstChild("\076\101\102\116 \072\105\112")):destroy();(coroutine.wrap(function()wait(G)V.Parent=O.Torso V.Part0=O.Torso V.Part1=O["\076\101\102\116 \076\101\103"]end))()end wait(G)V:destroy()Q:destroy()a:destroy()end))()end if O:findFirstChild("\082\105\103\104\116 \076\101\103")then local V=Instance.new("\071\108\117\101",O.Torso)V.Part0=O.Torso V.Part1=O:findFirstChild("\082\105\103\104\116 \076\101\103")V.C0=CFrame.new(.5,-1,0,0,0,1,0,1,0,-1,0,0)V.C1=CFrame.new(0,1,0,0,0,1,0,1,0,-1,0,0)local Q=Instance.new("\080\097\114\116",O:findFirstChild("\082\105\103\104\116 \076\101\103"))Q.Size=Vector3.new(1.5,1,1)Q.Shape="\067\121\108\105\110\100\101\114"Q.Name="\076\105\109\098\067\111\108\108\105\100\101\114"Q.Transparency=1 local a=Instance.new("\087\101\108\100",Q)a.Part0=O:findFirstChild("\082\105\103\104\116 \076\101\103")a.Part1=Q a.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)*CFrame.new(-0.2,0,0);(coroutine.wrap(function()if O.Torso:findFirstChild("\082\105\103\104\116 \072\105\112")then local V=(O.Torso:findFirstChild("\082\105\103\104\116 \072\105\112")):Clone();(O.Torso:findFirstChild("\082\105\103\104\116 \072\105\112")):destroy();(coroutine.wrap(function()wait(G)V.Parent=O.Torso V.Part0=O.Torso V.Part1=O["\082\105\103\104\116 \076\101\103"]end))()end wait(G)V:destroy()Q:destroy()a:destroy()end))()end end))()end end end end end end

function ragdollkill(character)
	local victimshumanoid = character:findFirstChildOfClass("Humanoid")
	local checkragd = character:findFirstChild("ragded")
	if not checkragd then
		local boolvalue = Instance.new("BoolValue", character)
		boolvalue.Name = "ragded"
		if not character:findFirstChild("UpperTorso") then
			character.Archivable = true
			for i,v in pairs(character:GetChildren()) do
				if v.ClassName == "Sound" then
					v:remove()
				end
				for q,w in pairs(v:GetChildren()) do
					if w.ClassName == "Sound" then
						w:remove()
					end
				end
			end
			local ragdoll = character:Clone()
			for i,v in pairs(ragdoll:GetDescendants()) do
				if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
					v:destroy()
				end
			end
			ragdoll:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
			ragdoll:findFirstChildOfClass("Humanoid").Health = 0
			if ragdoll:findFirstChild("Health") then
				if ragdoll:findFirstChild("Health").ClassName == "Script" then
					ragdoll:findFirstChild("Health").Disabled = true
				end
			end
			for i,v in pairs(character:GetChildren()) do
				if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
					v:destroy()
				end
			end
			for i,v in pairs(character:GetChildren()) do
				if v.ClassName == "Accessory" then
					local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
					if attachment1 then
						for q,w in pairs(character:GetChildren()) do
							if w.ClassName == "Part" then
								local attachment2 = w:findFirstChild(attachment1.Name)
								if attachment2 then
									local hinge = Instance.new("HingeConstraint", v.Handle)
									hinge.Attachment0 = attachment1
									hinge.Attachment1 = attachment2
									hinge.LimitsEnabled = true
									hinge.LowerAngle = 0
									hinge.UpperAngle = 0
								end
							end
						end
					end
				end
			end
			ragdoll.Parent = workspace
			if ragdoll:findFirstChild("Right Arm") then
				local glue = Instance.new("Glue", ragdoll.Torso)
				glue.Part0 = ragdoll.Torso
				glue.Part1 = ragdoll:findFirstChild("Right Arm")
				glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
				glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
				local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
				limbcollider.Size = Vector3.new(1.4,1,1)
				limbcollider.Shape = "Cylinder"
				limbcollider.Transparency = 1
				limbcollider.Name = "LimbCollider"
				local limbcolliderweld = Instance.new("Weld", limbcollider)
				limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
				limbcolliderweld.Part1 = limbcollider
				limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
			end
			if ragdoll:findFirstChild("Left Arm") then
				local glue = Instance.new("Glue", ragdoll.Torso)
				glue.Part0 = ragdoll.Torso
				glue.Part1 = ragdoll:findFirstChild("Left Arm")
				glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
				glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
				local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
				limbcollider.Size = Vector3.new(1.4,1,1)
				limbcollider.Shape = "Cylinder"
				limbcollider.Name = "LimbCollider"
				limbcollider.Transparency = 1
				local limbcolliderweld = Instance.new("Weld", limbcollider)
				limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
				limbcolliderweld.Part1 = limbcollider
				limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
			end
			if ragdoll:findFirstChild("Left Leg") then
				local glue = Instance.new("Glue", ragdoll.Torso)
				glue.Part0 = ragdoll.Torso
				glue.Part1 = ragdoll:findFirstChild("Left Leg")
				glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
				glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
				local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
				limbcollider.Size = Vector3.new(1.4,1,1)
				limbcollider.Shape = "Cylinder"
				limbcollider.Name = "LimbCollider"
				limbcollider.Transparency = 1
				local limbcolliderweld = Instance.new("Weld", limbcollider)
				limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
				limbcolliderweld.Part1 = limbcollider
				limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
			end
			if ragdoll:findFirstChild("Right Leg") then
				local glue = Instance.new("Glue", ragdoll.Torso)
				glue.Part0 = ragdoll.Torso
				glue.Part1 = ragdoll:findFirstChild("Right Leg")
				glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
				glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
				local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
				limbcollider.Size = Vector3.new(1.4,1,1)
				limbcollider.Shape = "Cylinder"
				limbcollider.Name = "LimbCollider"
				limbcollider.Transparency = 1
				local limbcolliderweld = Instance.new("Weld", limbcollider)
				limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
				limbcolliderweld.Part1 = limbcollider
				limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
			end
			if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
				local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
				HeadAttachment.Position = Vector3.new(0, -0.5, 0)
				local connection = Instance.new('HingeConstraint', ragdoll["Head"])
				connection.LimitsEnabled = true
				connection.Attachment0 = ragdoll.Torso.NeckAttachment
				connection.Attachment1 = HeadAttachment
				connection.UpperAngle = 60
				connection.LowerAngle = -60
			elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
				local hedweld = Instance.new("Weld", ragdoll.Torso)
				hedweld.Part0 = ragdoll.Torso
				hedweld.Part1 = ragdoll.Head
				hedweld.C0 = CFrame.new(0,1.5,0)
			end
			game.Debris:AddItem(ragdoll, 30)
			local function aaaalol()
				wait(0.2)
				local function searchforvelocity(wot)
					for i,v in pairs(wot:GetChildren()) do
						searchforvelocity(v)
						if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
							v:destroy()
						end
					end
				end
				searchforvelocity(ragdoll)
				wait(0.5)
				if ragdoll:findFirstChildOfClass("Humanoid") then
					ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
				end
				if ragdoll:findFirstChild("HumanoidRootPart") then
					ragdoll:findFirstChild("HumanoidRootPart"):destroy()
				end
			end
			spawn(aaaalol)
		elseif character:findFirstChild("UpperTorso") then
			character.Archivable = true
			for i,v in pairs(character:GetChildren()) do
				if v.ClassName == "Sound" then
					v:remove()
				end
				for q,w in pairs(v:GetChildren()) do
					if w.ClassName == "Sound" then
						w:remove()
					end
				end
			end
			local ragdoll = character:Clone()
			ragdoll:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
			for i,v in pairs(ragdoll:GetDescendants()) do
				if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
					v:destroy()
				end
			end
			ragdoll:BreakJoints()
			ragdoll:findFirstChildOfClass("Humanoid").Health = 0
			if ragdoll:findFirstChild("Health") then
				if ragdoll:findFirstChild("Health").ClassName == "Script" then
					ragdoll:findFirstChild("Health").Disabled = true
				end
			end
			for i,v in pairs(character:GetChildren()) do
				if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
					v:destroy()
				end
			end
			for i,v in pairs(character:GetChildren()) do
				if v.ClassName == "Accessory" then
					local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
					if attachment1 then
						for q,w in pairs(character:GetChildren()) do
							if w.ClassName == "Part" or w.ClassName == "MeshPart" then
								local attachment2 = w:findFirstChild(attachment1.Name)
								if attachment2 then
									local hinge = Instance.new("HingeConstraint", v.Handle)
									hinge.Attachment0 = attachment1
									hinge.Attachment1 = attachment2
									hinge.LimitsEnabled = true
									hinge.LowerAngle = 0
									hinge.UpperAngle = 0
								end
							end
						end
					end
				end
			end
			ragdoll.Parent = workspace
			local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
			Humanoid.PlatformStand = true
			local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
				local connection = Instance.new('BallSocketConstraint', limb)
				connection.LimitsEnabled = true
				connection.Attachment0 = attachementone
				connection.Attachment1 = attachmenttwo
				connection.TwistLimitsEnabled = true
				connection.TwistLowerAngle = twistlower
				connection.TwistUpperAngle = twistupper
				local limbcollider = Instance.new("Part", limb)
				limbcollider.Size = Vector3.new(0.1,1,1)
				limbcollider.Shape = "Cylinder"
				limbcollider.Transparency = 1
				limbcollider:BreakJoints()
				local limbcolliderweld = Instance.new("Weld", limbcollider)
				limbcolliderweld.Part0 = limb
				limbcolliderweld.Part1 = limbcollider
				limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
			end
			local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
				local connection = Instance.new('HingeConstraint', limb)
				connection.LimitsEnabled = true
				connection.Attachment0 = attachementone
				connection.Attachment1 = attachmenttwo
				connection.LimitsEnabled = true
				connection.LowerAngle = lower
				connection.UpperAngle = upper
				local limbcollider = Instance.new("Part", limb)
				limbcollider.Size = Vector3.new(0.1,1,1)
				limbcollider.Shape = "Cylinder"
				limbcollider.Transparency = 1
				limbcollider:BreakJoints()
				local limbcolliderweld = Instance.new("Weld", limbcollider)
				limbcolliderweld.Part0 = limb
				limbcolliderweld.Part1 = limbcollider
				limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
			end
			local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
			HeadAttachment.Position = Vector3.new(0, -0.5, 0)
			if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
				makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
			end
			makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
			makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
			makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
			makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
			--
			makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
			makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
			makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
			--
			makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
			makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
			makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
			--
			makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
			makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
			makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
			for i,v in pairs(Humanoid.Parent:GetChildren()) do
				if v.ClassName == "Accessory" then
					local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
					if attachment1 then
						for q,w in pairs(Humanoid.Parent:GetChildren()) do
							if w.ClassName == "Part" then
								local attachment2 = w:findFirstChild(attachment1.Name)
								if attachment2 then
									local hinge = Instance.new("HingeConstraint", v.Handle)
									hinge.Attachment0 = attachment1
									hinge.Attachment1 = attachment2
									hinge.LimitsEnabled = true
									hinge.LowerAngle = 0
									hinge.UpperAngle = 0
								end
							end
						end
					end
				end
			end
			for i,v in pairs(ragdoll:GetChildren()) do
				for q,w in pairs(v:GetChildren()) do
					if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] and w.Name ~= "ouch_weld" then
						w:destroy()
					end
				end
			end
			if ragdoll:findFirstChild("HumanoidRootPart") then
				ragdoll.HumanoidRootPart:destroy()
			end
			if ragdoll:findFirstChildOfClass("Humanoid") then
				ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
			end
			local function waitfordatmoment()
				wait(0.2)
				local function searchforvelocity(wot)
					for i,v in pairs(wot:GetChildren()) do
						searchforvelocity(v)
						if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
							v:destroy()
						end
					end
				end
				searchforvelocity(ragdoll)
			end
			spawn(waitfordatmoment)
			game.Debris:AddItem(ragdoll, 30)
		end
	end
end
function damage(what, action, t, range)
	for i,v in pairs(workspace:GetDescendants()) do
		if v.ClassName == "Model" then
			local head = v:findFirstChild("Head")
			local humanoid = v:findFirstChildOfClass("Humanoid")
			local torso = v:findFirstChild("Torso")
			local ragdolled = v:findFirstChild("ragdolledpunch")
			if humanoid and head then
				if (head.Position - what.Position).magnitude < range and v ~= character and humanoid.Health > 0 then
					if action ~= "stomp" then
						if ragdolled then
							return
						end
					end
					local ragdolledpunch = Instance.new("BoolValue", v)
					ragdolledpunch.Name = "ragdolledpunch"
					game.Debris:AddItem(ragdolledpunch, t)
					if action == "punch" then
						local velocity = Instance.new("BodyVelocity", head)
						velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
						velocity.Velocity = character.HumanoidRootPart.CFrame.lookVector * math.random(5,15)
						punchsound.PlaybackSpeed = 1+(math.random(-5,5)/15)
						punchsound:Play()
						game.Debris:AddItem(velocity, 0.2)
					elseif action == "uppercut" then
						local velocity = Instance.new("BodyVelocity", head)
						velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
						velocity.Velocity = (character.HumanoidRootPart.CFrame.upVector * math.random(5,15)) + (character.HumanoidRootPart.CFrame.lookVector * math.random(5,15))
						kicksound.PlaybackSpeed = 1+(math.random(-5,5)/15)
						kicksound:Play()
						game.Debris:AddItem(velocity, 0.2)
					elseif action == "kick" then
						local velocity = Instance.new("BodyVelocity", head)
						velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
						velocity.Velocity = character.HumanoidRootPart.CFrame.lookVector * 20
						goresound.PlaybackSpeed = 1+(math.random(-5,5)/15)
						goresound:Play()
						game.Debris:AddItem(velocity, 0.2)
					elseif action == "dropkick" then
						local velocity = Instance.new("BodyVelocity", head)
						velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
						velocity.Velocity = character.HumanoidRootPart.CFrame.lookVector * 30
						kicksound.PlaybackSpeed = 1+(math.random(-5,5)/15)
						kicksound:Play()
						goresound.PlaybackSpeed = 1+(math.random(-5,5)/15)
						goresound:Play()
						game.Debris:AddItem(velocity, 0.2)
					elseif action == "stomp" then
						punchsound.PlaybackSpeed = 1+(math.random(-5,5)/15)
						punchsound:Play()
					end
					if action ~= "blocked" then
						local dmg = math.random(30,50)
						if action == "uppercut" then
							dmg = dmg + math.random(20,30)
						elseif action == "kick" then
							dmg = dmg + math.random(40,50)
						elseif action == "dropkick" then
							dmg = dmg + math.random(50,90)
						end
						if humanoid.Health <= dmg then
							humanoid.Health = 0
							ragdollkill(v)
						end
						humanoid.Health = humanoid.Health - dmg
					end
					if action ~= "blocked" and action ~= "uppercut" and action ~= "kick" and action ~= "dropkick" then
						if math.random(1,5) ~= 1 then
							return
						end
					end
					if action == "stomp" then
						return
					end
					humanoid.PlatformStand = true
					coroutine.wrap(function()
						wait(t)
						humanoid.PlatformStand = false
					end)()
					if torso then
						coroutine.wrap(function()
							humanoid = v:WaitForChild("Humanoid")
							local ragdoll = v
							if ragdoll:findFirstChild("Right Arm") then
								local glue = Instance.new("Glue", ragdoll.Torso)
								glue.Part0 = ragdoll.Torso
								glue.Part1 = ragdoll:findFirstChild("Right Arm")
								glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
								glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
								local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
								limbcollider.Size = Vector3.new(1.4,1,1)
								limbcollider.Shape = "Cylinder"
								limbcollider.Transparency = 1
								limbcollider.Name = "LimbCollider"
								local limbcolliderweld = Instance.new("Weld", limbcollider)
								limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
								limbcolliderweld.Part1 = limbcollider
								limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
								coroutine.wrap(function()
									if ragdoll.Torso:findFirstChild("Right Shoulder") then
										local limbclone = ragdoll.Torso:findFirstChild("Right Shoulder"):Clone()
										ragdoll.Torso:findFirstChild("Right Shoulder"):destroy()
										coroutine.wrap(function()
											wait(t)
											limbclone.Parent = ragdoll.Torso
											limbclone.Part0 = ragdoll.Torso
											limbclone.Part1 = ragdoll["Right Arm"]
										end)()
									end
									wait(t)
									glue:destroy()
									limbcollider:destroy()
									limbcolliderweld:destroy()
								end)()
							end
							if ragdoll:findFirstChild("Left Arm") then
								local glue = Instance.new("Glue", ragdoll.Torso)
								glue.Part0 = ragdoll.Torso
								glue.Part1 = ragdoll:findFirstChild("Left Arm")
								glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
								glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
								local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
								limbcollider.Size = Vector3.new(1.4,1,1)
								limbcollider.Shape = "Cylinder"
								limbcollider.Name = "LimbCollider"
								limbcollider.Transparency = 1
								local limbcolliderweld = Instance.new("Weld", limbcollider)
								limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")			
								limbcolliderweld.Part1 = limbcollider
								limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
								coroutine.wrap(function()
									if ragdoll.Torso:findFirstChild("Left Shoulder") then
										local limbclone = ragdoll.Torso:findFirstChild("Left Shoulder"):Clone()
										ragdoll.Torso:findFirstChild("Left Shoulder"):destroy()
										coroutine.wrap(function()
											wait(t)
											limbclone.Parent = ragdoll.Torso
											limbclone.Part0 = ragdoll.Torso
											limbclone.Part1 = ragdoll["Left Arm"]
										end)()
									end
									wait(t)
									glue:destroy()
									limbcollider:destroy()
									limbcolliderweld:destroy()
								end)()
							end
							if ragdoll:findFirstChild("Left Leg") then
								local glue = Instance.new("Glue", ragdoll.Torso)
								glue.Part0 = ragdoll.Torso
								glue.Part1 = ragdoll:findFirstChild("Left Leg")
								glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
								glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
								local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
								limbcollider.Size = Vector3.new(1.5,1,1)
								limbcollider.Shape = "Cylinder"
								limbcollider.Name = "LimbCollider"
								limbcollider.Transparency = 1
								local limbcolliderweld = Instance.new("Weld", limbcollider)
								limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
								limbcolliderweld.Part1 = limbcollider
								limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.2,0,0)
								coroutine.wrap(function()
									if ragdoll.Torso:findFirstChild("Left Hip") then
										local limbclone = ragdoll.Torso:findFirstChild("Left Hip"):Clone()
										ragdoll.Torso:findFirstChild("Left Hip"):destroy()
										coroutine.wrap(function()
											wait(t)
											limbclone.Parent = ragdoll.Torso
											limbclone.Part0 = ragdoll.Torso
											limbclone.Part1 = ragdoll["Left Leg"]
										end)()
									end
									wait(t)
									glue:destroy()
									limbcollider:destroy()
									limbcolliderweld:destroy()
								end)()
							end
							if ragdoll:findFirstChild("Right Leg") then
								local glue = Instance.new("Glue", ragdoll.Torso)
								glue.Part0 = ragdoll.Torso
								glue.Part1 = ragdoll:findFirstChild("Right Leg")
								glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
								glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
								local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
								limbcollider.Size = Vector3.new(1.5,1,1)
								limbcollider.Shape = "Cylinder"
								limbcollider.Name = "LimbCollider"
								limbcollider.Transparency = 1
								local limbcolliderweld = Instance.new("Weld", limbcollider)
								limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
								limbcolliderweld.Part1 = limbcollider
								limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.2,0,0)
								coroutine.wrap(function()
									if ragdoll.Torso:findFirstChild("Right Hip") then
										local limbclone = ragdoll.Torso:findFirstChild("Right Hip"):Clone()
										ragdoll.Torso:findFirstChild("Right Hip"):destroy()
										coroutine.wrap(function()
											wait(t)
											limbclone.Parent = ragdoll.Torso
											limbclone.Part0 = ragdoll.Torso
											limbclone.Part1 = ragdoll["Right Leg"]
										end)()
									end
									wait(t)
									glue:destroy()
									limbcollider:destroy()
									limbcolliderweld:destroy()
								end)()
							end
						end)()
					end
				end
			end
		end
	end
end