Advertisement
GabeTheDog

Grab Knife V5 (With Gun And Knife)

Mar 5th, 2018 (edited)
77,163
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.83 KB | None | 0 0
  1. --Made By Bartus2009_Bro
  2. --do not leak plz
  3.  
  4. CV="White"
  5.  
  6. p = game.Players.LocalPlayer
  7. char = p.Character
  8. local txt = Instance.new("BillboardGui", char)
  9. txt.Adornee = char .Head
  10. txt.Name = "_status"
  11. txt.Size = UDim2.new(2, 0, 1.2, 0)
  12. txt.StudsOffset = Vector3.new(-9, 8, 0)
  13. local text = Instance.new("TextLabel", txt)
  14. text.Size = UDim2.new(10, 0, 7, 0)
  15. text.FontSize = "Size24"
  16. text.TextScaled = true
  17. text.TextTransparency = 0
  18. text.BackgroundTransparency = 1
  19. text.TextTransparency = 0
  20. text.TextStrokeTransparency = 1
  21. text.Font = "Arcade"
  22. text.TextStrokeColor3 = Color3.new(255,255,255)
  23.  
  24. v=Instance.new("Part")
  25. v.Name = "ColorBrick"
  26. v.Parent=p.Character
  27. v.FormFactor="Symmetric"
  28. v.Anchored=true
  29. v.CanCollide=false
  30. v.BottomSurface="Smooth"
  31. v.TopSurface="Smooth"
  32. v.Size=Vector3.new(10,5,3)
  33. v.Transparency=1
  34. v.CFrame=char.Torso.CFrame
  35. v.BrickColor=BrickColor.new(CV)
  36. v.Transparency=1
  37. text.TextColor3 = Color3.new(255,255,255)
  38. v.Shape="Block"
  39. text.Text = "Some Boi With Knife And Gun"
  40. wait(1 / 60)
  41.  
  42. -- Objects
  43.  
  44. local ScreenGui = Instance.new("ScreenGui")
  45. local Frame = Instance.new("Frame")
  46. local TextLabel = Instance.new("TextLabel")
  47. local TextButton = Instance.new("TextButton")
  48. local TextBox = Instance.new("TextBox")
  49. local TextButton_2 = Instance.new("TextButton")
  50.  
  51. -- Properties
  52.  
  53. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  54.  
  55. Frame.Parent = ScreenGui
  56. Frame.Active = true
  57. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  58. Frame.BorderColor3 = Color3.new(1, 0, 0)
  59. Frame.ClipsDescendants = true
  60. Frame.Draggable = true
  61. Frame.Position = UDim2.new(0, 52, 0, 340)
  62. Frame.Selectable = true
  63. Frame.Size = UDim2.new(0, 400, 0, 248)
  64. Frame.Visible = false
  65.  
  66. TextLabel.Parent = Frame
  67. TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  68. TextLabel.BorderColor3 = Color3.new(1, 0, 0)
  69. TextLabel.Position = UDim2.new(0, 22, 0, 24)
  70. TextLabel.Size = UDim2.new(0, 359, 0, 50)
  71. TextLabel.Font = Enum.Font.SourceSans
  72. TextLabel.FontSize = Enum.FontSize.Size14
  73. TextLabel.Text = "Grab Knife GUI By Migas3456"
  74. TextLabel.TextColor3 = Color3.new(1, 0, 0)
  75. TextLabel.TextScaled = true
  76. TextLabel.TextSize = 14
  77. TextLabel.TextWrapped = true
  78.  
  79. TextButton.Parent = Frame
  80. TextButton.BackgroundColor3 = Color3.new(0, 0, 0)
  81. TextButton.BorderColor3 = Color3.new(1, 0, 0)
  82. TextButton.Position = UDim2.new(0, 100, 0, 173)
  83. TextButton.Size = UDim2.new(0, 200, 0, 50)
  84. TextButton.Font = Enum.Font.SourceSans
  85. TextButton.FontSize = Enum.FontSize.Size14
  86. TextButton.Text = "Get Grab Knife"
  87. TextButton.TextColor3 = Color3.new(1, 1, 1)
  88. TextButton.TextSize = 14
  89. TextButton.TextWrapped = true
  90.  
  91. TextButton.MouseButton1Down:connect(function()
  92. --== Grab Knife script fixed by karstenes ==--
  93.  
  94. me = game.Players[TextBox.Text]
  95.  
  96. char = me.Character
  97.  
  98. selected = false
  99.  
  100. attacking = false
  101.  
  102. hurt = false
  103.  
  104. grabbed = nil
  105.  
  106. mode = "drop"
  107.  
  108. bloodcolors = {"Really red", "Bright red"}
  109.  
  110.  
  111.  
  112. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  113.  
  114. part.Parent = parent
  115.  
  116. part.formFactor = form
  117.  
  118. part.CanCollide = collide
  119.  
  120. part.Transparency = tran
  121.  
  122. part.Reflectance = ref
  123.  
  124. part.Size = Vector3.new(x,y,z)
  125.  
  126. part.BrickColor = BrickColor.new(color)
  127.  
  128. part.TopSurface = 0
  129.  
  130. part.BottomSurface = 0
  131.  
  132. part.Anchored = anchor
  133.  
  134. part.Locked = true
  135.  
  136. part:BreakJoints()
  137.  
  138. end
  139.  
  140.  
  141. function weld(w, p, p1, a, b, c, x, y, z)
  142.  
  143. w.Parent = p
  144.  
  145. w.Part0 = p
  146.  
  147. w.Part1 = p1
  148.  
  149. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  150.  
  151. end
  152.  
  153.  
  154. function mesh(mesh, parent, x, y, z, type)
  155.  
  156. mesh.Parent = parent
  157.  
  158. mesh.Scale = Vector3.new(x, y, z)
  159.  
  160. mesh.MeshType = type
  161.  
  162. end
  163.  
  164.  
  165. function remgui()
  166.  
  167. for _,v in pairs(me.PlayerGui:GetChildren()) do
  168.  
  169. if v.Name == "Modeshow" then
  170.  
  171. v:remove()
  172.  
  173. end
  174.  
  175. end
  176.  
  177. end
  178.  
  179.  
  180. function inform(text,delay)
  181.  
  182. remgui()
  183.  
  184. sc = Instance.new("ScreenGui")
  185.  
  186. sc.Parent = me.PlayerGui
  187.  
  188. sc.Name = "Modeshow"
  189.  
  190. bak = Instance.new("Frame",sc)
  191.  
  192. bak.BackgroundColor3 = Color3.new(1,1,1)
  193.  
  194. bak.Size = UDim2.new(0.94,0,0.1,0)
  195.  
  196. bak.Position = UDim2.new(0.03,0,0.037,0)
  197.  
  198. bak.BorderSizePixel = 0
  199.  
  200. gi = Instance.new("TextLabel",sc)
  201.  
  202. gi.Size = UDim2.new(0.92,0,0.09,0)
  203.  
  204. gi.BackgroundColor3 = Color3.new(0,0,0)
  205.  
  206. gi.Position = UDim2.new(0.04,0,0.042,0)
  207.  
  208. gi.TextColor3 = Color3.new(1,1,1)
  209.  
  210. gi.FontSize = "Size12"
  211.  
  212. gi.Text = text
  213.  
  214. coroutine.resume(coroutine.create(function()
  215.  
  216. wait(delay)
  217.  
  218. sc:remove()
  219.  
  220. end))
  221.  
  222. end
  223.  
  224.  
  225. if char:findFirstChild("Bricks",true) then
  226.  
  227. char:findFirstChild("Bricks",true):remove()
  228.  
  229. end
  230.  
  231.  
  232. bricks = Instance.new("Model",me.Character)
  233.  
  234. bricks.Name = "Bricks"
  235.  
  236.  
  237. --Parts-------------------------Parts-------------------------Parts-------------------------Parts----------------------
  238.  
  239.  
  240. rarm = char:findFirstChild("Right Arm")
  241.  
  242. larm = char:findFirstChild("Left Arm")
  243.  
  244. lleg = char:findFirstChild("Left Leg")
  245.  
  246. torso = char:findFirstChild("Torso")
  247.  
  248. hum = char:findFirstChild("Humanoid")
  249.  
  250.  
  251. righthold = Instance.new("Part")
  252.  
  253. prop(righthold, bricks, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom")
  254.  
  255. w11 = Instance.new("Weld")
  256.  
  257. weld(w11, rarm, righthold, 0, 0, 0, 0, 1, 0)
  258.  
  259.  
  260. lefthold = Instance.new("Part")
  261.  
  262. prop(lefthold, bricks, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom")
  263.  
  264. w12 = Instance.new("Weld")
  265.  
  266. weld(w12, larm, lefthold, 0, 0, 0, 0, 1, 0)
  267.  
  268.  
  269. hold = Instance.new("Part")
  270.  
  271. prop(hold, bricks, false, 0, 0, 0.2, 0.4, 0.7, "Really red", false, "Custom")
  272.  
  273. oh = Instance.new("Weld")
  274.  
  275. weld(oh, lleg, hold, -math.pi/1.4, 0, math.rad(35), 0.55, -0.9, 0.3)
  276.  
  277.  
  278. knife = Instance.new("Part")
  279.  
  280. prop(knife, bricks, false, 0, 0, 0.35, 1.1, 0.5, "Really black", false, "Custom")
  281.  
  282. orr = Instance.new("Weld")
  283.  
  284. weld(orr, hold, knife, 0, 0, 0, 0, 0.7, 0)
  285.  
  286. ar = Instance.new("Weld")
  287.  
  288. weld(ar, lefthold, nil, math.pi/2, 0, math.pi, 0, 0, 0)
  289.  
  290.  
  291.  
  292. blade = Instance.new("Part")
  293.  
  294. prop(blade, bricks, false, 0, 0, 0.1, 1.5, 0.4, "Medium grey", false, "Custom")
  295.  
  296. Instance.new("BlockMesh",blade).Scale = Vector3.new(0.3,1,1)
  297.  
  298. w2 = Instance.new("Weld")
  299.  
  300. weld(w2, knife, blade, 0, 0, 0, 0, -1.2, 0)
  301.  
  302.  
  303. blade2 = Instance.new("Part")
  304.  
  305. prop(blade2, bricks, false, 0, 0, 0.1, 0.5, 0.4, "Medium grey", false, "Custom")
  306.  
  307. mew = Instance.new("SpecialMesh",blade2)
  308.  
  309. mew.MeshType = "Wedge"
  310.  
  311. mew.Scale = Vector3.new(0.3,1,1)
  312.  
  313. w3 = Instance.new("Weld")
  314.  
  315. weld(w3, blade, blade2, 0, 0, 0, 0, -1, 0)
  316.  
  317.  
  318.  
  319.  
  320.  
  321. rb = Instance.new("Part")
  322.  
  323. prop(rb, bricks, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom")
  324.  
  325. w13 = Instance.new("Weld")
  326.  
  327. weld(w13, torso, rb, 0, 0, 0, -1.5, -0.5, 0)
  328.  
  329.  
  330. lb = Instance.new("Part")
  331.  
  332. prop(lb, bricks, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom")
  333.  
  334. w14 = Instance.new("Weld")
  335.  
  336. weld(w14, torso, lb, 0, 0, 0, 1.5, -0.5, 0)
  337.  
  338.  
  339. rw = Instance.new("Weld")
  340.  
  341. weld(rw, rb, nil, 0, 0, 0, 0, 0.5, 0)
  342.  
  343.  
  344. lw = Instance.new("Weld")
  345.  
  346. weld(lw, lb, nil, 0, 0, 0, 0, 0.5, 0)
  347.  
  348.  
  349. grabweld = nil
  350.  
  351. platlol = nil
  352.  
  353. lolhum = nil
  354.  
  355.  
  356. function touch(h)
  357.  
  358. if hurt then
  359.  
  360. if grabbed == nil then
  361.  
  362. hu = h.Parent:findFirstChild("Humanoid")
  363.  
  364. head = h.Parent:findFirstChild("Head")
  365.  
  366. torz = h.Parent:findFirstChild("Torso")
  367.  
  368. if hu ~= nil and head ~= nil and torz ~= nil and h.Parent.Name ~= name then
  369.  
  370. if hu.Health > 0 then
  371.  
  372. grabbed = torz
  373.  
  374. hu.PlatformStand = true
  375.  
  376. w = Instance.new("Weld")
  377.  
  378. weld(w,righthold,grabbed,math.pi/2,0.2,0,0.7,-0.9,-0.6)
  379.  
  380. grabweld = w
  381.  
  382. lolhum = hu
  383.  
  384. lolxd = true
  385.  
  386. platlol = lolxd
  387.  
  388. hu.Changed:connect(function(prop)
  389.  
  390. if prop == "PlatformStand" and platlol then
  391.  
  392. hu.PlatformStand = true
  393.  
  394. end
  395.  
  396. end)
  397.  
  398. end
  399.  
  400. end
  401.  
  402. end
  403.  
  404. end
  405.  
  406. end
  407.  
  408.  
  409. righthold.Touched:connect(touch)
  410.  
  411. lefthold.Touched:connect(touch)
  412.  
  413.  
  414. function bleed(part,po)
  415.  
  416. lol1 = math.random(5,30)/100
  417.  
  418. lol2 = math.random(5,30)/100
  419.  
  420. lol3 =math.random(5,30)/100
  421.  
  422. lol4 = math.random(1,#bloodcolors)
  423.  
  424. p = Instance.new("Part")
  425.  
  426. prop(p,part.Parent,false,0,0,lol1,lol2,lol3,bloodcolors[lol4],false,"Custom")
  427.  
  428. p.CFrame = part.CFrame * CFrame.new(math.random(-5,5)/10,po,math.random(-5,5)/10)
  429.  
  430. p.Velocity = Vector3.new(math.random(-190,190)/10,math.random(-190,190)/10,math.random(-190,190)/10)
  431.  
  432. p.RotVelocity = Vector3.new(math.random(-400,400)/10,math.random(-400,400)/10,math.random(-400,400)/10)
  433.  
  434. coroutine.resume(coroutine.create(function()
  435.  
  436. wait(3)
  437.  
  438. p:remove()
  439.  
  440. end))
  441.  
  442. end
  443.  
  444.  
  445. h = Instance.new("HopperBin",me.Backpack)
  446.  
  447. h.Name = "Grab"
  448.  
  449. script.Parent = h
  450.  
  451.  
  452. bin = h
  453.  
  454.  
  455. function select(mouse)
  456.  
  457. orr.Part1 = nil
  458.  
  459. ar.Part1 = knife
  460.  
  461. mouse.Button1Down:connect(function()
  462.  
  463. if attacking == false then
  464.  
  465. attacking = true
  466.  
  467. lw.Part1 = larm
  468.  
  469. rw.Part1 = rarm
  470.  
  471. hurt = true
  472.  
  473. for i=1, 8 do
  474.  
  475. rw.C0 = rw.C0 * CFrame.new(-0.03,0,-0.08) * CFrame.fromEulerAnglesXYZ(0.18,0.04,0)
  476.  
  477. lw.C0 = lw.C0 * CFrame.new(0.06,0,-0.06) * CFrame.fromEulerAnglesXYZ(0.15,-0.11,-0.05)
  478.  
  479. wait()
  480.  
  481. end
  482.  
  483. wait(1)
  484.  
  485. hurt = false
  486.  
  487. if grabbed == nil then
  488.  
  489. for i=1, 4 do
  490.  
  491. rw.C0 = rw.C0 * CFrame.new(0.06,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.36,-0.08,0)
  492.  
  493. lw.C0 = lw.C0 * CFrame.new(-0.12,0,0.12) * CFrame.fromEulerAnglesXYZ(-0.3,0.22,0.05)
  494.  
  495. wait()
  496.  
  497. end
  498.  
  499. lw.C0 = CFrame.new(0,0,0)
  500.  
  501. rw.C0 = CFrame.new(0,0,0)
  502.  
  503. lw.Part1 = nil
  504.  
  505. rw.Part1 = nil
  506.  
  507. attacking = false
  508.  
  509. end
  510.  
  511. elseif hurt == false and grabbed ~= nil and mode == "drop" then
  512.  
  513. grabweld:remove()
  514.  
  515. grabweld = nil
  516.  
  517. platlol = false
  518.  
  519. grabbed = nil
  520.  
  521. lolhum.PlatformStand = false
  522.  
  523. lolhum = nil
  524.  
  525. for i=1, 4 do
  526.  
  527. rw.C0 = rw.C0 * CFrame.new(0.06,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.36,-0.08,0)
  528.  
  529. lw.C0 = lw.C0 * CFrame.new(-0.12,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.3,0.2,0)
  530.  
  531. wait()
  532.  
  533. end
  534.  
  535. lw.C0 = CFrame.new(0,0,0)
  536.  
  537. rw.C0 = CFrame.new(0,0,0)
  538.  
  539. lw.Part1 = nil
  540.  
  541. rw.Part1 = nil
  542.  
  543. attacking = false
  544.  
  545. platlol = nil
  546.  
  547. elseif hurt == false and grabbed ~= nil and grabweld ~= nil and mode == "throw" then
  548.  
  549. grabweld:remove()
  550.  
  551. grabweld = nil
  552.  
  553. bf = Instance.new("BodyForce",grabbed)
  554.  
  555. bf.force = torso.CFrame.lookVector * 8500
  556.  
  557. bf.force = bf.force + Vector3.new(0,7400,0)
  558.  
  559. coroutine.resume(coroutine.create(function()
  560.  
  561. wait(0.12)
  562.  
  563. bf:remove()
  564.  
  565. end))
  566.  
  567. for i=1, 6 do
  568.  
  569. rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.35,0,0)
  570.  
  571. lw.C0 = lw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.18,0,0)
  572.  
  573. wait()
  574.  
  575. end
  576.  
  577. for i=1, 4 do
  578.  
  579. rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.47,0,0)
  580.  
  581. lw.C0 = lw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.2,0,0)
  582.  
  583. wait()
  584.  
  585. end
  586.  
  587. wait(0.2)
  588.  
  589. platlol = false
  590.  
  591. grabbed = nil
  592.  
  593. lolhum.PlatformStand = false
  594.  
  595. lolhum = nil
  596.  
  597. for i=1, 4 do
  598.  
  599. rw.C0 = rw.C0 * CFrame.new(0.06,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.36,-0.08,0)
  600.  
  601. lw.C0 = lw.C0 * CFrame.new(-0.12,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.3,0.2,0)
  602.  
  603. wait()
  604.  
  605. end
  606.  
  607. lw.C0 = CFrame.new(0,0,0)
  608.  
  609. rw.C0 = CFrame.new(0,0,0)
  610.  
  611. lw.Part1 = nil
  612.  
  613. rw.Part1 = nil
  614.  
  615. attacking = false
  616.  
  617. platlol = nil
  618.  
  619. elseif hurt == false and grabbed ~= nil and lolhum ~= nil and grabweld ~= nil and mode == "kill" then
  620.  
  621. for i=1, 5 do
  622.  
  623. lw.C0 = lw.C0 * CFrame.new(0.02,0.12,0.1) * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.03)
  624.  
  625. wait()
  626.  
  627. end
  628.  
  629. ne = grabbed:findFirstChild("Neck")
  630.  
  631. coroutine.resume(coroutine.create(function()
  632.  
  633. duh = grabbed
  634.  
  635. duh2 = grabbed.Parent.Head
  636.  
  637. lolas = lolhum
  638.  
  639. duh.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  640.  
  641. for i=1, 60 do
  642.  
  643. wait()
  644.  
  645. hm = math.random(1,9)
  646.  
  647. pcall(function()
  648.  
  649. if hm == 1 then
  650.  
  651. duh2.Sound.Pitch = math.random(90,110)/100
  652.  
  653. duh2.Sound:play()
  654.  
  655. end
  656.  
  657. end)
  658.  
  659. if hm > 0 and hm < 3 then
  660.  
  661. bleed(duh,1)
  662.  
  663. bleed(duh2,-0.5)
  664.  
  665. end
  666.  
  667. end
  668.  
  669. lolas.Health = 0
  670.  
  671. for i=1, 85 do
  672.  
  673. wait()
  674.  
  675. hm = math.random(1,9)
  676.  
  677. pcall(function()
  678.  
  679. if hm == 1 then
  680.  
  681. duh2.Sound.Pitch = math.random(90,110)/100
  682.  
  683. duh2.Sound:play()
  684.  
  685. end
  686.  
  687. end)
  688.  
  689. if hm > 0 and hm < 3 then
  690.  
  691. bleed(duh,1)
  692.  
  693. bleed(duh2,-0.5)
  694.  
  695. end
  696.  
  697. end
  698.  
  699. end))
  700.  
  701. for i=1, 3 do
  702.  
  703. lw.C0 = lw.C0 * CFrame.new(0.02,0.12,0.1) * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.03)
  704.  
  705. if ne ~= nil then
  706.  
  707. grabbed.Neck.C0 = grabbed.Neck.C0 * CFrame.fromEulerAnglesXYZ(-0.35,0,0)
  708.  
  709. end
  710.  
  711. wait()
  712.  
  713. end
  714.  
  715. grabweld:remove()
  716.  
  717. grabweld = nil
  718.  
  719. for i=1, 4 do
  720.  
  721. lw.C0 = lw.C0 * CFrame.new(-0.04,-0.24,-0.2) * CFrame.fromEulerAnglesXYZ(0.1,0,0.06)
  722.  
  723. wait()
  724.  
  725. end
  726.  
  727. for i=1, 4 do
  728.  
  729. rw.C0 = rw.C0 * CFrame.new(0.06,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.36,-0.08,0)
  730.  
  731. lw.C0 = lw.C0 * CFrame.new(-0.12,0,0.12) * CFrame.fromEulerAnglesXYZ(-0.3,0.22,0.05)
  732.  
  733. wait()
  734.  
  735. end
  736.  
  737. lw.C0 = CFrame.new(0,0,0)
  738.  
  739. rw.C0 = CFrame.new(0,0,0)
  740.  
  741. lw.Part1 = nil
  742.  
  743. rw.Part1 = nil
  744.  
  745. platlol = false
  746.  
  747. grabbed = nil
  748.  
  749. lolhum = nil
  750.  
  751. attacking = false
  752.  
  753. platlol = nil
  754.  
  755. end
  756.  
  757. end)
  758.  
  759. mouse.KeyDown:connect(function(kai)
  760.  
  761. key = kai:lower()
  762.  
  763. if key == "q" then
  764.  
  765. mode = "drop"
  766.  
  767. inform("Mode: Drop",2)
  768.  
  769. elseif key == "e" then
  770.  
  771. mode = "throw"
  772.  
  773. inform("Mode: Throw",2)
  774.  
  775. elseif key == "f" then
  776.  
  777. mode = "kill"
  778.  
  779. inform("Mode: Kill",2)
  780.  
  781. end
  782.  
  783. end)
  784.  
  785. end
  786.  
  787.  
  788. function desel()
  789.  
  790. repeat wait() until attacking == false
  791.  
  792. orr.Part1 = knife
  793.  
  794. ar.Part1 = nil
  795.  
  796. end
  797.  
  798.  
  799. bin.Selected:connect(select)
  800.  
  801. bin.Deselected:connect(desel)
  802.  
  803.  
  804. char.Humanoid.Died:connect(function()
  805.  
  806. pcall(function()
  807.  
  808. grabweld:remove()
  809.  
  810. grabweld = nil
  811.  
  812. grabbed = nil
  813.  
  814. platlol = false
  815.  
  816. platlol = nil
  817.  
  818. end)
  819.  
  820. end)
  821.  
  822.  
  823. inform("Grab Knife V5 (with knife and gun) script loaded succesfully.",2)
  824. ----------------------------------------------------
  825.  
  826. ----------------------------------------------------
  827. ypcall(function()
  828. char.Hat:Destroy()
  829. Hat = Instance.new("Hat", char)
  830. Hat.Name = "Hat"
  831. char.Hat.HatTemplate = "http://www.roblox.com/asset/?id=1029025"
  832. end)
  833. end)
  834.  
  835. TextBox.Parent = Frame
  836. TextBox.BackgroundColor3 = Color3.new(0, 0, 0)
  837. TextBox.BorderColor3 = Color3.new(1, 0, 0)
  838. TextBox.Position = UDim2.new(0, 100, 0, 99)
  839. TextBox.Size = UDim2.new(0, 200, 0, 50)
  840. TextBox.Font = Enum.Font.SourceSans
  841. TextBox.FontSize = Enum.FontSize.Size14
  842. TextBox.Text = "UserName"
  843. TextBox.TextColor3 = Color3.new(1, 1, 1)
  844. TextBox.TextSize = 14
  845.  
  846. TextButton_2.Parent = ScreenGui
  847. TextButton_2.BackgroundColor3 = Color3.new(0, 0, 0)
  848. TextButton_2.BorderColor3 = Color3.new(1, 0, 0)
  849. TextButton_2.Position = UDim2.new(0, 0, 0, 399)
  850. TextButton_2.Size = UDim2.new(0, 200, 0, 50)
  851. TextButton_2.Font = Enum.Font.SourceSans
  852. TextButton_2.FontSize = Enum.FontSize.Size14
  853. TextButton_2.Text = "Open"
  854. TextButton_2.TextColor3 = Color3.new(1, 1, 1)
  855. TextButton_2.TextSize = 14
  856.  
  857. TextButton_2.MouseButton1Down:connect(function()
  858. TextButton_2.Visible = false
  859. Frame.Visible = true
  860. end)
  861.  
  862. wait(1)
  863. ---------------------------[[[ VARIABLES ]]]---------------------------
  864.  
  865. local plr = game.Players.LocalPlayer
  866. local chr = plr.Character
  867. local mou = plr:GetMouse()
  868. local leftarm = false
  869. local active = false
  870. local curkey = "f"
  871. local stunneds = {}
  872.  
  873. ---------------------------[[[ PARTS ]]]---------------------------
  874.  
  875. -- 1 - Glock
  876. obj1 = Instance.new("Model")
  877. obj1.Name = "Glock"
  878. obj1.Parent = chr
  879.  
  880. -- 2 - Part
  881. obj2 = Instance.new("Part")
  882. obj2.CFrame = CFrame.new(Vector3.new(14.25, 3.51428652, 46.8584824)) * CFrame.Angles(0.69812995195389, 0, -0)
  883. obj2.TopSurface = Enum.SurfaceType.Smooth
  884. obj2.BottomSurface = Enum.SurfaceType.Smooth
  885. obj2.Material = Enum.Material.Metal
  886. obj2.Size = Vector3.new(0.300000012, 0.200000003, 0.200000003)
  887. obj2.Anchored = true
  888. obj2.BrickColor = BrickColor.new("Black")
  889. obj2.Friction = 0.30000001192093
  890. obj2.Shape = Enum.PartType.Block
  891. obj2.CanCollide = false
  892. obj2.Parent = obj1
  893.  
  894. -- 3 - Top
  895. obj3 = Instance.new("Part")
  896. obj3.CFrame = CFrame.new(Vector3.new(14.25, 3.8499999, 47.1499977)) * CFrame.Angles(-0, 0, -0)
  897. obj3.TopSurface = Enum.SurfaceType.Smooth
  898. obj3.BottomSurface = Enum.SurfaceType.Smooth
  899. obj3.Material = Enum.Material.Metal
  900. obj3.Size = Vector3.new(0.300000012, 0.300000012, 1.5)
  901. obj3.Anchored = true
  902. obj3.BrickColor = BrickColor.new("Ghost grey")
  903. obj3.Friction = 0.30000001192093
  904. obj3.Shape = Enum.PartType.Block
  905. obj3.CanCollide = false
  906. obj3.Name = "Top"
  907. obj3.Parent = obj1
  908.  
  909. -- 4 - Top
  910. obj4 = Instance.new("Part")
  911. obj4.CFrame = CFrame.new(Vector3.new(14.25, 3.8499999, 47.8999977)) * CFrame.Angles(0, 1.5707963705063, 0)
  912. obj4.TopSurface = Enum.SurfaceType.Smooth
  913. obj4.BottomSurface = Enum.SurfaceType.Smooth
  914. obj4.Material = Enum.Material.Metal
  915. obj4.Size = Vector3.new(0.200000003, 0.299999982, 0.300000012)
  916. obj4.Anchored = true
  917. obj4.BrickColor = BrickColor.new("Ghost grey")
  918. obj4.Friction = 0.30000001192093
  919. obj4.Shape = Enum.PartType.Cylinder
  920. obj4.Name = "Top"
  921. obj4.CanCollide = false
  922. obj4.Parent = obj1
  923.  
  924. -- 5 - Part
  925. obj5 = Instance.new("Part")
  926. obj5.CFrame = CFrame.new(Vector3.new(14.25, 3.35359001, 47.1499939)) * CFrame.Angles(-1.5707978010178, 0, -0)
  927. obj5.TopSurface = Enum.SurfaceType.Smooth
  928. obj5.BottomSurface = Enum.SurfaceType.Smooth
  929. obj5.Material = Enum.Material.Metal
  930. obj5.Size = Vector3.new(0.300000012, 0.200000003, 0.299999982)
  931. obj5.Anchored = true
  932. obj5.BrickColor = BrickColor.new("Black")
  933. obj5.Friction = 0.30000001192093
  934. obj5.Shape = Enum.PartType.Block
  935. obj5.CanCollide = false
  936. obj5.Parent = obj1
  937.  
  938. -- 6 - Part
  939. obj6 = Instance.new("Part")
  940. obj6.CFrame = CFrame.new(Vector3.new(14.25, 3.5999999, 47.1499977)) * CFrame.Angles(-0, 0, -0)
  941. obj6.TopSurface = Enum.SurfaceType.Smooth
  942. obj6.BottomSurface = Enum.SurfaceType.Smooth
  943. obj6.Material = Enum.Material.Metal
  944. obj6.Size = Vector3.new(0.300000012, 0.200000003, 1.5)
  945. obj6.Anchored = true
  946. obj6.BrickColor = BrickColor.new("Black")
  947. obj6.CanCollide = false
  948. obj6.Friction = 0.30000001192093
  949. obj6.Shape = Enum.PartType.Block
  950. obj6.Parent = obj1
  951.  
  952. -- 7 - Part
  953. obj7 = Instance.new("Part")
  954. obj7.CFrame = CFrame.new(Vector3.new(14.25, 3.60000014, 47.8999977)) * CFrame.Angles(0, 1.5707963705063, 0)
  955. obj7.TopSurface = Enum.SurfaceType.Smooth
  956. obj7.BottomSurface = Enum.SurfaceType.Smooth
  957. obj7.Material = Enum.Material.Metal
  958. obj7.Size = Vector3.new(0.200000003, 0.200000003, 0.300000012)
  959. obj7.Anchored = true
  960. obj7.BrickColor = BrickColor.new("Black")
  961. obj7.CanCollide = false
  962. obj7.Friction = 0.30000001192093
  963. obj7.Shape = Enum.PartType.Cylinder
  964. obj7.Parent = obj1
  965.  
  966. -- 8 - Part
  967. obj8 = Instance.new("Part")
  968. obj8.CFrame = CFrame.new(Vector3.new(14.25, 3.15358996, 46.8499985)) * CFrame.Angles(1.1920913323138e-007, 0, -0)
  969. obj8.TopSurface = Enum.SurfaceType.Smooth
  970. obj8.BottomSurface = Enum.SurfaceType.Smooth
  971. obj8.Material = Enum.Material.Metal
  972. obj8.Size = Vector3.new(0.300000012, 0.200000003, 0.699999988)
  973. obj8.Anchored = true
  974. obj8.BrickColor = BrickColor.new("Black")
  975. obj8.Friction = 0.30000001192093
  976. obj8.CanCollide = false
  977. obj8.Shape = Enum.PartType.Block
  978. obj8.Parent = obj1
  979.  
  980. -- 9 - Part
  981. obj9 = Instance.new("Part")
  982. obj9.CFrame = CFrame.new(Vector3.new(14.25, 3.27858996, 46.5067024)) * CFrame.Angles(-1.0471963882446, 0, -0)
  983. obj9.TopSurface = Enum.SurfaceType.Smooth
  984. obj9.BottomSurface = Enum.SurfaceType.Smooth
  985. obj9.Material = Enum.Material.Metal
  986. obj9.Size = Vector3.new(0.300000012, 0.300000012, 0.699999988)
  987. obj9.Anchored = true
  988. obj9.BrickColor = BrickColor.new("Black")
  989. obj9.CanCollide = false
  990. obj9.Friction = 0.30000001192093
  991. obj9.Shape = Enum.PartType.Block
  992. obj9.Parent = obj1
  993.  
  994. local previous = nil
  995. for i,v in pairs(obj1:GetChildren()) do
  996. if v:IsA('BasePart') then
  997. if previous then
  998. local weld = Instance.new('Weld',v)
  999. weld.Part0 = v
  1000. weld.Part1 = previous
  1001. weld.C0 = v.CFrame:inverse() * previous.CFrame
  1002. previous.Anchored = false
  1003. end
  1004. previous = v
  1005. end
  1006. end
  1007. previous.Anchored = false
  1008.  
  1009. ---------------------------[[[ FUNCTIONS ]]]---------------------------
  1010.  
  1011. function notify(msg,forever)
  1012. local doit = coroutine.wrap(function()
  1013. for i,v in pairs(plr.PlayerGui:GetChildren()) do
  1014. if v.Name == "Notification" and v:IsA('ScreenGui') then
  1015. v:Destroy()
  1016. end
  1017. end
  1018. local gui = Instance.new('ScreenGui',plr.PlayerGui)
  1019. gui.Name = "Notification"
  1020. local frame = Instance.new('Frame',gui)
  1021. frame.Position = UDim2.new(0,0,0,0)
  1022. frame.Size = UDim2.new(1,0,0.2,0)
  1023. frame.BackgroundTransparency = 1
  1024. local txt = Instance.new('TextLabel',frame)
  1025. txt.TextColor3 = Color3.new(255,255,255)
  1026. txt.TextStrokeColor3 = Color3.new(0, 0, 0)
  1027. txt.TextStrokeTransparency = 0
  1028. txt.BackgroundTransparency = 1
  1029. txt.Text = ""
  1030. txt.Size = UDim2.new(1,0,0.3,0)
  1031. txt.Position = UDim2.new(0,0,0.4,0)
  1032. txt.TextScaled = true
  1033. txt.Font = "Code"
  1034. txt.TextXAlignment = "Center"
  1035. local tap = Instance.new("Sound")
  1036. tap.Parent = plr.Backpack
  1037. tap.SoundId = "rbxassetid://147982968"
  1038. tap.TimePosition = 0.1
  1039. local str = msg
  1040. local len = string.len(str)
  1041. for i=1,len do
  1042. txt.Text = string.sub(str,1,i)
  1043. local pitche = math.random(2, 4)
  1044. tap.PlaybackSpeed = pitche
  1045. tap:Play()
  1046. wait(0.05)
  1047. end
  1048. if forever == false then
  1049. wait(1)
  1050. while txt.TextTransparency < 1 do
  1051. txt.TextTransparency = txt.TextTransparency + 0.1
  1052. txt.TextStrokeTransparency = txt.TextStrokeTransparency + 0.1
  1053. wait()
  1054. end
  1055. gui:Destroy()
  1056. end
  1057. end)
  1058. doit()
  1059. end
  1060.  
  1061.  
  1062. function damage(playa,hita)
  1063. local hitz = hita.Name
  1064. local heyy = hitz
  1065. if hitz == "Right Arm" then
  1066. local Limb = playa:FindFirstChild("Right Arm")
  1067. local ters = playa:FindFirstChild('Torso')
  1068. if Limb and ters then
  1069. if ters:FindFirstChild('Right Shoulder') then ters["Right Shoulder"]:Destroy() end
  1070. for i,v in pairs(Limb:GetChildren()) do
  1071. if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
  1072. v:Destroy()
  1073. end
  1074. end
  1075. Limb.CFrame = ters.CFrame * CFrame.new(1.5, 0, 0)
  1076. local Joint = Instance.new("Glue")
  1077. Joint.Name = "RightShoulder"
  1078. Joint.Part0 = ters
  1079. Joint.Part1 = Limb
  1080. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1081. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1082. Joint.Parent = ters
  1083.  
  1084. local B = Instance.new("Part")
  1085. B.TopSurface = 0
  1086. B.BottomSurface = 0
  1087. B.formFactor = "Symmetric"
  1088. B.Size = Vector3.new(1, 1, 1)
  1089. B.Transparency = 1
  1090. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1091. B.Parent = playa
  1092. local W = Instance.new("Weld")
  1093. W.Part0 = Limb
  1094. W.Part1 = B
  1095. W.C0 = CFrame.new(0, -0.5, 0)
  1096. W.Parent = Limb
  1097. end
  1098. elseif hitz == "Left Arm" then
  1099. local Limb = playa:FindFirstChild("Left Arm")
  1100. local ters = playa:FindFirstChild('Torso')
  1101. if Limb and ters then
  1102. if ters:FindFirstChild('Left Shoulder') then ters["Left Shoulder"]:Destroy() end
  1103. for i,v in pairs(Limb:GetChildren()) do
  1104. if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
  1105. v:Destroy()
  1106. end
  1107. end
  1108. Limb.CFrame = ters.CFrame * CFrame.new(-1.5, 0, 0)
  1109. local Joint = Instance.new("Glue")
  1110. Joint.Name = "LeftShoulder"
  1111. Joint.Part0 = ters
  1112. Joint.Part1 = Limb
  1113. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1114. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1115. Joint.Parent = ters
  1116. local B = Instance.new("Part")
  1117. B.TopSurface = 0
  1118. B.BottomSurface = 0
  1119. B.formFactor = "Symmetric"
  1120. B.Size = Vector3.new(1, 1, 1)
  1121. B.Transparency = 1
  1122. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1123. B.Parent = playa
  1124. local W = Instance.new("Weld")
  1125. W.Part0 = ters
  1126. W.Part1 = B
  1127. W.C0 = CFrame.new(0, -0.5, 0)
  1128. W.Parent = Limb
  1129. end
  1130. elseif hitz == "Right Leg" then
  1131. local Limb = playa:FindFirstChild("Right Leg")
  1132. local ters = playa:FindFirstChild('Torso')
  1133. if Limb and ters then
  1134. if ters:FindFirstChild('Right Hip') then ters["Right Hip"]:Destroy() end
  1135. for i,v in pairs(Limb:GetChildren()) do
  1136. if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
  1137. v:Destroy()
  1138. end
  1139. end
  1140. Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0)
  1141. local Joint = Instance.new("Glue")
  1142. Joint.Name = "Right Hip"
  1143. Joint.Part0 = ters
  1144. Joint.Part1 = Limb
  1145. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1146. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1147. Joint.Parent = ters
  1148. local B = Instance.new("Part")
  1149. B.TopSurface = 0
  1150. B.BottomSurface = 0
  1151. B.formFactor = "Symmetric"
  1152. B.Size = Vector3.new(1, 1, 1)
  1153. B.Transparency = 1
  1154. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1155. B.Parent = playa
  1156. local W = Instance.new("Weld")
  1157. W.Part0 = Limb
  1158. W.Part1 = B
  1159. W.C0 = CFrame.new(0, -0.5, 0)
  1160. W.Parent = Limb
  1161. if playa:FindFirstChildOfClass('Humanoid') then
  1162. local hum = playa:FindFirstChildOfClass('Humanoid')
  1163. local target = playa
  1164. if target:FindFirstChild('HumanoidRootPart') then
  1165. target.HumanoidRootPart:Destroy()
  1166. end
  1167. local found = false
  1168. for i,v in pairs(stunneds) do
  1169. if v == hum then
  1170. found = true
  1171. end
  1172. end
  1173. if found == false then
  1174. table.insert(stunneds,hum)
  1175. end
  1176. end
  1177. end
  1178. elseif hitz == "Left Leg" then
  1179. local Limb = playa:FindFirstChild("Left Leg")
  1180. local ters = playa:FindFirstChild('Torso')
  1181. if Limb and ters then
  1182. if ters:FindFirstChild('Left Hip') then ters["Left Hip"]:Destroy() end
  1183. for i,v in pairs(Limb:GetChildren()) do
  1184. if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
  1185. v:Destroy()
  1186. end
  1187. end
  1188. Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0)
  1189. Limb.CFrame = ters.CFrame * CFrame.new(-0.5, -2, 0)
  1190. local Joint = Instance.new("Glue")
  1191. Joint.Name = "LeftHip"
  1192. Joint.Part0 = ters
  1193. Joint.Part1 = Limb
  1194. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1195. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1196. Joint.Parent = ters
  1197.  
  1198. local B = Instance.new("Part")
  1199. B.TopSurface = 0
  1200. B.BottomSurface = 0
  1201. B.formFactor = "Symmetric"
  1202. B.Size = Vector3.new(1, 1, 1)
  1203. B.Transparency = 1
  1204. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1205. B.Parent = playa
  1206. local W = Instance.new("Weld")
  1207. W.Part0 = Limb
  1208. W.Part1 = B
  1209. W.C0 = CFrame.new(0, -0.5, 0)
  1210. W.Parent = Limb
  1211. Limb.CanCollide = false
  1212. if playa:FindFirstChildOfClass('Humanoid') then
  1213. local hum = playa:FindFirstChildOfClass('Humanoid')
  1214. local target = playa
  1215. if target:FindFirstChild('HumanoidRootPart') then
  1216. target.HumanoidRootPart:Destroy()
  1217. end
  1218. local found = false
  1219. for i,v in pairs(stunneds) do
  1220. if v == hum then
  1221. found = true
  1222. end
  1223. end
  1224. if found == false then
  1225. table.insert(stunneds,hum)
  1226. end
  1227. end
  1228. end
  1229. else
  1230. local playa2 = playa
  1231. playa.Archivable = true
  1232. local playa = playa:Clone()
  1233. playa.Archivable = false
  1234. playa2:Destroy()
  1235. playa.Parent = workspace
  1236. local Gibs = game.Workspace
  1237. print(playa)
  1238. local Torso = playa.Torso
  1239. local Head = playa:FindFirstChild("Head")
  1240. local function Scan(ch)
  1241. local e
  1242. for e = 1,#ch do
  1243. Scan(ch[e]:GetChildren())
  1244. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  1245. ch[e]:remove()
  1246. end
  1247. end
  1248. end
  1249. Scan(playa:GetChildren())
  1250. if playa:FindFirstChild('HumanoidRootPart') then
  1251. playa:FindFirstChild('HumanoidRootPart'):Destroy()
  1252. end
  1253. local hum2 = playa:FindFirstChildOfClass("Humanoid")
  1254.  
  1255.  
  1256. if hum2 ~= nil then
  1257. hum2.Name = "Humanoid2"
  1258. hum2.PlatformStand = true
  1259. hum2.Health = 0
  1260. end
  1261. local ch = playa:GetChildren()
  1262. local i
  1263. for i = 1,#ch do
  1264. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1265. ch[i]:remove()
  1266. end
  1267. end
  1268.  
  1269. if Head then
  1270. local Neck = Instance.new("Weld")
  1271. Neck.Name = "Neck"
  1272. Neck.Part0 = Torso
  1273. Neck.Part1 = Head
  1274. Neck.C0 = CFrame.new(0, 1.5, 0)
  1275. Neck.C1 = CFrame.new()
  1276. Neck.Parent = Torso
  1277. end
  1278. local Limb = playa:FindFirstChild("Right Arm")
  1279. if Limb then
  1280.  
  1281. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  1282. local Joint = Instance.new("Glue")
  1283. Joint.Name = "RightShoulder"
  1284. Joint.Part0 = Torso
  1285. Joint.Part1 = Limb
  1286. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1287. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1288. Joint.Parent = Torso
  1289.  
  1290. local B = Instance.new("Part")
  1291. B.TopSurface = 0
  1292. B.BottomSurface = 0
  1293. B.formFactor = "Symmetric"
  1294. B.Size = Vector3.new(1, 1, 1)
  1295. B.Transparency = 1
  1296. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1297. B.Parent = playa
  1298. local W = Instance.new("Weld")
  1299. W.Part0 = Limb
  1300. W.Part1 = B
  1301. W.C0 = CFrame.new(0, -0.5, 0)
  1302. W.Parent = Limb
  1303. end
  1304. local Limb = playa:FindFirstChild("Left Arm")
  1305. if Limb then
  1306.  
  1307. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  1308. local Joint = Instance.new("Glue")
  1309. Joint.Name = "LeftShoulder"
  1310. Joint.Part0 = Torso
  1311. Joint.Part1 = Limb
  1312. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1313. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1314. Joint.Parent = Torso
  1315.  
  1316. local B = Instance.new("Part")
  1317. B.TopSurface = 0
  1318. B.BottomSurface = 0
  1319. B.formFactor = "Symmetric"
  1320. B.Size = Vector3.new(1, 1, 1)
  1321. B.Transparency = 1
  1322. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1323. B.Parent = playa
  1324. local W = Instance.new("Weld")
  1325. W.Part0 = Limb
  1326. W.Part1 = B
  1327. W.C0 = CFrame.new(0, -0.5, 0)
  1328. W.Parent = Limb
  1329. end
  1330. local Limb = playa:FindFirstChild("Right Leg")
  1331. if Limb then
  1332.  
  1333. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  1334. local Joint = Instance.new("Glue")
  1335. Joint.Name = "RightHip"
  1336. Joint.Part0 = Torso
  1337. Joint.Part1 = Limb
  1338. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1339. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1340. Joint.Parent = Torso
  1341.  
  1342. local B = Instance.new("Part")
  1343. B.TopSurface = 0
  1344. B.BottomSurface = 0
  1345. B.formFactor = "Symmetric"
  1346. B.Size = Vector3.new(1, 1, 1)
  1347. B.Transparency = 1
  1348. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1349. B.Parent = playa
  1350. local W = Instance.new("Weld")
  1351. W.Part0 = Limb
  1352. W.Part1 = B
  1353. W.C0 = CFrame.new(0, -0.5, 0)
  1354. W.Parent = Limb
  1355. end
  1356. local Limb = playa:FindFirstChild("Left Leg")
  1357. if Limb then
  1358.  
  1359. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  1360. local Joint = Instance.new("Glue")
  1361. Joint.Name = "LeftHip"
  1362. Joint.Part0 = Torso
  1363. Joint.Part1 = Limb
  1364. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1365. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1366. Joint.Parent = Torso
  1367.  
  1368. local B = Instance.new("Part")
  1369. B.TopSurface = 0
  1370. B.BottomSurface = 0
  1371. B.formFactor = "Symmetric"
  1372. B.Size = Vector3.new(1, 1, 1)
  1373. B.Transparency = 1
  1374. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1375. B.Parent = playa
  1376. local W = Instance.new("Weld")
  1377. W.Part0 = Limb
  1378. W.Part1 = B
  1379. W.C0 = CFrame.new(0, -0.5, 0)
  1380. W.Parent = Limb
  1381. end
  1382. --[
  1383. local Bar = Instance.new("Part")
  1384. Bar.TopSurface = 0
  1385. Bar.BottomSurface = 0
  1386. Bar.formFactor = "Symmetric"
  1387. Bar.Size = Vector3.new(1, 1, 1)
  1388. Bar.Transparency = 1
  1389. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  1390. Bar.Parent = playa
  1391. local Weld = Instance.new("Weld")
  1392. Weld.Part0 = Torso
  1393. Weld.Part1 = Bar
  1394. Weld.C0 = CFrame.new(0, 0.5, 0)
  1395. Weld.Parent = Torso
  1396. --]]
  1397. playa.Parent = Gibs
  1398. game.Debris:AddItem(playa, 12)
  1399. end
  1400. end
  1401.  
  1402.  
  1403. function calculate()
  1404. if leftarm and chr:FindFirstChild('Head') and chr:FindFirstChild('Torso') and chr.Torso:FindFirstChild("Left Shoulder") and chr:FindFirstChild('Left Arm') then
  1405. local Head = plr.Character.Head
  1406. local RightShoulder = plr.Character.Torso["Left Shoulder"]
  1407. local RightArm = plr.Character["Left Arm"]
  1408. local MousePosition = mou.Hit.p
  1409. local ToMouse = (MousePosition - Head.Position).unit
  1410. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  1411. local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((-Head.Size.X / 2) + (-RightArm.Size.X / 2)), ((-Head.Size.Y / 2) - (-RightArm.Size.Z / 2)), 0)))
  1412. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(-1 ,0, -1)).unit
  1413. local Look = (Head.CFrame.lookVector * Vector3.new(-1, 0, -1)).unit
  1414. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  1415. if tostring(LateralAngle) == "-1.#IND" then
  1416. LateralAngle = 0
  1417. end
  1418. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  1419. --[[
  1420. if LateralAngle > (math.pi / 2) then
  1421. LateralAngle = (math.pi / 2)
  1422. if chr:FindFirstChild('Torso') then
  1423. local Torso = chr.Torso
  1424. local Point = Torso.CFrame:vectorToObjectSpace(mou.Hit.p-Torso.CFrame.p)
  1425. if Point.Z > 0 then
  1426. if Point.X > 0 then
  1427. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mou.Hit.X,Torso.Position.Y,mou.Hit.Z))*CFrame.Angles(0,math.rad(90),0)
  1428. elseif Point.X < 0 then
  1429. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mou.Hit.X,Torso.Position.Y,mou.Hit.Z))*CFrame.Angles(0,math.rad(-90),0)
  1430. end
  1431. end
  1432. end
  1433. end
  1434. ]]--
  1435. print(LateralAngle)
  1436. warn(math.pi / 2)
  1437. if Cross.Y < 0 then
  1438. LateralAngle = -LateralAngle
  1439. end
  1440. return(CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2))
  1441. elseif chr:FindFirstChild('Head') and chr:FindFirstChild('Torso') and chr.Torso:FindFirstChild("Right Shoulder") and chr:FindFirstChild('Right Arm') then
  1442. local Head = plr.Character.Head
  1443. local RightShoulder = plr.Character.Torso["Right Shoulder"]
  1444. local RightArm = plr.Character["Right Arm"]
  1445. local MousePosition = mou.Hit.p
  1446. local ToMouse = (MousePosition - Head.Position).unit
  1447. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  1448. local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
  1449. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  1450. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  1451. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  1452. if tostring(LateralAngle) == "-1.#IND" then
  1453. LateralAngle = 0
  1454. end
  1455. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  1456. if LateralAngle > (math.pi / 2) then
  1457. LateralAngle = (math.pi / 2)
  1458. if chr:FindFirstChild('Torso') then
  1459. local Torso = chr.Torso
  1460. local Point = Torso.CFrame:vectorToObjectSpace(mou.Hit.p-Torso.CFrame.p)
  1461. if Point.Z > 0 then
  1462. if Point.X > 0 then
  1463. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mou.Hit.X,Torso.Position.Y,mou.Hit.Z))*CFrame.Angles(0,math.rad(90),0)
  1464. elseif Point.X < 0 then
  1465. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mou.Hit.X,Torso.Position.Y,mou.Hit.Z))*CFrame.Angles(0,math.rad(-90),0)
  1466. end
  1467. end
  1468. end
  1469. end
  1470. if Cross.Y < 0 then
  1471. LateralAngle = -LateralAngle
  1472. end
  1473. return(CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2))
  1474. end
  1475. end
  1476.  
  1477. function fire()
  1478. if mou.Target then
  1479. local humanoid = mou.Target.Parent:FindFirstChildOfClass("Humanoid")
  1480. if not humanoid then
  1481. humanoid = mou.Target.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1482. end
  1483. if humanoid then
  1484. local coru = coroutine.wrap(function()
  1485. damage(humanoid.Parent,mou.Target)
  1486. end)
  1487. coru()
  1488. end
  1489. end
  1490. local beam = Instance.new("Part", workspace)
  1491. beam.BrickColor = BrickColor.new("Bright yellow")
  1492. beam.FormFactor = "Custom"
  1493. beam.Material = "Neon"
  1494. beam.Transparency = 0.25
  1495. beam.Anchored = true
  1496. beam.Locked = true
  1497. beam.CanCollide = false
  1498. local distance = (obj4.CFrame.p - mou.Hit.p).magnitude
  1499. beam.Size = Vector3.new(0.2, 0.2, distance)
  1500. beam.CFrame = CFrame.new(obj4.CFrame.p, mou.Hit.p) * CFrame.new(0, 0, -distance / 2)
  1501. game:GetService("Debris"):AddItem(beam, 0.05)
  1502. local sound = Instance.new('Sound',obj4)
  1503. sound.SoundId = 'rbxassetid://139593133'
  1504. sound.Volume = 3
  1505. sound.EmitterSize = 40
  1506. sound.MaxDistance = 450
  1507. sound:Play()
  1508. game:GetService("Debris"):AddItem(beam, sound.TimeLength)
  1509. end
  1510.  
  1511. ---------------------------[[[ SCRIPT ]]]---------------------------
  1512. if chr:FindFirstChild('Left Arm') == nil or chr:FindFirstChild('Torso') == nil or chr.Torso:FindFirstChild('Left Shoulder') == nil then
  1513. leftarm = false
  1514. end
  1515. local weldas = Instance.new('Weld',obj2)
  1516. if leftarm and chr:FindFirstChild('Left Arm') then
  1517. weldas.Part0 = obj2
  1518. weldas.Part1 = chr["Left Arm"]
  1519. weldas.C0 = CFrame.new(0,-0.85,-0.30)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(180))
  1520. elseif chr:FindFirstChild('Right Arm') then
  1521. weldas.Part0 = obj2
  1522. weldas.Part1 = chr["Right Arm"]
  1523. weldas.C0 = CFrame.new(0,-0.85,-0.30)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(180))
  1524. end
  1525.  
  1526.  
  1527. if leftarm and chr:FindFirstChild('Left Arm') and chr:FindFirstChild('Torso') and chr.Torso:FindFirstChild('Left Shoulder') then
  1528. chr:FindFirstChild('Left Arm').AncestryChanged:connect(function(me,par)
  1529. if par ~= chr and chr:FindFirstChild('Right Arm') then
  1530. if obj2 and obj2:FindFirstChildOfClass('Weld') then
  1531. obj2:FindFirstChildOfClass('Weld').Part1 = chr["Right Arm"]
  1532. end
  1533. leftarm = false
  1534. end
  1535. end)
  1536. chr.Torso:FindFirstChild('Left Shoulder').AncestryChanged:connect(function(me,par)
  1537. if par ~= chr:FindFirstChild('Torso') and chr:FindFirstChild('Right Arm') then
  1538. if obj2 and obj2:FindFirstChildOfClass('Weld') then
  1539. obj2:FindFirstChildOfClass('Weld').Part1 = chr["Right Arm"]
  1540. end
  1541. end
  1542. leftarm = false
  1543. end)
  1544. elseif leftarm then
  1545. if obj2 and obj2:FindFirstChildOfClass('Weld') and chr:FindFirstChild('Right Arm') then
  1546. obj2:FindFirstChildOfClass('Weld').Part1 = chr["Right Arm"]
  1547. end
  1548. end
  1549.  
  1550. mou.KeyDown:connect(function(key)
  1551. if key == string.lower(curkey) then
  1552. active = not active
  1553. end
  1554. end)
  1555.  
  1556. plr.Chatted:connect(function(msg)
  1557. if string.lower(string.sub(msg,1,5)) == "!bind" then
  1558. curkey = string.lower(string.sub(msg,7,7))
  1559. notify([[Changed key for equip/unequip to "]]..curkey..[[".]],false)
  1560. end
  1561. end)
  1562.  
  1563. game:GetService('RunService').Stepped:connect(function()
  1564. if active and chr:FindFirstChild('Torso') then
  1565. if leftarm then
  1566. chr.Torso["Left Shoulder"].C0 = calculate()
  1567. else
  1568. chr.Torso["Right Shoulder"].C0 = calculate()
  1569. end
  1570. weldas.Part1 = chr["Right Arm"]
  1571. weldas.C0 = CFrame.new(0,-0.85,-0.30)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(180))
  1572. elseif chr:FindFirstChild('Torso') and (chr.Torso:FindFirstChild('Left Shoulder') or chr.Torso:FindFirstChild('Right Shoulder')) then
  1573. if leftarm then
  1574. chr.Torso["Left Shoulder"].C0 = CFrame.new(-1,0.5,0)*CFrame.Angles(0,-math.pi/2,0)
  1575. else
  1576. chr.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.pi/2,0)
  1577. end
  1578. weldas.Part1 = chr.Torso
  1579. weldas.C0 = CFrame.new(-1,0,-1)*CFrame.Angles(math.rad(-90),0,0)
  1580. end
  1581. for i,v in pairs(stunneds) do
  1582. v.PlatformStand = true
  1583. end
  1584. end)
  1585.  
  1586. mou.Button1Down:connect(function()
  1587. if active then
  1588. fire()
  1589. end
  1590. end)
  1591.  
  1592. notify([[Chat "Press "F" to Equip Gun."]],false)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement