Gostrondude

Untitled

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