Advertisement
KFCINTHEMORNING

Untitled

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