Advertisement
spacemonkey3591

Death Test

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