Advertisement
AlbertsHere

fe death ragdoll

Feb 18th, 2019
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.01 KB | None | 0 0
  1. wait(1)
  2. print("Hello world!")
  3.  
  4. Character = game.Players.LocalPlayer.Character
  5. Humanoid = Character.Humanoid
  6. Torso = Character.Torso
  7.  
  8. function OnDeath()
  9. print("Death")-- HAHA
  10. wait(0.00000001)
  11. Humanoid.Parent = nil
  12. if Torso then
  13. local Head = Character:FindFirstChild("Head")
  14. if Head then
  15. local Neck = Instance.new("Weld")
  16. Neck.Name = "Neck"
  17. Neck.Part0 = Torso
  18. Neck.Part1 = Head
  19. Neck.C0 = CFrame.new(0, 1.5, 0)
  20. Neck.C1 = CFrame.new()
  21. Neck.Parent = Torso
  22. end
  23. local Limb = Character:FindFirstChild("Right Arm")
  24. if Limb then
  25.  
  26. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  27. local Joint = Instance.new("Glue")
  28. Joint.Name = "RightShoulder"
  29. Joint.Part0 = Torso
  30. Joint.Part1 = Limb
  31. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  32. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  33. Joint.Parent = Torso
  34.  
  35. local B = Instance.new("Part")
  36. B.TopSurface = 0
  37. B.BottomSurface = 0
  38. B.formFactor = "Symmetric"
  39. B.Size = Vector3.new(1, 1, 1)
  40. B.Transparency = 1
  41. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  42. B.Parent = Character
  43. local W = Instance.new("Weld")
  44. W.Part0 = Limb
  45. W.Part1 = B
  46. W.C0 = CFrame.new(0, -0.5, 0)
  47. W.Parent = Limb
  48.  
  49. end
  50. local Limb = Character:FindFirstChild("Left Arm")
  51. if Limb then
  52.  
  53. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  54. local Joint = Instance.new("Glue")
  55. Joint.Name = "LeftShoulder"
  56. Joint.Part0 = Torso
  57. Joint.Part1 = Limb
  58. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  59. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  60. Joint.Parent = Torso
  61.  
  62. local B = Instance.new("Part")
  63. B.TopSurface = 0
  64. B.BottomSurface = 0
  65. B.formFactor = "Symmetric"
  66. B.Size = Vector3.new(1, 1, 1)
  67. B.Transparency = 1
  68. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  69. B.Parent = Character
  70. local W = Instance.new("Weld")
  71. W.Part0 = Limb
  72. W.Part1 = B
  73. W.C0 = CFrame.new(0, -0.5, 0)
  74. W.Parent = Limb
  75.  
  76. end
  77. local Limb = Character:FindFirstChild("Right Leg")
  78. if Limb then
  79.  
  80. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  81. local Joint = Instance.new("Glue")
  82. Joint.Name = "RightHip"
  83. Joint.Part0 = Torso
  84. Joint.Part1 = Limb
  85. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  86. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  87. Joint.Parent = Torso
  88.  
  89. local B = Instance.new("Part")
  90. B.TopSurface = 0
  91. B.BottomSurface = 0
  92. B.formFactor = "Symmetric"
  93. B.Size = Vector3.new(1, 1, 1)
  94. B.Transparency = 1
  95. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  96. B.Parent = Character
  97. local W = Instance.new("Weld")
  98. W.Part0 = Limb
  99. W.Part1 = B
  100. W.C0 = CFrame.new(0, -0.5, 0)
  101. W.Parent = Limb
  102.  
  103. end
  104. local Limb = Character:FindFirstChild("Left Leg")
  105. if Limb then
  106.  
  107. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  108. local Joint = Instance.new("Glue")
  109. Joint.Name = "LeftHip"
  110. Joint.Part0 = Torso
  111. Joint.Part1 = Limb
  112. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  113. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  114. Joint.Parent = Torso
  115.  
  116. local B = Instance.new("Part")
  117. B.TopSurface = 0
  118. B.BottomSurface = 0
  119. B.formFactor = "Symmetric"
  120. B.Size = Vector3.new(1, 1, 1)
  121. B.Transparency = 1
  122. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  123. B.Parent = Character
  124. local W = Instance.new("Weld")
  125. W.Part0 = Limb
  126. W.Part1 = B
  127. W.C0 = CFrame.new(0, -0.5, 0)
  128. W.Parent = Limb
  129.  
  130. end
  131. --[
  132. local Bar = Instance.new("Part")
  133. Bar.TopSurface = 0
  134. Bar.BottomSurface = 0
  135. Bar.formFactor = "Symmetric"
  136. Bar.Size = Vector3.new(1, 1, 1)
  137. Bar.Transparency = 1
  138. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  139. Bar.Parent = Character
  140. local Weld = Instance.new("Weld")
  141. Weld.Part0 = Torso
  142. Weld.Part1 = Bar
  143. Weld.C0 = CFrame.new(0, 0.5, 0)
  144. Weld.Parent = Torso
  145. --]]
  146. end
  147. end
  148.  
  149. Humanoid.Died:connect(OnDeath)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement