Justmyusername

Untitled

Apr 17th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.46 KB | None | 0 0
  1. --Converted with ttyyuu12345's model to script plugin v4
  2. --By Rufus14
  3. local huum = game.Players.LocalPlayer.Character.Humanoid
  4. local function search(datone)
  5.     for i,v in pairs(datone:GetChildren()) do
  6.         search(v)
  7.         if v.ClassName == "Sound" then
  8.             v.Volume = 1
  9.         end
  10.     end
  11. end
  12. search(workspace)
  13. mouse = game.Players.LocalPlayer:GetMouse()
  14. huum.MaxHealth = math.huge
  15. huum.Health = math.huge
  16. function sandbox(var,func)
  17.     local env = getfenv(func)
  18.     local newenv = setmetatable({},{
  19.         __index = function(self,k)
  20.             if k=="script" then
  21.                 return var
  22.             else
  23.                 return env[k]
  24.             end
  25.         end,
  26.     })
  27.     setfenv(func,newenv)
  28.     return func
  29. end
  30. cors = {}
  31. mas = Instance.new("Model",game:GetService("Lighting"))
  32. Part0 = Instance.new("Part")
  33. SpecialMesh1 = Instance.new("SpecialMesh")
  34. Part0.Name = "Gun"
  35. Part0.Parent = mas
  36. Part0.CanCollide = false
  37. Part0.Size = Vector3.new(0.970000505, 2.46999931, 0.380000055)
  38. Part0.CFrame = CFrame.new(-211.74501, 2.6168952, 37.920002, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  39. Part0.Position = Vector3.new(-211.74501, 2.6168952, 37.920002)
  40. SpecialMesh1.Parent = Part0
  41. SpecialMesh1.MeshId = "rbxassetid://505563629"
  42. SpecialMesh1.Scale = Vector3.new(0.00499999989, 0.00499999989, 0.00499999989)
  43. SpecialMesh1.TextureId = "rbxassetid://505563636"
  44. SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  45. SpecialMesh1.Scale = Vector3.new(0.00499999989, 0.00499999989, 0.00499999989)
  46. for i,v in pairs(mas:GetChildren()) do
  47.     v.Parent = game:GetService("Players").LocalPlayer.Character
  48.     pcall(function() v:MakeJoints() end)
  49. end
  50. mas:Destroy()
  51. for i,v in pairs(cors) do
  52.     spawn(function()
  53.         pcall(v)
  54.     end)
  55. end
  56. cankys = true
  57. weld = Instance.new("Weld", Part0)
  58. weld.Part0 = game.Players.LocalPlayer.Character["Left Arm"]
  59. weld.Part1 = Part0
  60. 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)
  61. function killyourself(key)
  62.     if cankys then
  63.         cankys = false
  64.         if game.Players.LocalPlayer.Character.Head:findFirstChild("face") then
  65.             game.Players.LocalPlayer.Character.Head.face.Texture = "rbxassetid://1148787155"
  66.         end
  67.         game.Players.LocalPlayer.Character.Archivable = true
  68.         local rhad = game.Players.LocalPlayer.Character["Right Arm"]:Clone()
  69.         local lhad = game.Players.LocalPlayer.Character["Left Arm"]:Clone()
  70.         local gunclone = Part0:Clone()
  71.         local model = Instance.new("Model", workspace.CurrentCamera)
  72.         model.Name = "FPSHands"
  73.         local humm = Instance.new("Humanoid", model)
  74.         rhad.Parent = model
  75.         lhad.Parent = model
  76.         gunclone.Parent = workspace.CurrentCamera
  77.         local wele = Instance.new("Weld", rhad)
  78.         wele.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  79.         wele.Part1 = rhad
  80.         local wele = Instance.new("Weld", lhad)
  81.         wele.Part0 = game.Players.LocalPlayer.Character["Left Arm"]
  82.         wele.Part1 = lhad
  83.         gunclone:BreakJoints()
  84.         local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  85.         rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  86.         rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  87.         rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  88.         local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  89.         lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  90.         lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  91.         lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  92.         local welee = Instance.new("Weld", gunclone)
  93.         welee.Part0 = Part0
  94.         welee.Part1 = gunclone
  95.         for i = 0,2 , 0.02 do
  96.             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)
  97.             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)
  98.             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)
  99.             game:GetService("RunService").RenderStepped:wait()
  100.         end
  101.         script.Parent = nil
  102.         mathh = math.random(1,2000)
  103. function ragdoll()
  104. game.Players.LocalPlayer.Character.Archivable = true
  105. clone = game.Players.LocalPlayer.Character:Clone()
  106. clone.Parent = workspace
  107. local boolvalue = Instance.new("BoolValue", clone)
  108. boolvalue.Name = "rag"..mathh
  109. for i,v in pairs(clone:GetChildren()) do
  110.     if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  111.         v:destroy()
  112.     end
  113.     for i,p in pairs(v:GetChildren()) do
  114.     if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  115.         p:destroy()
  116.     end
  117. end
  118. end
  119. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  120.     if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  121.         t:destroy()
  122.     end
  123. end
  124. vel = Instance.new("BodyVelocity", clone.Torso)
  125. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  126. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  127. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=305296807"
  128. using = false
  129. hit = Instance.new("Sound", clone.Torso)
  130. hit.SoundId = "rbxassetid://260430060"
  131. hit.Volume = 0
  132. hit1 = Instance.new("Sound", clone.Torso)
  133. hit1.SoundId = "rbxassetid://138087186"
  134. hit1.Volume = 0
  135. hit2 = Instance.new("Sound", clone.Torso)
  136. hit2.SoundId = "rbxassetid://131237241"
  137. hit2.Volume = 0
  138. hit3 = Instance.new("Sound", clone.Torso)
  139. hit3.SoundId = "rbxassetid://278062209"
  140. hit3.Volume = 0
  141. hit3.TimePosition = 0.33
  142. ded = Instance.new("Sound", clone.Torso)
  143. ded.SoundId = "rbxassetid://418892870"
  144. ded.Volume = 0
  145. local leftarm = clone:findFirstChild("Left Arm")
  146. local rightrm = clone:findFirstChild("Right Arm")
  147. local leftleg = clone:findFirstChild("Left Leg")
  148. local rightleg = clone:findFirstChild("Right Leg")
  149. local head = clone:findFirstChild("Head")
  150. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  151.     if g.ClassName == "Part" then
  152.         g:destroy()
  153.     end
  154. end
  155. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  156.     if h.ClassName == "Accesory" then
  157.         h:destroy()
  158.     end
  159. end
  160. game.Workspace.CurrentCamera.CameraSubject = head
  161. if head then
  162.             local attachment = Instance.new("Attachment", clone.Head)
  163.             attachment.Position = Vector3.new(0, -0.5, 0)
  164.             attachment.Name = "lol"
  165.             attachment.Visible = false
  166.             clone.Torso.NeckAttachment.Visible = false
  167.             clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  168.             local ball = Instance.new("BallSocketConstraint", clone)
  169.             ball.Attachment0 = clone.Torso.NeckAttachment
  170.             ball.Attachment1 = attachment
  171.             ball.LimitsEnabled = true
  172.             ball.TwistLimitsEnabled = true
  173.             ball.UpperAngle = 90
  174.             ball.Restitution = 0.5
  175.             ball.TwistUpperAngle = 90
  176.             ball.TwistLowerAngle = -90
  177.             local  collidepartofleftleg = Instance.new("Part", clone.Torso)
  178.             collidepartofleftleg.Name = "Bone"
  179.             collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  180.             collidepartofleftleg.Transparency = 1
  181.             collidepartofleftleg:BreakJoints()
  182.             local weeld = Instance.new("Weld", collidepartofleftleg)
  183.             weeld.Part0 = collidepartofleftleg
  184.             weeld.Part1 = clone["Head"]
  185.         end
  186. if leftleg ~= nil then
  187. local glue = Instance.new("Glue", clone.Torso)
  188. glue.Part0 = clone.Torso
  189. glue.Part1 = leftleg
  190. glue.Name = "Left leg"
  191. local collider = Instance.new("Part", leftleg)
  192. collider.Position = Vector3.new(0,999,0)
  193. collider.Size = Vector3.new(1.5, 1, 1)
  194. collider.Shape = "Cylinder"
  195. local weld = Instance.new("Weld", collider)
  196. weld.Part0 = leftleg
  197. weld.Part1 = collider
  198. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  199. collider.TopSurface = "Smooth"
  200. collider.BottomSurface = "Smooth"
  201. collider.formFactor = "Symmetric"
  202. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  203. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  204. collider.Transparency = 1
  205. end
  206. ------------
  207. if rightleg ~= nil then
  208. local glue1 = Instance.new("Glue", clone.Torso)
  209. glue1.Part0 = clone.Torso
  210. glue1.Part1 = rightleg
  211. glue1.Name = "Right leg"
  212. local collider1 = Instance.new("Part", rightleg)
  213. collider1.Position = Vector3.new(0,999,0)
  214. collider1.Size = Vector3.new(1.5, 1, 1)
  215. collider1.Shape = "Cylinder"
  216. local weld1 = Instance.new("Weld", collider1)
  217. weld1.Part0 = rightleg
  218. weld1.Part1 = collider1
  219. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  220. collider1.TopSurface = "Smooth"
  221. collider1.BottomSurface = "Smooth"
  222. collider1.formFactor = "Symmetric"
  223. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  224. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  225. collider1.Transparency = 1
  226. end
  227. ------------
  228. if rightrm ~= nil then
  229. local glue11 = Instance.new("Glue", clone.Torso)
  230. glue11.Part0 = clone.Torso
  231. glue11.Part1 = rightrm
  232. glue11.Name = "Right shoulder"
  233. local collider11 = Instance.new("Part", rightrm)
  234. collider11.Position = Vector3.new(0,9999,0)
  235. collider11.Size = Vector3.new(1.5,1,1)
  236. collider11.Shape = "Cylinder"
  237. local weld11 = Instance.new("Weld", collider11)
  238. weld11.Part0 = rightrm
  239. weld11.Part1 = collider11
  240. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  241. collider11.TopSurface = "Smooth"
  242. collider11.BottomSurface = "Smooth"
  243. collider11.formFactor = "Symmetric"
  244. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  245. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  246. collider11.Transparency = 1
  247. end
  248. ------------
  249. if leftarm ~= nil then
  250. local glue111 = Instance.new("Glue", clone.Torso)
  251. glue111.Part0 = clone.Torso
  252. glue111.Part1 = leftarm
  253. glue111.Name = "Left shoulder"
  254. local collider111 = Instance.new("Part", leftarm)
  255. collider111.Position = Vector3.new(0,9999,0)
  256. collider111.Size = Vector3.new(1.5,1,1)
  257. collider111.Shape = "Cylinder"
  258. local weld111 = Instance.new("Weld", collider111)
  259. weld111.Part0 = leftarm
  260. weld111.Part1 = collider111
  261. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  262. collider111.TopSurface = "Smooth"
  263. collider111.BottomSurface = "Smooth"
  264. collider111.formFactor = "Symmetric"
  265. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  266. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  267. collider111.Transparency = 1
  268. ----------------
  269. sensoring = Instance.new("Part", clone.Torso)
  270. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  271. sensoring.CanCollide = false
  272. sensoring.Position = clone.Torso.Position
  273. local welder = Instance.new("Weld", sensoring)
  274. welder.Part0 = clone.Torso
  275. welder.Part1 = sensoring
  276. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  277. sensoring.Transparency = 1
  278. -----------------
  279. sensoring1 = Instance.new("Part", clone.Torso)
  280. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  281. sensoring1.CanCollide = false
  282. sensoring1.Position = clone.Torso.Position
  283. local welder1 = Instance.new("Weld", sensoring)
  284. welder1.Part0 = clone.Torso
  285. welder1.Part1 = sensoring1
  286. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  287. sensoring1.Transparency = 1
  288. end
  289. clone.Name = game.Players.LocalPlayer.Character.Name.." (Suicide)"
  290. ded:Play()
  291. vel:destroy()
  292. wait(0.5)
  293. local function touch()
  294.     if not using then
  295.         using = true
  296.         local Math = math.random(1,4)
  297.         if Math == 1 then
  298.             hit:Play()
  299.         end
  300.         if Math == 2 then
  301.             hit1:Play()
  302.         end
  303.         if Math == 3 then
  304.             hit2:Play()
  305.         end
  306.         if Math == 4 then
  307.             hit3:Play()
  308.         end
  309.         wait(0.1)
  310.         using = false
  311.     end
  312. end
  313. sensoring.Touched:connect(touch)
  314. sensoring1.Touched:connect(touch)
  315. --[[while true do
  316.     clone.Head.CanCollide = false
  317.     game:GetService("RunService").Stepped:wait()
  318. end--]]
  319. end
  320.  
  321. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  322.  
  323. --di ent
  324. local shot = Instance.new("Sound", Part0)
  325. shot.SoundId = "rbxassetid://304679846"
  326. shot.Volume = 10
  327. shot:Play()
  328. wait(0.05)
  329. -- Objects
  330.  
  331. local ScreenGui = Instance.new("ScreenGui")
  332. local Frame = Instance.new("Frame")
  333.  
  334. -- Properties
  335.  
  336. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  337.  
  338. Frame.Parent = ScreenGui
  339. Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  340. Frame.BackgroundTransparency = 0.5
  341. Frame.Size = UDim2.new(2, 100, 2, 100)
  342. huum.Health = 0
  343. for i = 1,3 do
  344.     game:GetService("RunService").RenderStepped:wait()
  345. end
  346. Frame.BackgroundTransparency = 0
  347. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  348. workspace.CurrentCamera.CameraType = "Scriptable"
  349. workspace.CurrentCamera.CFrame = CFrame.new(0,100000,0)
  350. huum.Health = 0
  351. local textt = math.random(1,9)
  352. if textt == 1 then
  353.     game.Players.LocalPlayer:Kick("Stupid situation, you just died.")
  354. end
  355. if textt == 2 then
  356.     game.Players.LocalPlayer:Kick("You just committed suicide lol.")
  357. end
  358. if textt == 3 then
  359.     game.Players.LocalPlayer:Kick("Suicide is a option.")
  360. end
  361. if textt == 4 then
  362.     game.Players.LocalPlayer:Kick("Fun Fact - You can escape from Grab Knife with that script.")
  363. end
  364. if textt == 5 then
  365.     game.Players.LocalPlayer:Kick("You are dead, for real")
  366. end
  367. if textt == 6 then
  368.     game.Players.LocalPlayer:Kick("you died")
  369. end
  370. if textt == 7 then
  371.     game.Players.LocalPlayer:Kick("Now people will look at your dead body.")
  372. end
  373. if textt == 8 then
  374.     game.Players.LocalPlayer:Kick("Its just a flesh wound.")
  375. end
  376. if textt == 9 then
  377.     game.Players.LocalPlayer:Kick("This is how it looks like when you die.")
  378. end
  379.     end
  380. end
  381. mouse.Button1Down:connect(killyourself)
Add Comment
Please, Sign In to add comment