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