Advertisement
ohusq

Untitled

Nov 1st, 2021
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.40 KB | None | 0 0
  1. --e = Kill
  2. --q = Fix Knife
  3.  
  4.  
  5. me = game.Players.LocalPlayer
  6. char = me.Character
  7. selected = false
  8. attacking = false
  9. hurt = false
  10. grabbed = nil
  11. mode = "kill"
  12. bloodcolors = {"Bright red", "Really red", "Crimson"}
  13. enabled = true
  14. enabled2 = true
  15.  
  16. local breaksound = Instance.new("Sound")
  17. breaksound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  18. breaksound.Parent = game.Workspace
  19. breaksound.Volume = 0.8
  20.  
  21. local killsound = Instance.new("Sound")
  22. killsound.SoundId = "http://www.roblox.com/asset?id=16950449"
  23. killsound.Pitch = 0.65
  24. killsound.Parent = game.Workspace
  25.  
  26. local drainsound = Instance.new("Sound")
  27. drainsound.SoundId = "http://www.roblox.com/asset/?id=2785493"
  28. drainsound.Pitch = 0.7
  29.  
  30.  
  31. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  32. part.Parent = parent
  33. part.formFactor = form
  34. part.CanCollide = collide
  35. part.Transparency = tran
  36. part.Reflectance = ref
  37. part.Size = Vector3.new(x,y,z)
  38. part.BrickColor = BrickColor.new(color)
  39. part.TopSurface = 0
  40. part.BottomSurface = 0
  41. part.Anchored = anchor
  42. part.Locked = true
  43. part:BreakJoints()
  44. end
  45.  
  46. function weld(w, p, p1, a, b, c, x, y, z)
  47. w.Parent = p
  48. w.Part0 = p
  49. w.Part1 = p1
  50. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  51. end
  52.  
  53. function mesh(mesh, parent, x, y, z, type)
  54. mesh.Parent = parent
  55. mesh.Scale = Vector3.new(x, y, z)
  56. mesh.MeshType = type
  57. end
  58.  
  59. function remgui()
  60. for _,v in pairs(me.PlayerGui:GetChildren()) do
  61. if v.Name == "Modeshow" then
  62. v:remove()
  63. end
  64. end
  65. end
  66.  
  67. function inform(text,delay)
  68. remgui()
  69. local sc = Instance.new("ScreenGui")
  70. sc.Parent = me.PlayerGui
  71. sc.Name = "Modeshow"
  72. local bak = Instance.new("Frame",sc)
  73. bak.BackgroundColor3 = Color3.new(1,1,1)
  74. bak.Size = UDim2.new(0.94,0,0.1,0)
  75. bak.Position = UDim2.new(0.03,0,0.037,0)
  76. bak.BorderSizePixel = 0
  77. local gi = Instance.new("TextLabel",sc)
  78. gi.Size = UDim2.new(0.92,0,0.09,0)
  79. gi.BackgroundColor3 = Color3.new(0,0,0)
  80. gi.Position = UDim2.new(0.04,0,0.042,0)
  81. gi.TextColor3 = Color3.new(1,1,1)
  82. gi.FontSize = "Size14"
  83. gi.Text = text
  84. coroutine.resume(coroutine.create(function()
  85. wait(delay)
  86. sc:remove()
  87. end))
  88. end
  89.  
  90. if char:findFirstChild("Bricks",true) then
  91. char:findFirstChild("Bricks",true):remove()
  92. end
  93.  
  94. bricks = Instance.new("Model",me.Character)
  95. bricks.Name = "Bricks"
  96.  
  97. --Parts-------------------------Parts-------------------------Parts-------------------------Parts----------------------
  98.  
  99. rarm = char:findFirstChild("Right Arm")
  100. larm = char:findFirstChild("Left Arm")
  101. lleg = char:findFirstChild("Left Leg")
  102. torso = char:findFirstChild("Torso")
  103. hum = char:findFirstChild("Humanoid")
  104. rleg = char:findFirstChild("Right Leg")
  105.  
  106. righthold = Instance.new("Part")
  107. prop(righthold, bricks, false, 1, 0, 0.1, 0.1, 0.1, "Mid gray", false, "Custom")
  108. w11 = Instance.new("Weld")
  109. weld(w11, rarm, righthold, 0, 0, 0, 0, 1, 0)
  110.  
  111. lefthold = Instance.new("Part")
  112. prop(lefthold, bricks, false, 1, 0, 0.1, 0.1, 0.1, "Mid gray", false, "Custom")
  113. w12 = Instance.new("Weld")
  114. weld(w12, larm, lefthold, 0, 0, 0, 0, 1, 0)
  115.  
  116. hold = Instance.new("Part")
  117. prop(hold, bricks, false, 0, 0, 0.2, 0.3, 0.3, "Black", false, "Custom")
  118. oh = Instance.new("Weld")
  119. weld(oh, torso, hold, -math.pi/-0.86, 1.5, math.rad(0), -0.35, -0.4, -0.5)
  120.  
  121. knife = Instance.new("Part")
  122. knife.Material = "Wood"
  123. prop(knife, bricks, false, 0, 0, 0.25, 1.1, 0.3, "Pine Cone", false, "Custom")
  124. orr = Instance.new("Weld")
  125. weld(orr, hold, knife, 0, 0, 0, 0, 0.7, 0)
  126. ar = Instance.new("Weld")
  127. weld(ar, lefthold, nil, math.pi/2, 0, math.pi, 0, 0, 0)
  128.  
  129. blade = Instance.new("Part")
  130. blade.Material = "Neon"
  131. prop(blade, bricks, false, 0, 0, 0.1, 2.5, 0.25, "Mid gray", false, "Custom")
  132. Instance.new("BlockMesh",blade).Scale = Vector3.new(0.3,1,1)
  133. w2 = Instance.new("Weld")
  134. weld(w2, knife, blade, 0, 0, 0, 0, -0.65, 0)
  135.  
  136. blade2 = Instance.new("Part")
  137. blade2.Material = "Neon"
  138. prop(blade2, bricks, false, 0, 0, 0.1, 0.4, 0.25, "Mid gray", false, "Custom")
  139. local mew = Instance.new("SpecialMesh",blade2)
  140. mew.MeshType = "Wedge"
  141. mew.Scale = Vector3.new(0.3,1,1)
  142. w3 = Instance.new("Weld")
  143. weld(w3, blade, blade2, 0, 0, 0, 0, -1.45, 0)
  144.  
  145.  
  146. rb = Instance.new("Part")
  147. prop(rb, bricks, false, 1, 0, 0.1, 0.1, 0.1, "Bright red", false, "Custom")
  148. w13 = Instance.new("Weld")
  149. weld(w13, torso, rb, 0, 0, 0, -1.5, -0.5, 0)
  150.  
  151. lb = Instance.new("Part")
  152. prop(lb, bricks, false, 1, 0, 0.1, 0.1, 0.1, "Bright red", false, "Custom")
  153. w14 = Instance.new("Weld")
  154. weld(w14, torso, lb, 0, 0, 0, 1.5, -0.5, 0)
  155.  
  156. rw = Instance.new("Weld")
  157. weld(rw, rb, nil, 0, 0, 0, 0, 0.5, 0)
  158.  
  159. lw = Instance.new("Weld")
  160. weld(lw, lb, nil, 0, 0, 0, 0, 0.5, 0)
  161.  
  162. grabweld = nil
  163. platlol = nil
  164. lolhum = nil
  165.  
  166. function touch(h)
  167. if hurt then
  168. if grabbed == nil then
  169. local hu = h.Parent:findFirstChild("Humanoid")
  170. local head = h.Parent:findFirstChild("Head")
  171. local torz = h.Parent:findFirstChild("Torso")
  172. if hu ~= nil and head ~= nil and torz ~= nil and h.Parent.Name ~= name then
  173. if hu.Health > 0 then
  174. grabbed = torz
  175. hu.PlatformStand = true
  176. local w = Instance.new("Weld")
  177. weld(w,righthold,grabbed,math.pi/2,0.2,0,0.7,-0.9,-0.6)
  178. grabweld = w
  179. lolhum = hu
  180. local lolxd = true
  181. platlol = lolxd
  182. hu.Changed:connect(function(prop)
  183. if prop == "PlatformStand" and platlol then
  184. hu.PlatformStand = true
  185. end
  186. end)
  187. end
  188. end
  189. end
  190. end
  191. end
  192.  
  193. righthold.Touched:connect(touch)
  194. lefthold.Touched:connect(touch)
  195.  
  196. function bleed(part,po)
  197. local lol1 = math.random(5,30)/100
  198. local lol2 = math.random(5,30)/100
  199. local lol3 = math.random(5,30)/100
  200. local lol4 = math.random(1,#bloodcolors)
  201. local p = Instance.new("Part")
  202. prop(p,part.Parent,false,0,0,lol1,lol2,lol3,bloodcolors[lol4],false,"Custom")
  203. p.CFrame = part.CFrame * CFrame.new(math.random(-5,5)/10,po,math.random(-5,5)/10)
  204. p.Velocity = Vector3.new(math.random(-25,25),math.random(-25,25),math.random(-25,25))
  205. p.RotVelocity = Vector3.new(math.random(-400,400)/10,math.random(-400,400)/10,math.random(-400,400)/10)
  206. p.CanCollide = true
  207. coroutine.resume(coroutine.create(function()
  208. wait(3)
  209. p:remove()
  210. end))
  211. end
  212.  
  213. h = Instance.new("HopperBin",me.Backpack)
  214.  
  215. h.Name = "Knife"
  216.  
  217. script.Parent = h
  218.  
  219.  
  220. bin = h
  221.  
  222.  
  223.  
  224. function select(mouse)
  225. orr.Part1 = nil
  226. ar.Part1 = knife
  227. mouse.Button1Down:connect(function()
  228. if attacking == false then
  229. attacking = true
  230. lw.Part1 = larm
  231. rw.Part1 = rarm
  232. hurt = true
  233. for i=1, 8 do
  234. rw.C0 = rw.C0 * CFrame.new(-0.03,0,-0.08) * CFrame.fromEulerAnglesXYZ(0.18,0.04,0)
  235. lw.C0 = lw.C0 * CFrame.new(0.06,0,-0.06) * CFrame.fromEulerAnglesXYZ(0.15,-0.11,-0.05)
  236. wait()
  237. end
  238. wait(1)
  239. hurt = false
  240. if grabbed == nil then
  241. for i=1, 4 do
  242. rw.C0 = rw.C0 * CFrame.new(0.06,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.36,-0.08,0)
  243. lw.C0 = lw.C0 * CFrame.new(-0.12,0,0.12) * CFrame.fromEulerAnglesXYZ(-0.3,0.22,0.05)
  244. wait()
  245. end
  246. lw.C0 = CFrame.new(0,0,0)
  247. rw.C0 = CFrame.new(0,0,0)
  248. lw.Part1 = nil
  249. rw.Part1 = nil
  250. attacking = false
  251. end
  252. elseif hurt == false and grabbed ~= nil and mode == "drop" then
  253. enabled2 = true
  254. grabweld:remove()
  255. grabweld = nil
  256. platlol = false
  257. grabbed = nil
  258. lolhum.PlatformStand = false
  259. lolhum = nil
  260. for i=1, 4 do
  261. rw.C0 = rw.C0 * CFrame.new(0.06,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.36,-0.08,0)
  262. lw.C0 = lw.C0 * CFrame.new(-0.12,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.3,0.2,0)
  263. wait()
  264. end
  265. lw.C0 = CFrame.new(0,0,0)
  266. rw.C0 = CFrame.new(0,0,0)
  267. lw.Part1 = nil
  268. rw.Part1 = nil
  269. attacking = false
  270. platlol = nil
  271.  
  272. elseif hurt == false and grabbed ~= nil and grabweld ~= nil and mode == "kill" and enabled2 == true then
  273. enabled2 = false
  274. enabled = false
  275.  
  276. breaksound.Parent = grabbed
  277. breaksound:Play()
  278.  
  279. for i=1, 5 do
  280. lw.C0 = lw.C0 * CFrame.new(0.02,0.15,-0.02) * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.03)
  281. wait()
  282. end
  283. local duh = grabbed
  284. bleed(duh,1)
  285. bleed(duh,1)
  286. bleed(duh,1)
  287. bleed(duh,1)
  288. bleed(duh,1)
  289. bleed(duh,1)
  290. bleed(duh,1)
  291. bleed(duh,1)
  292. bleed(duh,1)
  293. bleed(duh,1)
  294. wait(0.12)
  295. for i=1, 5 do
  296. lw.C0 = lw.C0 * CFrame.new(-0.02,-0.15,0.02) * CFrame.fromEulerAnglesXYZ(0.05,-0,0.03)
  297. wait()
  298. end
  299.  
  300.  
  301. if grabbed.Parent:findFirstChild("HumanoidRootPart",true) then
  302. for i, plr in pairs(game.Players:GetChildren()) do
  303. if plr.Name ~= game.Players.LocalPlayer.Name then
  304. for i = 1, 10 do
  305. game.ReplicatedStorage.meleeEvent:FireServer(plr)
  306. end
  307. end
  308. end
  309. end
  310. grabbed.Parent.Humanoid.Health = grabbed.Parent.Humanoid.Health / 1.5
  311.  
  312. elseif hurt == false and grabbed ~= nil and grabweld ~= nil and mode == "drain" and enabled == true then
  313. enabled = false
  314. enabled2 = true
  315.  
  316. for i=1, 2 do
  317. lw.C0 = lw.C0 * CFrame.new(0.06,0,-0.06) * CFrame.fromEulerAnglesXYZ(0.15,-0.11,-0.05)
  318. wait()
  319. end
  320.  
  321. while char.Humanoid.Health == char.Humanoid.MaxHealth do
  322. bleed(grabbed, 1)
  323. char.Humanoid.Health = char.Humanoid.Health + 1
  324. grabbed.Parent.Humanoid.Health = grabbed.Parent.Humanoid.Health - 1
  325. wait(0.0335)
  326. end
  327.  
  328. for i=1, 1 do
  329. lw.C0 = lw.C0 * CFrame.new(-0.12,0,0.12) * CFrame.fromEulerAnglesXYZ(-0.3,0.22,0.05)
  330. wait()
  331. end
  332. enabled = true
  333.  
  334.  
  335. elseif hurt == false and grabbed ~= nil and grabweld ~= nil and mode == "throw" then
  336. enabled2 = true
  337. grabweld:remove()
  338. grabweld = nil
  339. local bf = Instance.new("BodyForce",grabbed)
  340. bf.force = torso.CFrame.lookVector * 4000
  341. bf.force = bf.force + Vector3.new(0,1500,0)
  342. coroutine.resume(coroutine.create(function()
  343. wait(0.12)
  344. bf:remove()
  345. end))
  346. for i=1, 6 do
  347. rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.35,0,0)
  348. lw.C0 = lw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.18,0,0)
  349. wait()
  350. end
  351. for i=1, 4 do
  352. rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.47,0,0)
  353. lw.C0 = lw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.2,0,0)
  354. wait()
  355. end
  356. wait(0.2)
  357. platlol = false
  358. grabbed = nil
  359. lolhum.PlatformStand = false
  360. lolhum = nil
  361. for i=1, 4 do
  362. rw.C0 = rw.C0 * CFrame.new(0.06,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.36,-0.08,0)
  363. lw.C0 = lw.C0 * CFrame.new(-0.12,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.3,0.2,0)
  364. wait()
  365. end
  366. lw.C0 = CFrame.new(0,0,0)
  367. rw.C0 = CFrame.new(0,0,0)
  368. lw.Part1 = nil
  369. rw.Part1 = nil
  370. attacking = false
  371. platlol = nil
  372. elseif hurt == false and grabbed ~= nil and lolhum ~= nil and grabweld ~= nil and mode == "para" then
  373. enabled2 = true
  374. killsound.Parent = grabbed
  375. killsound:Play()
  376. for i=1, 5 do
  377. lw.C0 = lw.C0 * CFrame.new(0.02,0.12,0.1) * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.03)
  378. wait()
  379. end
  380. local ne = grabbed:findFirstChild("Neck")
  381. coroutine.resume(coroutine.create(function()
  382. local duh = grabbed
  383. local duh2 = grabbed.Parent.Head
  384. local lolas = lolhum
  385. duh.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  386. for i=1, 75 do
  387. wait()
  388. local hm = math.random(1,15)
  389. pcall(function()
  390. if hm == 1 then
  391. duh2.Sound.Pitch = math.random(90,110)/100
  392. duh2.Sound:play()
  393. script.Parent.Splat:Play();
  394. end
  395. end)
  396.  
  397. if hm > 0 and hm < 4 then
  398.  
  399. bleed(duh,1)
  400. bleed(duh2,-0.1)
  401. bleed(duh,1)
  402. bleed(duh2,-0.1)
  403. bleed(duh,1)
  404. bleed(duh,1)
  405. bleed(duh,1)
  406. end
  407. end
  408. wait(1.2)
  409.  
  410. lolas.Health = 0
  411. for i=1, 85 do
  412. wait()
  413. local hm = math.random(1,9)
  414. pcall(function()
  415. if hm == 1 then
  416. duh2.Sound.Pitch = math.random(90,110)/100
  417. duh2.Sound:play()
  418. end
  419. end)
  420. if hm > 0 and hm < 3 then
  421. bleed(duh,1)
  422. bleed(duh2,-0.5)
  423. end
  424. end
  425. end))
  426. for i=1, 3 do
  427. lw.C0 = lw.C0 * CFrame.new(0.02,0.12,0.1) * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.03)
  428. if ne ~= nil then
  429. grabbed.Neck.C0 = grabbed.Neck.C0 * CFrame.fromEulerAnglesXYZ(-0.35,0,0)
  430. end
  431. wait()
  432. end
  433. grabweld:remove()
  434. grabweld = nil
  435. for i=1, 4 do
  436. lw.C0 = lw.C0 * CFrame.new(-0.04,-0.24,-0.2) * CFrame.fromEulerAnglesXYZ(0.1,0,0.06)
  437. wait()
  438. end
  439. for i=1, 4 do
  440. rw.C0 = rw.C0 * CFrame.new(0.06,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.36,-0.08,0)
  441. lw.C0 = lw.C0 * CFrame.new(-0.12,0,0.12) * CFrame.fromEulerAnglesXYZ(-0.3,0.22,0.05)
  442. wait()
  443. end
  444. lw.C0 = CFrame.new(0,0,0)
  445. rw.C0 = CFrame.new(0,0,0)
  446. lw.Part1 = nil
  447. rw.Part1 = nil
  448. platlol = false
  449. grabbed = nil
  450. lolhum = nil
  451. attacking = false
  452. platlol = nil
  453. end
  454. end)
  455. mouse.KeyDown:connect(function(kai)
  456. key = kai:lower()
  457. if key == "q" then
  458. mode = "drop"
  459. inform("Fix Knife",1)
  460. elseif key == "e" then
  461. mode = "kill"
  462. inform("Kill",1)
  463. end
  464. end)
  465. end
  466.  
  467. function desel()
  468. repeat wait() until attacking == false
  469. orr.Part1 = knife
  470. ar.Part1 = nil
  471. end
  472.  
  473. bin.Selected:connect(select)
  474. bin.Deselected:connect(desel)
  475.  
  476. char.Humanoid.Died:connect(function()
  477. pcall(function()
  478. grabweld:remove()
  479. grabweld = nil
  480. grabbed = nil
  481. platlol = false
  482. platlol = nil
  483. end)
  484. end)
  485.  
  486. inform("Prison Life v2.0.2 Grab Knife Loaded | e = Kill /\ q = Fix Knife",3)
  487. wait(3.2)
  488. inform("Made By ASADCATONVERM :D", 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement