Advertisement
Animescapetower

Untitled

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