Advertisement
TheownerFescripts

Grab

May 16th, 2021
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.00 KB | None | 0 0
  1. 758186003me = game.Players.LocalPlayer
  2.  
  3. char = me.Character
  4.  
  5. selected = false
  6.  
  7. attacking = false
  8.  
  9. hurt = false
  10.  
  11. grabbed = nil
  12.  
  13. mode = "drop"
  14.  
  15. bloodcolors = {"Really red", "Bright red"}
  16.  
  17.  
  18.  
  19. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  20.  
  21. part.Parent = parent
  22.  
  23. part.formFactor = form
  24.  
  25. part.CanCollide = collide
  26.  
  27. part.Transparency = tran
  28.  
  29. part.Reflectance = ref
  30.  
  31. part.Size = Vector3.new(x,y,z)
  32.  
  33. part.BrickColor = BrickColor.new(color)
  34.  
  35. part.TopSurface = 0
  36.  
  37. part.BottomSurface = 0
  38.  
  39. part.Anchored = anchor
  40.  
  41. part.Locked = true
  42.  
  43. part:BreakJoints()
  44.  
  45. end
  46.  
  47.  
  48. function weld(w, p, p1, a, b, c, x, y, z)
  49.  
  50. w.Parent = p
  51.  
  52. w.Part0 = p
  53.  
  54. w.Part1 = p1
  55.  
  56. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  57.  
  58. end
  59.  
  60.  
  61. function mesh(mesh, parent, x, y, z, type)
  62.  
  63. mesh.Parent = parent
  64.  
  65. mesh.Scale = Vector3.new(x, y, z)
  66.  
  67. mesh.MeshType = type
  68.  
  69. end
  70.  
  71.  
  72. function remgui()
  73.  
  74. for _,v in pairs(me.PlayerGui:GetChildren()) do
  75.  
  76. if v.Name == "Modeshow" then
  77.  
  78. v:remove()
  79.  
  80. end
  81.  
  82. end
  83.  
  84. end
  85.  
  86.  
  87. function inform(text,delay)
  88.  
  89. remgui()
  90.  
  91. local sc = Instance.new("ScreenGui")
  92.  
  93. sc.Parent = me.PlayerGui
  94.  
  95. sc.Name = "Modeshow"
  96.  
  97. local bak = Instance.new("Frame",sc)
  98.  
  99. bak.BackgroundColor3 = Color3.new(1,1,1)
  100.  
  101. bak.Size = UDim2.new(0.94,0,0.1,0)
  102.  
  103. bak.Position = UDim2.new(0.03,0,0.037,0)
  104.  
  105. bak.BorderSizePixel = 0
  106.  
  107. local gi = Instance.new("TextLabel",sc)
  108.  
  109. gi.Size = UDim2.new(0.92,0,0.09,0)
  110.  
  111. gi.BackgroundColor3 = Color3.new(0,0,0)
  112.  
  113. gi.Position = UDim2.new(0.04,0,0.042,0)
  114.  
  115. gi.TextColor3 = Color3.new(1,1,1)
  116.  
  117. gi.FontSize = "Size12"
  118.  
  119. gi.Text = text
  120.  
  121. coroutine.resume(coroutine.create(function()
  122.  
  123. wait(delay)
  124.  
  125. sc:remove()
  126.  
  127. end))
  128.  
  129. end
  130.  
  131.  
  132. if char:findFirstChild("Bricks",true) then
  133.  
  134. char:findFirstChild("Bricks",true):remove()
  135.  
  136. end
  137.  
  138.  
  139. bricks = Instance.new("Model",me.Character)
  140.  
  141. bricks.Name = "Bricks"
  142.  
  143.  
  144. --Parts-------------------------Parts-------------------------Parts-------------------------Parts----------------------
  145.  
  146.  
  147. rarm = char:findFirstChild("Right Arm")
  148.  
  149. larm = char:findFirstChild("Left Arm")
  150.  
  151. lleg = char:findFirstChild("Left Leg")
  152.  
  153. torso = char:findFirstChild("Torso")
  154.  
  155. hum = char:findFirstChild("Humanoid")
  156.  
  157.  
  158. righthold = Instance.new("Part")
  159.  
  160. prop(righthold, bricks, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom")
  161.  
  162. w11 = Instance.new("Weld")
  163.  
  164. weld(w11, rarm, righthold, 0, 0, 0, 0, 1, 0)
  165.  
  166.  
  167. lefthold = Instance.new("Part")
  168.  
  169. prop(lefthold, bricks, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom")
  170.  
  171. w12 = Instance.new("Weld")
  172.  
  173. weld(w12, larm, lefthold, 0, 0, 0, 0, 1, 0)
  174.  
  175.  
  176. hold = Instance.new("Part")
  177.  
  178. prop(hold, bricks, false, 0, 0, 0.2, 0.4, 0.7, "Really red", false, "Custom")
  179.  
  180. oh = Instance.new("Weld")
  181.  
  182. weld(oh, lleg, hold, -math.pi/1.4, 0, math.rad(35), 0.55, -0.9, 0.3)
  183.  
  184.  
  185. knife = Instance.new("Part")
  186.  
  187. prop(knife, bricks, false, 0, 0, 0.35, 1.1, 0.5, "Really black", false, "Custom")
  188.  
  189. orr = Instance.new("Weld")
  190.  
  191. weld(orr, hold, knife, 0, 0, 0, 0, 0.7, 0)
  192.  
  193. ar = Instance.new("Weld")
  194.  
  195. weld(ar, lefthold, nil, math.pi/2, 0, math.pi, 0, 0, 0)
  196.  
  197.  
  198.  
  199. blade = Instance.new("Part")
  200.  
  201. prop(blade, bricks, false, 0, 0, 0.1, 1.5, 0.4, "Medium grey", false, "Custom")
  202.  
  203. Instance.new("BlockMesh",blade).Scale = Vector3.new(0.3,1,1)
  204.  
  205. w2 = Instance.new("Weld")
  206.  
  207. weld(w2, knife, blade, 0, 0, 0, 0, -1.2, 0)
  208.  
  209.  
  210. blade2 = Instance.new("Part")
  211.  
  212. prop(blade2, bricks, false, 0, 0, 0.1, 0.5, 0.4, "Medium grey", false, "Custom")
  213.  
  214. local mew = Instance.new("SpecialMesh",blade2)
  215.  
  216. mew.MeshType = "Wedge"
  217.  
  218. mew.Scale = Vector3.new(0.3,1,1)
  219.  
  220. w3 = Instance.new("Weld")
  221.  
  222. weld(w3, blade, blade2, 0, 0, 0, 0, -1, 0)
  223.  
  224.  
  225.  
  226.  
  227.  
  228. rb = Instance.new("Part")
  229.  
  230. prop(rb, bricks, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom")
  231.  
  232. w13 = Instance.new("Weld")
  233.  
  234. weld(w13, torso, rb, 0, 0, 0, -1.5, -0.5, 0)
  235.  
  236.  
  237. lb = Instance.new("Part")
  238.  
  239. prop(lb, bricks, false, 1, 0, 0.1, 0.1, 0.1, "White", false, "Custom")
  240.  
  241. w14 = Instance.new("Weld")
  242.  
  243. weld(w14, torso, lb, 0, 0, 0, 1.5, -0.5, 0)
  244.  
  245.  
  246. rw = Instance.new("Weld")
  247.  
  248. weld(rw, rb, nil, 0, 0, 0, 0, 0.5, 0)
  249.  
  250.  
  251. lw = Instance.new("Weld")
  252.  
  253. weld(lw, lb, nil, 0, 0, 0, 0, 0.5, 0)
  254.  
  255.  
  256. grabweld = nil
  257.  
  258. platlol = nil
  259.  
  260. lolhum = nil
  261.  
  262.  
  263. function touch(h)
  264.  
  265. if hurt then
  266.  
  267. if grabbed == nil then
  268.  
  269. local hu = h.Parent:findFirstChild("Humanoid")
  270.  
  271. local head = h.Parent:findFirstChild("Head")
  272.  
  273. local torz = h.Parent:findFirstChild("Torso")
  274.  
  275. if hu ~= nil and head ~= nil and torz ~= nil and h.Parent.Name ~= name then
  276.  
  277. if hu.Health > 0 then
  278.  
  279. grabbed = torz
  280.  
  281. hu.PlatformStand = true
  282.  
  283. local w = Instance.new("Weld")
  284.  
  285. weld(w,righthold,grabbed,math.pi/2,0.2,0,0.7,-0.9,-0.6)
  286.  
  287. grabweld = w
  288.  
  289. lolhum = hu
  290.  
  291. local lolxd = true
  292.  
  293. platlol = lolxd
  294.  
  295. hu.Changed:connect(function(prop)
  296.  
  297. if prop == "PlatformStand" and platlol then
  298.  
  299. hu.PlatformStand = true
  300.  
  301. end
  302.  
  303. end)
  304.  
  305. end
  306.  
  307. end
  308.  
  309. end
  310.  
  311. end
  312.  
  313. end
  314.  
  315.  
  316. righthold.Touched:connect(touch)
  317.  
  318. lefthold.Touched:connect(touch)
  319.  
  320.  
  321. function bleed(part,po)
  322.  
  323. local lol1 = math.random(5,30)/100
  324.  
  325. local lol2 = math.random(5,30)/100
  326.  
  327. local lol3 =math.random(5,30)/100
  328.  
  329. local lol4 = math.random(1,#bloodcolors)
  330.  
  331. local p = Instance.new("Part")
  332.  
  333. prop(p,part.Parent,false,0,0,lol1,lol2,lol3,bloodcolors[lol4],false,"Custom")
  334.  
  335. p.CFrame = part.CFrame * CFrame.new(math.random(-5,5)/10,po,math.random(-5,5)/10)
  336.  
  337. p.Velocity = Vector3.new(math.random(-190,190)/10,math.random(-190,190)/10,math.random(-190,190)/10)
  338.  
  339. p.RotVelocity = Vector3.new(math.random(-400,400)/10,math.random(-400,400)/10,math.random(-400,400)/10)
  340.  
  341. coroutine.resume(coroutine.create(function()
  342.  
  343. wait(3)
  344.  
  345. p:remove()
  346.  
  347. end))
  348.  
  349. end
  350.  
  351.  
  352. h = Instance.new("HopperBin",me.Backpack)
  353.  
  354. h.Name = "Grab"
  355.  
  356. script.Parent = h
  357.  
  358.  
  359. bin = h
  360.  
  361.  
  362. function select(mouse)
  363.  
  364. orr.Part1 = nil
  365.  
  366. ar.Part1 = knife
  367.  
  368. mouse.Button1Down:connect(function()
  369.  
  370. if attacking == false then
  371.  
  372. attacking = true
  373.  
  374. lw.Part1 = larm
  375.  
  376. rw.Part1 = rarm
  377.  
  378. hurt = true
  379.  
  380. for i=1, 8 do
  381.  
  382. rw.C0 = rw.C0 * CFrame.new(-0.03,0,-0.08) * CFrame.fromEulerAnglesXYZ(0.18,0.04,0)
  383.  
  384. lw.C0 = lw.C0 * CFrame.new(0.06,0,-0.06) * CFrame.fromEulerAnglesXYZ(0.15,-0.11,-0.05)
  385.  
  386. wait()
  387.  
  388. end
  389.  
  390. wait(1)
  391.  
  392. hurt = false
  393.  
  394. if grabbed == nil then
  395.  
  396. for i=1, 4 do
  397.  
  398. rw.C0 = rw.C0 * CFrame.new(0.06,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.36,-0.08,0)
  399.  
  400. lw.C0 = lw.C0 * CFrame.new(-0.12,0,0.12) * CFrame.fromEulerAnglesXYZ(-0.3,0.22,0.05)
  401.  
  402. wait()
  403.  
  404. end
  405.  
  406. lw.C0 = CFrame.new(0,0,0)
  407.  
  408. rw.C0 = CFrame.new(0,0,0)
  409.  
  410. lw.Part1 = nil
  411.  
  412. rw.Part1 = nil
  413.  
  414. attacking = false
  415.  
  416. end
  417.  
  418. elseif hurt == false and grabbed ~= nil and mode == "drop" then
  419.  
  420. grabweld:remove()
  421.  
  422. grabweld = nil
  423.  
  424. platlol = false
  425.  
  426. grabbed = nil
  427.  
  428. lolhum.PlatformStand = false
  429.  
  430. lolhum = nil
  431.  
  432. for i=1, 4 do
  433.  
  434. rw.C0 = rw.C0 * CFrame.new(0.06,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.36,-0.08,0)
  435.  
  436. lw.C0 = lw.C0 * CFrame.new(-0.12,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.3,0.2,0)
  437.  
  438. wait()
  439.  
  440. end
  441.  
  442. lw.C0 = CFrame.new(0,0,0)
  443.  
  444. rw.C0 = CFrame.new(0,0,0)
  445.  
  446. lw.Part1 = nil
  447.  
  448. rw.Part1 = nil
  449.  
  450. attacking = false
  451.  
  452. platlol = nil
  453.  
  454. elseif hurt == false and grabbed ~= nil and grabweld ~= nil and mode == "throw" then
  455.  
  456. grabweld:remove()
  457.  
  458. grabweld = nil
  459.  
  460. local bf = Instance.new("BodyForce",grabbed)
  461.  
  462. bf.force = torso.CFrame.lookVector * 8500
  463.  
  464. bf.force = bf.force + Vector3.new(0,7400,0)
  465.  
  466. coroutine.resume(coroutine.create(function()
  467.  
  468. wait(0.12)
  469.  
  470. bf:remove()
  471.  
  472. end))
  473.  
  474. for i=1, 6 do
  475.  
  476. rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.35,0,0)
  477.  
  478. lw.C0 = lw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.18,0,0)
  479.  
  480. wait()
  481.  
  482. end
  483.  
  484. for i=1, 4 do
  485.  
  486. rw.C0 = rw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(-0.47,0,0)
  487.  
  488. lw.C0 = lw.C0 * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0.2,0,0)
  489.  
  490. wait()
  491.  
  492. end
  493.  
  494. wait(0.2)
  495.  
  496. platlol = false
  497.  
  498. grabbed = nil
  499.  
  500. lolhum.PlatformStand = false
  501.  
  502. lolhum = nil
  503.  
  504. for i=1, 4 do
  505.  
  506. rw.C0 = rw.C0 * CFrame.new(0.06,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.36,-0.08,0)
  507.  
  508. lw.C0 = lw.C0 * CFrame.new(-0.12,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.3,0.2,0)
  509.  
  510. wait()
  511.  
  512. end
  513.  
  514. lw.C0 = CFrame.new(0,0,0)
  515.  
  516. rw.C0 = CFrame.new(0,0,0)
  517.  
  518. lw.Part1 = nil
  519.  
  520. rw.Part1 = nil
  521.  
  522. attacking = false
  523.  
  524. platlol = nil
  525.  
  526. elseif hurt == false and grabbed ~= nil and lolhum ~= nil and grabweld ~= nil and mode == "kill" then
  527.  
  528. for i=1, 5 do
  529.  
  530. lw.C0 = lw.C0 * CFrame.new(0.02,0.12,0.1) * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.03)
  531.  
  532. wait()
  533.  
  534. end
  535.  
  536. local ne = grabbed:findFirstChild("Neck")
  537.  
  538. coroutine.resume(coroutine.create(function()
  539.  
  540. local duh = grabbed
  541.  
  542. local duh2 = grabbed.Parent.Head
  543.  
  544. local lolas = lolhum
  545.  
  546. duh.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  547.  
  548. for i=1, 60 do
  549.  
  550. wait()
  551.  
  552. local hm = math.random(1,9)
  553.  
  554. pcall(function()
  555.  
  556. if hm == 1 then
  557.  
  558. duh2.Sound.Pitch = math.random(90,110)/100
  559.  
  560. duh2.Sound:play()
  561.  
  562. end
  563.  
  564. end)
  565.  
  566. if hm > 0 and hm < 3 then
  567.  
  568. bleed(duh,1)
  569.  
  570. bleed(duh2,-0.5)
  571.  
  572. end
  573.  
  574. end
  575.  
  576. lolas.Health = 0
  577.  
  578. for i=1, 85 do
  579.  
  580. wait()
  581.  
  582. local hm = math.random(1,9)
  583.  
  584. pcall(function()
  585.  
  586. if hm == 1 then
  587.  
  588. duh2.Sound.Pitch = math.random(90,110)/100
  589.  
  590. duh2.Sound:play()
  591.  
  592. end
  593.  
  594. end)
  595.  
  596. if hm > 0 and hm < 3 then
  597.  
  598. bleed(duh,1)
  599.  
  600. bleed(duh2,-0.5)
  601.  
  602. end
  603.  
  604. end
  605.  
  606. end))
  607.  
  608. for i=1, 3 do
  609.  
  610. lw.C0 = lw.C0 * CFrame.new(0.02,0.12,0.1) * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.03)
  611.  
  612. if ne ~= nil then
  613.  
  614. grabbed.Neck.C0 = grabbed.Neck.C0 * CFrame.fromEulerAnglesXYZ(-0.35,0,0)
  615.  
  616. end
  617.  
  618. wait()
  619.  
  620. end
  621.  
  622. grabweld:remove()
  623.  
  624. grabweld = nil
  625.  
  626. for i=1, 4 do
  627.  
  628. lw.C0 = lw.C0 * CFrame.new(-0.04,-0.24,-0.2) * CFrame.fromEulerAnglesXYZ(0.1,0,0.06)
  629.  
  630. wait()
  631.  
  632. end
  633.  
  634. for i=1, 4 do
  635.  
  636. rw.C0 = rw.C0 * CFrame.new(0.06,0,0.16) * CFrame.fromEulerAnglesXYZ(-0.36,-0.08,0)
  637.  
  638. lw.C0 = lw.C0 * CFrame.new(-0.12,0,0.12) * CFrame.fromEulerAnglesXYZ(-0.3,0.22,0.05)
  639.  
  640. wait()
  641.  
  642. end
  643.  
  644. lw.C0 = CFrame.new(0,0,0)
  645.  
  646. rw.C0 = CFrame.new(0,0,0)
  647.  
  648. lw.Part1 = nil
  649.  
  650. rw.Part1 = nil
  651.  
  652. platlol = false
  653.  
  654. grabbed = nil
  655.  
  656. lolhum = nil
  657.  
  658. attacking = false
  659.  
  660. platlol = nil
  661.  
  662. end
  663.  
  664. end)
  665.  
  666. mouse.KeyDown:connect(function(kai)
  667.  
  668. key = kai:lower()
  669.  
  670. if key == "q" then
  671.  
  672. mode = "drop"
  673.  
  674. inform("Mode: Drop",2)
  675.  
  676. elseif key == "e" then
  677.  
  678. mode = "throw"
  679.  
  680. inform("Mode: Throw",2)
  681.  
  682. elseif key == "f" then
  683.  
  684. mode = "kill"
  685.  
  686. inform("Mode: Kill",2)
  687.  
  688. end
  689.  
  690. end)
  691.  
  692. end
  693.  
  694.  
  695. function desel()
  696.  
  697. repeat wait() until attacking == false
  698.  
  699. orr.Part1 = knife
  700.  
  701. ar.Part1 = nil
  702.  
  703. end
  704.  
  705.  
  706. bin.Selected:connect(select)
  707.  
  708. bin.Deselected:connect(desel)
  709.  
  710.  
  711. char.Humanoid.Died:connect(function()
  712.  
  713. pcall(function()
  714.  
  715. grabweld:remove()
  716.  
  717. grabweld = nil
  718.  
  719. grabbed = nil
  720.  
  721. platlol = false
  722.  
  723. platlol = nil
  724.  
  725. end)
  726.  
  727. end)
  728.  
  729.  
  730. inform("Grab script loaded succesfully.",2)
  731. ----------------------------------------------------
  732. z = Instance.new("Sound", char)
  733. z.SoundId = "rbxassetid://416385309"-- 416385309 -- 416385309 -- 200514784
  734. z.Looped = true
  735. z.Pitch = 1
  736. z.Volume = 80
  737. wait(.1)
  738. z:Play()
  739. ----------------------------------------------------
  740. ypcall(function()
  741. char.Hat:Destroy()
  742. Hat = Instance.new("Hat", char)
  743. Hat.Name = "Hat"
  744. char.Hat.HatTemplate = "http://www.roblox.com/asset/?id=1029025"
  745. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement