Guest User

asdasd

a guest
Dec 8th, 2019
84
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. raggdoolll mennn!!!
  2. Players = game:GetService('Players')
  3. Humanoid = Players.LocalPlayer.Character.Humanoid
  4. Torso = Humanoid.Parent.Torso
  5. mouse = game.Players.LocalPlayer:GetMouse()
  6. gui=Instance.new("ScreenGui")
  7. gui.Parent=Players.LocalPlayer.PlayerGui
  8. txt=Instance.new("TextLabel")
  9. txt.Parent=gui
  10. txt.BackgroundColor3=Color3.fromRGB(0,0,0)
  11. txt.TextColor3=Color3.fromRGB(255,255,255)
  12. txt.TextSize=20
  13. txt.Text="To faint press z - Rufus14 (You cant undo that action!)"
  14. txt.Size=UDim2.new(1,0,0,30)
  15. txt.Position=UDim2.new(0,0,-1,0)
  16. canragdoll = true
  17. txt:TweenPosition(UDim2.new(0,0,0,0))
  18. wait(3)
  19. txt:TweenPosition(UDim2.new(0,0,-1,0))
  20. wait(1)
  21. gui:destroy()
  22. function die(key)
  23. key = key:lower()
  24. if key == "z" and canragdoll then
  25. canragdoll = false
  26. Humanoid.PlatformStand = true
  27. death()
  28. local limbcollider = Instance.new("Part", Humanoid.Parent["Right Arm"])
  29. limbcollider.Size = Vector3.new(1,1.3,1)
  30. limbcollider.Shape = "Cylinder"
  31. limbcollider.Transparency = 1
  32. local limbcolliderweld = Instance.new("Weld", limbcollider)
  33. limbcolliderweld.Part0 = Humanoid.Parent["Right Arm"]
  34. limbcolliderweld.Part1 = limbcollider
  35. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.4,0,0)
  36. --
  37. local limbcollider = Instance.new("Part", Humanoid.Parent["Left Arm"])
  38. limbcollider.Size = Vector3.new(1,1.3,1)
  39. limbcollider.Shape = "Cylinder"
  40. limbcollider.Transparency = 1
  41. local limbcolliderweld = Instance.new("Weld", limbcollider)
  42. limbcolliderweld.Part0 = Humanoid.Parent["Left Arm"]
  43. limbcolliderweld.Part1 = limbcollider
  44. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.4,0,0)
  45. --
  46. local limbcollider = Instance.new("Part", Humanoid.Parent["Left Leg"])
  47. limbcollider.Size = Vector3.new(1,1.3,1)
  48. limbcollider.Shape = "Cylinder"
  49. limbcollider.Transparency = 1
  50. local limbcolliderweld = Instance.new("Weld", limbcollider)
  51. limbcolliderweld.Part0 = Humanoid.Parent["Left Leg"]
  52. limbcolliderweld.Part1 = limbcollider
  53. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.4,0,0)
  54. --
  55. local limbcollider = Instance.new("Part", Humanoid.Parent["Right Leg"])
  56. limbcollider.Size = Vector3.new(1,1.3,1)
  57. limbcollider.Shape = "Cylinder"
  58. limbcollider.Transparency = 1
  59. local limbcolliderweld = Instance.new("Weld", limbcollider)
  60. limbcolliderweld.Part0 = Humanoid.Parent["Right Leg"]
  61. limbcolliderweld.Part1 = limbcollider
  62. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.4,0,0)
  63. end
  64. end
  65. mouse.KeyDown:connect(die)
  66. function death()
  67. canragdoll = false
  68. for i,v in pairs(Humanoid.Parent.Torso:GetChildren()) do
  69. if v.ClassName == 'Motor6D' and v.Name ~= "Neck" then
  70. v:destroy()
  71. end
  72. end
  73. local function makeconnections(limb, attachementone, attachmenttwo, twistlower, twistupper, upperangle)
  74. local connection = Instance.new('BallSocketConstraint', limb)
  75. connection.LimitsEnabled = true
  76. connection.Attachment0 = attachementone
  77. connection.Attachment1 = attachmenttwo
  78. connection.TwistLimitsEnabled = true
  79. connection.TwistLowerAngle = twistlower
  80. connection.TwistUpperAngle = twistupper
  81. connection.UpperAngle = 70
  82. end
  83. Humanoid.Parent['Right Arm'].RightShoulderAttachment.Position = Vector3.new(0, 0.5, 0)
  84. Torso.RightCollarAttachment.Position = Vector3.new(1.5, 0.5, 0)
  85. Humanoid.Parent['Left Arm'].LeftShoulderAttachment.Position = Vector3.new(0, 0.5, 0)
  86. Torso.LeftCollarAttachment.Position = Vector3.new(-1.5, 0.5, 0)
  87. local RightLegAttachment = Instance.new("Attachment", Humanoid.Parent["Right Leg"])
  88. RightLegAttachment.Position = Vector3.new(0, 1, 0)
  89. local TorsoRightLegAttachment = Instance.new("Attachment", Torso)
  90. TorsoRightLegAttachment.Position = Vector3.new(0.5, -1, 0)
  91. --
  92. local LeftLegAttachment = Instance.new("Attachment", Humanoid.Parent["Left Leg"])
  93. LeftLegAttachment.Position = Vector3.new(0, 1, 0)
  94. local TorsoLeftLegAttachment = Instance.new("Attachment", Torso)
  95. TorsoLeftLegAttachment.Position = Vector3.new(-0.5, -1, 0)
  96. --
  97. local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  98. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  99. makeconnections(Humanoid.Parent['Right Arm'], Humanoid.Parent['Right Arm'].RightShoulderAttachment, Torso.RightCollarAttachment, -80, 80)
  100. makeconnections(Humanoid.Parent['Left Arm'], Humanoid.Parent['Left Arm'].LeftShoulderAttachment, Torso.LeftCollarAttachment, -80, 80)
  101. makeconnections(Humanoid.Parent['Right Leg'], RightLegAttachment, TorsoRightLegAttachment, -80, 80, 70)
  102. makeconnections(Humanoid.Parent['Left Leg'], LeftLegAttachment, TorsoLeftLegAttachment, -80, 80, 70)
  103. makeconnections(Humanoid.Parent.Head, HeadAttachment, Torso.NeckAttachment, -20, 20, 70)
  104. for i,v in pairs(Humanoid.Parent:GetChildren()) do
  105. if v.ClassName == "Accessory" then
  106. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  107. if attachment1 then
  108. for q,w in pairs(Humanoid.Parent:GetChildren()) do
  109. if w.ClassName == "Part" then
  110. local attachment2 = w:findFirstChild(attachment1.Name)
  111. if attachment2 then
  112. local hinge = Instance.new("HingeConstraint", v.Handle)
  113. hinge.Attachment0 = attachment1
  114. hinge.Attachment1 = attachment2
  115. hinge.LimitsEnabled = true
  116. hinge.LowerAngle = 0
  117. hinge.UpperAngle = 0
  118. end
  119. end
  120. end
  121. end
  122. end
  123. end
  124. end
  125. Humanoid.Died:connect(death)
RAW Paste Data