Gostrondude

Untitled

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