Advertisement
TheUnknownDiscord

ragdoll

Dec 12th, 2021 (edited)
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.92 KB | None | 0 0
  1. local limbcollider = Instance.new("Part", owner.Character:findFirstChild("Right Arm"))
  2. limbcollider.Size = Vector3.new(1.4,1,1)
  3. limbcollider.Transparency = 1
  4. limbcollider.Name = "LimbCollider"
  5. local limbcolliderweld = Instance.new("Weld", limbcollider)
  6. limbcolliderweld.Part0 = owner.Character:findFirstChild("Right Arm")
  7. limbcolliderweld.Part1 = limbcollider
  8. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  9. local limbcollider2 = Instance.new("Part", owner.Character:findFirstChild("Left Arm"))
  10. limbcollider2.Size = Vector3.new(1.4,1,1)
  11. limbcollider2.Transparency = 1
  12. limbcollider2.Name = "LimbCollider"
  13. local limbcolliderweld2 = Instance.new("Weld", limbcollider2)
  14. limbcolliderweld2.Part0 = owner.Character:findFirstChild("Left Arm")
  15. limbcolliderweld2.Part1 = limbcollider2
  16. limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  17. local limbcollider3 = Instance.new("Part", owner.Character.Head)
  18. limbcollider3.Size = Vector3.new(0.5,0.5,0.5)
  19. limbcollider3.Shape = "Ball"
  20. limbcollider3.Transparency = 1
  21. limbcollider3.Name = "LimbCollider"
  22. local limbcolliderweld = Instance.new("Weld", limbcollider3)
  23. limbcolliderweld.Part0 = owner.Character.Head
  24. limbcolliderweld.Part1 = limbcollider3
  25. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  26. local density = 1
  27. local friction = 1
  28. local elasticity = 2
  29. local frictionWeight = 1
  30. local elasticityWeight = 5
  31. local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
  32. for i,v in pairs(owner.Character:GetDescendants()) do
  33. pcall(function()
  34. if v:IsA("Motor6D") then
  35. v.Enabled = false
  36. end
  37. end)
  38. end
  39. function the()
  40. local Socket = Instance.new("BallSocketConstraint")
  41. local a1 = Instance.new("Attachment")
  42. local a2 = Instance.new("Attachment")
  43. a1.Parent = owner.Character["Left Arm"]
  44. a2.Parent = owner.Character.Torso
  45. Socket.Parent = owner.Character["Left Arm"]
  46. Socket.Attachment0 = a1
  47. Socket.Attachment1 = a2
  48. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  49. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(-1.5,0.5,0)
  50. Socket.LimitsEnabled = true
  51. end
  52. function the5()
  53. local Socket = Instance.new("BallSocketConstraint")
  54. local a1 = Instance.new("Attachment")
  55. local a2 = Instance.new("Attachment")
  56. a1.Parent = owner.Character["Left Leg"]
  57. a2.Parent = owner.Character.Torso
  58. Socket.Parent = owner.Character["Left Leg"]
  59. Socket.Attachment0 = a1
  60. Socket.Attachment1 = a2
  61. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  62. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(-0.5,-1.5,0)
  63. Socket.LimitsEnabled = true
  64. end
  65. function the6()
  66. local Socket = Instance.new("BallSocketConstraint")
  67. local a1 = Instance.new("Attachment")
  68. local a2 = Instance.new("Attachment")
  69. a1.Parent = owner.Character["Right Leg"]
  70. a2.Parent = owner.Character.Torso
  71. Socket.Parent = owner.Character["Right Leg"]
  72. Socket.Attachment0 = a1
  73. Socket.Attachment1 = a2
  74. Socket.LimitsEnabled = true
  75. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  76. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(0.5,-1.5,0)
  77. local limbcollider = Instance.new("Part", owner.Character:findFirstChild("Right Leg"))
  78. limbcollider.Size = Vector3.new(1.4,1,1)
  79. limbcollider.Transparency = 1
  80. limbcollider.Name = "LimbCollider"
  81. local limbcolliderweld = Instance.new("Weld", limbcollider)
  82. limbcolliderweld.Part0 = owner.Character:findFirstChild("Right Leg")
  83. limbcolliderweld.Part1 = limbcollider
  84. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  85. local limbcollider2 = Instance.new("Part", owner.Character:findFirstChild("Left Leg"))
  86. limbcollider2.Size = Vector3.new(1.4,1,1)
  87. limbcollider2.Transparency = 1
  88. limbcollider2.Name = "LimbCollider"
  89. local limbcolliderweld2 = Instance.new("Weld", limbcollider2)
  90. limbcolliderweld2.Part0 = owner.Character:findFirstChild("Left Leg")
  91. limbcolliderweld2.Part1 = limbcollider2
  92. limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  93. end
  94. function the4()
  95. local Socket = Instance.new("BallSocketConstraint")
  96. local a1 = Instance.new("Attachment")
  97. local a2 = Instance.new("Attachment")
  98. a1.Parent = owner.Character.HumanoidRootPart
  99. a2.Parent = owner.Character.Torso
  100. Socket.Parent = owner.Character.HumanoidRootPart
  101. Socket.Attachment0 = a1
  102. Socket.Attachment1 = a2
  103. a1.WorldCFrame = a1.Parent.CFrame
  104. a2.WorldCFrame = a1.Parent.CFrame
  105. Socket.LimitsEnabled = true
  106. end
  107. function the3()
  108. local Socket = Instance.new("BallSocketConstraint")
  109. local a1 = Instance.new("Attachment")
  110. local a2 = Instance.new("Attachment")
  111. a1.Parent = owner.Character.Head
  112. a2.Parent = owner.Character.Torso
  113. Socket.Parent = owner.Character.Head
  114. Socket.Attachment0 = a1
  115. Socket.Attachment1 = a2
  116. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,-0.5,0)
  117. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(0,1.0625,0)
  118. Socket.TwistLimitsEnabled = true
  119. Socket.LimitsEnabled = true
  120. end
  121. function the2()
  122. local Socket = Instance.new("BallSocketConstraint")
  123. local a1 = Instance.new("Attachment")
  124. local a2 = Instance.new("Attachment")
  125. a1.Parent = owner.Character["Right Arm"]
  126. a2.Parent = owner.Character.Torso
  127. Socket.Parent = owner.Character["Right Arm"]
  128. Socket.Attachment0 = a1
  129. Socket.Attachment1 = a2
  130. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  131. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(1.5,0.5,0)
  132. Socket.LimitsEnabled = true
  133. end
  134. the()
  135. the2()
  136. the3()
  137. the4()
  138. the5()
  139. the6()
  140. owner.Character.Humanoid.RequiresNeck = false
  141. owner.Character.Humanoid.PlatformStand = true
  142. for i,v in pairs(owner.Character:GetDescendants()) do
  143. if v:IsA("Part") then
  144. local nocollide = Instance.new("NoCollisionConstraint",owner.Character.HumanoidRootPart)
  145. nocollide.Part0 = v
  146. nocollide.Part1 = owner.Character.HumanoidRootPart
  147. v.CustomPhysicalProperties = physProperties
  148. end
  149. end
  150. headshotids = {6837727169, 6837727725, 6837726415,6837724677,6837689373,6837725727}
  151. local bodyhit = Instance.new("Sound", owner.Character.Torso)
  152. bodyhit.SoundId = "rbxassetid://220025741"
  153. bodyhit.Volume = 2
  154. NLS([[
  155. workspace.CurrentCamera.CameraSubject = owner.Character.Torso
  156. ]],owner.PlayerGui)
  157. while true do
  158. while owner.Character.Torso.Velocity.y >= -10 do
  159. task.wait()
  160. end
  161. while owner.Character.Torso.Velocity.y < -10 do
  162. task.wait()
  163. end
  164. local rand = math.random(1,#headshotids)
  165. bodyhit.SoundId = "rbxassetid://"..headshotids[rand]
  166. bodyhit.TimePosition = 0.2
  167. bodyhit:Play()
  168. bodyhit.Ended:Wait(0.0625)
  169. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement