Advertisement
Guest User

Untitled

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