Advertisement
refrop

test .8

May 21st, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.94 KB | None | 0 0
  1. --]]
  2. --By Rufus14 (FINALLY I KNOW HOW TO MAKE A RAGDOLL :D)
  3. --die plz
  4. mouse = game.Players.LocalPlayer:GetMouse()
  5. function ragdoll()
  6. pumpedupkickz:Stop()
  7. game.Players.LocalPlayer.Character.Archivable = true
  8. clone = game.Players.LocalPlayer.Character:Clone()
  9. clone.Parent = workspace
  10. for i,v in pairs(clone:GetChildren()) do
  11. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  12. v:destroy()
  13. end
  14. for i,p in pairs(v:GetChildren()) do
  15. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  16. p:destroy()
  17. end
  18. end
  19. end
  20. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  21. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  22. t:destroy()
  23. end
  24. end
  25. vel = Instance.new("BodyVelocity", clone.Torso)
  26. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  27. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  28. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
  29. using = false
  30. hit = Instance.new("Sound", clone.Torso)
  31. hit.SoundId = "rbxassetid://260430060"
  32. hit.Volume = 5
  33. hit1 = Instance.new("Sound", clone.Torso)
  34. hit1.SoundId = "rbxassetid://138087186"
  35. hit1.Volume = 5
  36. hit2 = Instance.new("Sound", clone.Torso)
  37. hit2.SoundId = "rbxassetid://131237241"
  38. hit2.Volume = 5
  39. hit3 = Instance.new("Sound", clone.Torso)
  40. hit3.SoundId = "rbxassetid://278062209"
  41. hit3.Volume = 5
  42. hit3.TimePosition = 0.33
  43. ded = Instance.new("Sound", clone.Torso)
  44. ded.SoundId = "rbxassetid://418892870"
  45. ded.Volume = 5
  46. local leftarm = clone:findFirstChild("Left Arm")
  47. local rightrm = clone:findFirstChild("Right Arm")
  48. local leftleg = clone:findFirstChild("Left Leg")
  49. local rightleg = clone:findFirstChild("Right Leg")
  50. local head = clone:findFirstChild("Head")
  51. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  52. if g.ClassName == "Part" then
  53. g:destroy()
  54. end
  55. end
  56. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  57. if h.ClassName == "Accesory" then
  58. h:destroy()
  59. end
  60. end
  61. game.Workspace.CurrentCamera.CameraSubject = head
  62. if head ~= nil then
  63. local glue13 = Instance.new("Glue", clone.Torso)
  64. glue13.Part0 = clone.Torso
  65. glue13.Part1 = head
  66. glue13.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  67. glue13.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  68. local collider13 = Instance.new("Part", head)
  69. collider13.Position = Vector3.new(0,999,0)
  70. collider13.Size = Vector3.new(0.5, 0.9, 0.9)
  71. collider13.Shape = "Cylinder"
  72. collider13.Transparency = 1
  73. local weld = Instance.new("Weld", collider13)
  74. weld.Part0 = head
  75. weld.Part1 = collider13
  76. weld.C0 = weld.C0 * CFrame.new(0,0.2,0) * CFrame.Angles(0, 0, 80)
  77. collider13.TopSurface = "Smooth"
  78. collider13.BottomSurface = "Smooth"
  79. collider13.formFactor = "Symmetric"
  80. end
  81. if leftleg ~= nil then
  82. local glue = Instance.new("Glue", clone.Torso)
  83. glue.Part0 = clone.Torso
  84. glue.Part1 = leftleg
  85. glue.Name = "Left leg"
  86. local collider = Instance.new("Part", leftleg)
  87. collider.Position = Vector3.new(0,999,0)
  88. collider.Size = Vector3.new(1.7, 1, 1)
  89. collider.Shape = "Cylinder"
  90. local weld = Instance.new("Weld", collider)
  91. weld.Part0 = leftleg
  92. weld.Part1 = collider
  93. weld.C0 = CFrame.Angles(0, 0, 80)
  94. collider.TopSurface = "Smooth"
  95. collider.BottomSurface = "Smooth"
  96. collider.formFactor = "Symmetric"
  97. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  98. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  99. collider.Transparency = 1
  100. end
  101. ------------
  102. if rightleg ~= nil then
  103. local glue1 = Instance.new("Glue", clone.Torso)
  104. glue1.Part0 = clone.Torso
  105. glue1.Part1 = rightleg
  106. glue1.Name = "Right leg"
  107. local collider1 = Instance.new("Part", rightleg)
  108. collider1.Position = Vector3.new(0,999,0)
  109. collider1.Size = Vector3.new(1.7, 1, 1)
  110. collider1.Shape = "Cylinder"
  111. local weld1 = Instance.new("Weld", collider1)
  112. weld1.Part0 = rightleg
  113. weld1.Part1 = collider1
  114. weld1.C0 = CFrame.Angles(0, 0, 80)
  115. collider1.TopSurface = "Smooth"
  116. collider1.BottomSurface = "Smooth"
  117. collider1.formFactor = "Symmetric"
  118. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  119. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  120. collider1.Transparency = 1
  121. end
  122. ------------
  123. if rightrm ~= nil then
  124. local glue11 = Instance.new("Glue", clone.Torso)
  125. glue11.Part0 = clone.Torso
  126. glue11.Part1 = rightrm
  127. glue11.Name = "Right shoulder"
  128. local collider11 = Instance.new("Part", rightrm)
  129. collider11.Position = Vector3.new(0,9999,0)
  130. collider11.Size = Vector3.new(1.8,1,1)
  131. collider11.Shape = "Cylinder"
  132. local weld11 = Instance.new("Weld", collider11)
  133. weld11.Part0 = rightrm
  134. weld11.Part1 = collider11
  135. weld11.C0 = CFrame.Angles(0, 0, 80)
  136. collider11.TopSurface = "Smooth"
  137. collider11.BottomSurface = "Smooth"
  138. collider11.formFactor = "Symmetric"
  139. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  140. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  141. collider11.Transparency = 1
  142. end
  143. ------------
  144. if leftarm ~= nil then
  145. local glue111 = Instance.new("Glue", clone.Torso)
  146. glue111.Part0 = clone.Torso
  147. glue111.Part1 = leftarm
  148. glue111.Name = "Left shoulder"
  149. local collider111 = Instance.new("Part", leftarm)
  150. collider111.Position = Vector3.new(0,9999,0)
  151. collider111.Size = Vector3.new(1.8,1,1)
  152. collider111.Shape = "Cylinder"
  153. local weld111 = Instance.new("Weld", collider111)
  154. weld111.Part0 = leftarm
  155. weld111.Part1 = collider111
  156. weld111.C0 = CFrame.Angles(0, 0, 80)
  157. collider111.TopSurface = "Smooth"
  158. collider111.BottomSurface = "Smooth"
  159. collider111.formFactor = "Symmetric"
  160. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  161. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  162. collider111.Transparency = 1
  163. ----------------
  164. sensoring = Instance.new("Part", clone.Torso)
  165. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  166. sensoring.CanCollide = false
  167. sensoring.Position = clone.Torso.Position
  168. local welder = Instance.new("Weld", sensoring)
  169. welder.Part0 = clone.Torso
  170. welder.Part1 = sensoring
  171. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  172. sensoring.Transparency = 1
  173. -----------------
  174. sensoring1 = Instance.new("Part", clone.Torso)
  175. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  176. sensoring1.CanCollide = false
  177. sensoring1.Position = clone.Torso.Position
  178. local welder1 = Instance.new("Weld", sensoring)
  179. welder1.Part0 = clone.Torso
  180. welder1.Part1 = sensoring1
  181. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  182. sensoring1.Transparency = 1
  183. end
  184. clone.Name = game.Players.LocalPlayer.Character.Name.." OOF"
  185. ded:Play()
  186. vel:destroy()
  187. wait(0.5)
  188. local function touch()
  189. if not using then
  190. using = true
  191. local Math = math.random(1,4)
  192. if Math == 1 then
  193. hit:Play()
  194. end
  195. if Math == 2 then
  196. hit1:Play()
  197. end
  198. if Math == 3 then
  199. hit2:Play()
  200. end
  201. if Math == 4 then
  202. hit3:Play()
  203. end
  204. wait(0.1)
  205. using = false
  206. end
  207. end
  208. sensoring.Touched:connect(touch)
  209. sensoring1.Touched:connect(touch)
  210. wait(4.47)
  211. hit1.Volume = 0
  212. hit2.Volume = 0
  213. hit3.Volume = 0
  214. hit.Volume = 0
  215. end
  216.  
  217. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  218.  
  219. --di ent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement