Advertisement
xx_g

suicide gun

Dec 17th, 2017
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.79 KB | None | 0 0
  1.  
  2. mouse = game.Players.LocalPlayer:GetMouse()
  3. game.Players.LocalPlayer.Character.Humanoid.MaxHealth = math.huge
  4. game.Players.LocalPlayer.Character.Humanoid.Health = math.huge
  5. function sandbox(var,func)
  6. local env = getfenv(func)
  7. local newenv = setmetatable({},{
  8. __index = function(self,k)
  9. if k=="script" then
  10. return var
  11. else
  12. return env[k]
  13. end
  14. end,
  15. })
  16. setfenv(func,newenv)
  17. return func
  18. end
  19. cors = {}
  20. mas = Instance.new("Model",game:GetService("Lighting"))
  21. Part0 = Instance.new("Part")
  22. SpecialMesh1 = Instance.new("SpecialMesh")
  23. Part0.Name = "Gun"
  24. Part0.Parent = mas
  25. Part0.CanCollide = false
  26. Part0.Size = Vector3.new(0.970000505, 2.46999931, 0.380000055)
  27. Part0.CFrame = CFrame.new(-211.74501, 2.6168952, 37.920002, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  28. Part0.Position = Vector3.new(-211.74501, 2.6168952, 37.920002)
  29. SpecialMesh1.Parent = Part0
  30. SpecialMesh1.MeshId = "rbxassetid://505563629"
  31. SpecialMesh1.Scale = Vector3.new(0.00499999989, 0.00499999989, 0.00499999989)
  32. SpecialMesh1.TextureId = "rbxassetid://505563636"
  33. SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  34. SpecialMesh1.Scale = Vector3.new(0.00499999989, 0.00499999989, 0.00499999989)
  35. for i,v in pairs(mas:GetChildren()) do
  36. v.Parent = game:GetService("Players").LocalPlayer.Character
  37. pcall(function() v:MakeJoints() end)
  38. end
  39. mas:Destroy()
  40. for i,v in pairs(cors) do
  41. spawn(function()
  42. pcall(v)
  43. end)
  44. end
  45. cankys = true
  46. weld = Instance.new("Weld", Part0)
  47. weld.Part0 = game.Players.LocalPlayer.Character["Left Arm"]
  48. weld.Part1 = Part0
  49. weld.C0 = CFrame.new(0.158004761, -1.63815379, -1.00455856, -5.79879307e-22, 9.29214533e-23, 1, -0.587791622, -0.809012473, -2.65673535e-22, 0.809012473, -0.587791622, 5.23747954e-22)
  50. function killyourself(key)
  51. if cankys then
  52. cankys = false
  53. if game.Players.LocalPlayer.Character.Head:findFirstChild("face") then
  54. game.Players.LocalPlayer.Character.Head.face.Texture = "rbxassetid://1148787155"
  55. end
  56. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  57. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  58. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  59. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  60. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  61. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  62. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  63. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  64. for i = 0,2 , 0.02 do
  65. weld.C0 = weld.C0:lerp(CFrame.new(0.720336914, -0.258590698, -0.514060974, 0.409927189, 0.572569966, -0.710018694, 0.0567400455, 0.760912359, 0.646370947, 0.910354853, -0.305250764, 0.279430419),i)
  66. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.832244873, 0.405325174, -1.44667816, 0.719340205, -0.634600103, -0.28254649, -0.214658037, 0.183768019, -0.959245205, 0.660660148, 0.750674427, -0.00403028121),i)
  67. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.921920776, 0.294008493, -1.1861496, 0.88295126, 0.469464868, 6.12843053e-07, -0.0490720123, 0.0922940373, -0.994521856, -0.466893107, 0.878114343, 0.104528703),i)
  68. game:GetService("RunService").RenderStepped:wait()
  69. end
  70. script.Parent = nil
  71. function ragdoll()
  72. game.Players.LocalPlayer.Character.Archivable = true
  73. clone = game.Players.LocalPlayer.Character:Clone()
  74. clone.Parent = workspace
  75. for i,v in pairs(clone:GetChildren()) do
  76. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  77. v:destroy()
  78. end
  79. for i,p in pairs(v:GetChildren()) do
  80. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  81. p:destroy()
  82. end
  83. end
  84. end
  85. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  86. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  87. t:destroy()
  88. end
  89. end
  90. vel = Instance.new("BodyVelocity", clone.Torso)
  91. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  92. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  93. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=305296807"
  94. using = false
  95. hit = Instance.new("Sound", clone.Torso)
  96. hit.SoundId = "rbxassetid://260430060"
  97. hit.Volume = 0
  98. hit1 = Instance.new("Sound", clone.Torso)
  99. hit1.SoundId = "rbxassetid://138087186"
  100. hit1.Volume = 0
  101. hit2 = Instance.new("Sound", clone.Torso)
  102. hit2.SoundId = "rbxassetid://131237241"
  103. hit2.Volume = 0
  104. hit3 = Instance.new("Sound", clone.Torso)
  105. hit3.SoundId = "rbxassetid://278062209"
  106. hit3.Volume = 0
  107. hit3.TimePosition = 0.33
  108. ded = Instance.new("Sound", clone.Torso)
  109. ded.SoundId = "rbxassetid://304679846"
  110. ded.Volume = 10
  111. local leftarm = clone:findFirstChild("Left Arm")
  112. local rightrm = clone:findFirstChild("Right Arm")
  113. local leftleg = clone:findFirstChild("Left Leg")
  114. local rightleg = clone:findFirstChild("Right Leg")
  115. local head = clone:findFirstChild("Head")
  116. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  117. if g.ClassName == "Part" then
  118. g:destroy()
  119. end
  120. end
  121. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  122. if h.ClassName == "Accesory" then
  123. h:destroy()
  124. end
  125. end
  126. game.Workspace.CurrentCamera.CameraSubject = head
  127. if head then
  128. local attachment = Instance.new("Attachment", clone.Head)
  129. attachment.Position = Vector3.new(0, -0.5, 0)
  130. attachment.Name = "lol"
  131. attachment.Visible = false
  132. clone.Torso.NeckAttachment.Visible = false
  133. clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  134. local ball = Instance.new("BallSocketConstraint", clone)
  135. ball.Attachment0 = clone.Torso.NeckAttachment
  136. ball.Attachment1 = attachment
  137. ball.LimitsEnabled = true
  138. ball.TwistLimitsEnabled = true
  139. ball.UpperAngle = 90
  140. ball.Restitution = 0.5
  141. ball.TwistUpperAngle = 90
  142. ball.TwistLowerAngle = -90
  143. local collidepartofleftleg = Instance.new("Part", clone.Torso)
  144. collidepartofleftleg.Name = "Bone"
  145. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  146. collidepartofleftleg.Transparency = 1
  147. collidepartofleftleg:BreakJoints()
  148. local weeld = Instance.new("Weld", collidepartofleftleg)
  149. weeld.Part0 = collidepartofleftleg
  150. weeld.Part1 = clone["Head"]
  151. end
  152. if leftleg ~= nil then
  153. local glue = Instance.new("Glue", clone.Torso)
  154. glue.Part0 = clone.Torso
  155. glue.Part1 = leftleg
  156. glue.Name = "Left leg"
  157. local collider = Instance.new("Part", leftleg)
  158. collider.Position = Vector3.new(0,999,0)
  159. collider.Size = Vector3.new(1.5, 1, 1)
  160. collider.Shape = "Cylinder"
  161. local weld = Instance.new("Weld", collider)
  162. weld.Part0 = leftleg
  163. weld.Part1 = collider
  164. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  165. collider.TopSurface = "Smooth"
  166. collider.BottomSurface = "Smooth"
  167. collider.formFactor = "Symmetric"
  168. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  169. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  170. collider.Transparency = 1
  171. end
  172. ------------
  173. if rightleg ~= nil then
  174. local glue1 = Instance.new("Glue", clone.Torso)
  175. glue1.Part0 = clone.Torso
  176. glue1.Part1 = rightleg
  177. glue1.Name = "Right leg"
  178. local collider1 = Instance.new("Part", rightleg)
  179. collider1.Position = Vector3.new(0,999,0)
  180. collider1.Size = Vector3.new(1.5, 1, 1)
  181. collider1.Shape = "Cylinder"
  182. local weld1 = Instance.new("Weld", collider1)
  183. weld1.Part0 = rightleg
  184. weld1.Part1 = collider1
  185. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  186. collider1.TopSurface = "Smooth"
  187. collider1.BottomSurface = "Smooth"
  188. collider1.formFactor = "Symmetric"
  189. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  190. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  191. collider1.Transparency = 1
  192. end
  193. ------------
  194. if rightrm ~= nil then
  195. local glue11 = Instance.new("Glue", clone.Torso)
  196. glue11.Part0 = clone.Torso
  197. glue11.Part1 = rightrm
  198. glue11.Name = "Right shoulder"
  199. local collider11 = Instance.new("Part", rightrm)
  200. collider11.Position = Vector3.new(0,9999,0)
  201. collider11.Size = Vector3.new(1.5,1,1)
  202. collider11.Shape = "Cylinder"
  203. local weld11 = Instance.new("Weld", collider11)
  204. weld11.Part0 = rightrm
  205. weld11.Part1 = collider11
  206. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  207. collider11.TopSurface = "Smooth"
  208. collider11.BottomSurface = "Smooth"
  209. collider11.formFactor = "Symmetric"
  210. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  211. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  212. collider11.Transparency = 1
  213. end
  214. ------------
  215. if leftarm ~= nil then
  216. local glue111 = Instance.new("Glue", clone.Torso)
  217. glue111.Part0 = clone.Torso
  218. glue111.Part1 = leftarm
  219. glue111.Name = "Left shoulder"
  220. local collider111 = Instance.new("Part", leftarm)
  221. collider111.Position = Vector3.new(0,9999,0)
  222. collider111.Size = Vector3.new(1.5,1,1)
  223. collider111.Shape = "Cylinder"
  224. local weld111 = Instance.new("Weld", collider111)
  225. weld111.Part0 = leftarm
  226. weld111.Part1 = collider111
  227. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  228. collider111.TopSurface = "Smooth"
  229. collider111.BottomSurface = "Smooth"
  230. collider111.formFactor = "Symmetric"
  231. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  232. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  233. collider111.Transparency = 1
  234. ----------------
  235. sensoring = Instance.new("Part", clone.Torso)
  236. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  237. sensoring.CanCollide = false
  238. sensoring.Position = clone.Torso.Position
  239. local welder = Instance.new("Weld", sensoring)
  240. welder.Part0 = clone.Torso
  241. welder.Part1 = sensoring
  242. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  243. sensoring.Transparency = 1
  244. -----------------
  245. sensoring1 = Instance.new("Part", clone.Torso)
  246. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  247. sensoring1.CanCollide = false
  248. sensoring1.Position = clone.Torso.Position
  249. local welder1 = Instance.new("Weld", sensoring)
  250. welder1.Part0 = clone.Torso
  251. welder1.Part1 = sensoring1
  252. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  253. sensoring1.Transparency = 1
  254. end
  255. clone.Name = game.Players.LocalPlayer.Character.Name.." (Suicide)"
  256. ded:Play()
  257. vel:destroy()
  258. wait(0.5)
  259. local function touch()
  260. if not using then
  261. using = true
  262. local Math = math.random(1,4)
  263. if Math == 1 then
  264. hit:Play()
  265. end
  266. if Math == 2 then
  267. hit1:Play()
  268. end
  269. if Math == 3 then
  270. hit2:Play()
  271. end
  272. if Math == 4 then
  273. hit3:Play()
  274. end
  275. wait(0.1)
  276. using = false
  277. end
  278. end
  279. sensoring.Touched:connect(touch)
  280. sensoring1.Touched:connect(touch)
  281. while true do
  282. clone.Head.CanCollide = false
  283. game:GetService("RunService").Stepped:wait()
  284. end
  285. end
  286.  
  287. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  288.  
  289. --di ent
  290. game.Players.LocalPlayer.Character.Humanoid.Health = 0
  291. end
  292. end
  293. mouse.Button1Down:connect(killyourself)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement