Advertisement
memberhero

axe of doom

Dec 18th, 2017
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.20 KB | None | 0 0
  1. --Made by ONELEGEND Fixed By basstracker1970
  2. bin = Instance.new("HopperBin")
  3. bin.Name = "Select"
  4. bin.Parent = game.Players.LocalPlayer.Backpack
  5.  
  6. Plrs = game:GetService("Players")
  7.  
  8.  
  9.  
  10. Name = "basstracker1970"
  11.  
  12. me = Plrs.basstracker1970
  13.  
  14. char = me.Character
  15.  
  16. Modelname = "Ax of Doom"
  17.  
  18. Toolname = "Ax of Doom"
  19.  
  20. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  21.  
  22. necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  23.  
  24. selected = false
  25.  
  26. Hurt = false
  27.  
  28. Able = true
  29.  
  30.  
  31.  
  32. CA = CFrame.Angles
  33.  
  34. CN = CFrame.new
  35.  
  36. MR = math.rad
  37.  
  38. MP = math.pi
  39.  
  40. MD = math.deg
  41.  
  42. MH = math.huge
  43.  
  44. MRA = math.random
  45.  
  46.  
  47.  
  48. Add = {
  49.  
  50. Sphere = function(P)
  51.  
  52. local m = Instance.new("SpecialMesh",P)
  53.  
  54. m.MeshType = "Sphere"
  55.  
  56. return m
  57.  
  58. end,
  59.  
  60. BF = function(P)
  61.  
  62. local bf = Instance.new("BodyForce",P)
  63.  
  64. bf.force = Vector3.new(0, P:GetMass()*187, 0)
  65.  
  66. return bf
  67.  
  68. end,
  69.  
  70. BP = function(P)
  71.  
  72. local bp = Instance.new("BodyPosition",P)
  73.  
  74. bp.maxForce = Vector3.new(math.huge, 0, math.huge)
  75.  
  76. bp.P = 14000
  77.  
  78. return bp
  79.  
  80. end,
  81.  
  82. BG = function(P)
  83.  
  84. local bg = Instance.new("BodyGyro",P)
  85.  
  86. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  87.  
  88. bg.P = 14000
  89.  
  90. return bg
  91.  
  92. end,
  93.  
  94. Mesh = function(P, ID, x, y, z)
  95.  
  96. local m = Instance.new("SpecialMesh")
  97.  
  98. m.MeshId = ID
  99.  
  100. m.Scale = Vector3.new(x, y, z)
  101.  
  102. m.Parent = P
  103.  
  104. return m
  105.  
  106. end,
  107.  
  108. Sound = function(P, ID, vol, pitch)
  109.  
  110. local s = Instance.new("Sound")
  111.  
  112. s.SoundId = ID
  113.  
  114. s.Volume = vol
  115.  
  116. s.Pitch = pitch
  117.  
  118. s.Parent = P
  119.  
  120. return s
  121.  
  122. end
  123.  
  124. }
  125.  
  126.  
  127.  
  128. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  129.  
  130. local p = Instance.new("Part")
  131.  
  132. p.formFactor = "Custom"
  133.  
  134. p.Anchored = Anchor
  135.  
  136. p.CanCollide = Collide
  137.  
  138. p.Transparency = Tran
  139.  
  140. p.Reflectance = Ref
  141.  
  142. p.BrickColor = BrickColor.new(Color)
  143.  
  144. for _, Surf in pairs(Surfaces) do
  145.  
  146. p[Surf] = "Smooth"
  147.  
  148. end
  149.  
  150. p.Size = Vector3.new(X, Y, Z)
  151.  
  152. if Break then
  153.  
  154. p:BreakJoints()
  155.  
  156. else p:MakeJoints() end
  157.  
  158. p.Parent = Parent
  159.  
  160. return p
  161.  
  162. end
  163.  
  164.  
  165.  
  166. function Weld(p0, p1, x, y, z, a, b, c)
  167.  
  168. local w = Instance.new("Weld")
  169.  
  170. w.Parent = p0
  171.  
  172. w.Part0 = p0
  173.  
  174. w.Part1 = p1
  175.  
  176. w.C1 = CN(x,y,z) * CA(a,b,c)
  177.  
  178. return w
  179.  
  180. end
  181.  
  182.  
  183.  
  184. function ComputePos(pos1, pos2)
  185.  
  186. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  187.  
  188. return CN(pos1, pos3)
  189.  
  190. end
  191.  
  192.  
  193.  
  194. function getHumanoid(c)
  195.  
  196. local h = nil
  197.  
  198. for i,v in pairs(c:children()) do
  199.  
  200. if v:IsA("Humanoid") and c ~= char then
  201.  
  202. if v.Health > 0 then
  203.  
  204. h = v
  205.  
  206. end
  207.  
  208. end
  209.  
  210. end
  211.  
  212. return h
  213.  
  214. end
  215.  
  216.  
  217.  
  218. for i,v in pairs(char:children()) do
  219.  
  220. if v.Name == Modelname then
  221.  
  222. v:remove()
  223.  
  224. end
  225.  
  226. end
  227.  
  228.  
  229.  
  230. torso = char.Torso
  231.  
  232. neck = torso.Neck
  233.  
  234. hum = char.Humanoid
  235.  
  236. Rarm = char["Right Arm"]
  237.  
  238. Larm = char["Left Arm"]
  239.  
  240. Rleg = char["Right Leg"]
  241.  
  242. Lleg = char["Left Leg"]
  243.  
  244.  
  245.  
  246. hc = Instance.new("Humanoid")
  247.  
  248. hc.Health = 0
  249.  
  250. hc.MaxHealth = 0
  251.  
  252.  
  253.  
  254. slash = Add.Sound(nil, "rbxasset://sounds//swordslash.wav", 0.9, 1)
  255.  
  256. hitsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2801263", 0.7, 0.6)
  257.  
  258. charge = Add.Sound(nil, "http://www.roblox.com/asset/?id=2101137", 0.8, 0.65)
  259.  
  260. boom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2691586", 0.8, 0.3)
  261.  
  262.  
  263.  
  264. function PlaySound(sound)
  265.  
  266. local s = sound:clone()
  267.  
  268. s.Parent = torso
  269.  
  270. s.PlayOnRemove = true
  271.  
  272. coroutine.resume(coroutine.create(function()
  273.  
  274. wait()
  275.  
  276. s:remove()
  277.  
  278. end))
  279.  
  280. end
  281.  
  282.  
  283.  
  284.  
  285.  
  286. --[[ PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS
  287.  
  288. PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS
  289.  
  290. PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS PARTS
  291.  
  292. ]]
  293.  
  294. Mo = Instance.new("Model")
  295.  
  296. Mo.Name = Modelname
  297.  
  298.  
  299.  
  300. RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  301.  
  302. LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  303.  
  304. RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  305.  
  306. LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  307.  
  308.  
  309.  
  310. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  311.  
  312. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  313.  
  314. RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  315.  
  316. LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  317.  
  318.  
  319.  
  320. RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
  321.  
  322. LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
  323.  
  324. RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  325.  
  326. LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  327.  
  328.  
  329.  
  330. HB = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  331.  
  332. HBW = Weld(Rarm, HB, 0, 1, 0, 0, 0, 0)
  333.  
  334. HW = Weld(HB, nil, 0, -1, 0, math.pi/2, 0, 0)
  335.  
  336.  
  337.  
  338. TH = Weld(torso, nil, -0.75, 0.7, 0.4, 0, math.pi/2, MR(-140))
  339.  
  340. TH.C0 = CA(MR(-10), MR(10), 0)
  341.  
  342.  
  343.  
  344. handle = Part(Mo, false, false, 0, 0, "Camo", 0.45, 5.5, 0.45, true)
  345.  
  346. Instance.new("SpecialMesh",handle)
  347.  
  348. handle.Name = "Handle"
  349.  
  350.  
  351.  
  352. dec1 = Part(Mo, false, false, 0, 0, "Dark green", 0.2, 6, 0.2, true)
  353.  
  354. Add.Mesh(dec1, "http://www.roblox.com/asset/?id=16606212", 0.38, 0.38, 1.55)
  355.  
  356. Weld(handle, dec1, 0, 0, 0, math.pi/2, 0, 0)
  357.  
  358.  
  359.  
  360. dec2 = Part(Mo, false, false, 0, 0, "Earth green", 0.2, 6, 0.2, true)
  361.  
  362. Add.Mesh(dec2, "http://www.roblox.com/asset/?id=16606212", -0.3, 0.3, 1.55)
  363.  
  364. Weld(handle, dec2, 0, 0, 0, math.pi/2, math.pi/2, 0)
  365.  
  366.  
  367.  
  368. skull = Part(Mo, false, false, 0, 0, "Bright green", 0.2, 6, 0.2, true)
  369.  
  370. Add.Mesh(skull, "http://www.roblox.com/asset/?id=4770583", 2.9, 2.9, 2.3)
  371.  
  372. Weld(handle, skull, 0, -2.5, 0, 0, 0, 0)
  373.  
  374.  
  375.  
  376. for x = 0, 180, 180 do
  377.  
  378. for i = -40, 70, 110/3 do
  379.  
  380. local asd = (i+90)/85
  381.  
  382. local p = Part(Mo, false, false, 0, 0, "Camo", 0.3, 0.8, 0.3, true)
  383.  
  384. Add.Mesh(p, "http://www.roblox.com/asset/?id=1033714", 0.16, asd*1.2, 0.16)
  385.  
  386. local w = Weld(skull, p, 0, 0, 0, 0, 0, 0)
  387.  
  388. w.C0 = CA(0, MR(x), MR(i))
  389.  
  390. w.C1 = CN(0, -1, 0) * CA(math.pi/2, math.pi/2, 0)
  391.  
  392. end
  393.  
  394. end
  395.  
  396.  
  397.  
  398. handletip1 = Part(Mo, false, false, 0, 0.2, "Earth green", 0.5, 0.5, 0.5, true)
  399.  
  400. w1 = Weld(handle, handletip1, 0, 2.6, 0, 0, 0, 0)
  401.  
  402. Add.Mesh(handletip1, "http://www.roblox.com/asset/?id=9756362", 0.6, 0.5, 0.6)
  403.  
  404.  
  405.  
  406. handletip2 = Part(Mo, false, false, 0, 0.2, "Camo", 0.5, 0.5, 0.5, true)
  407.  
  408. Weld(handletip1, handletip2, 0, 0, 0, 0, MR(45), 0)
  409.  
  410. Add.Mesh(handletip2, "http://www.roblox.com/asset/?id=9756362", 0.6, 0.55, 0.6)
  411.  
  412.  
  413.  
  414. Mo.Parent = char
  415.  
  416. TH.Part1 = handle
  417.  
  418.  
  419.  
  420. if script.Parent.className ~= "HopperBin" then
  421.  
  422. h = Instance.new("HopperBin",me.Backpack)
  423.  
  424. h.Name = Toolname
  425.  
  426. script.Parent = h
  427.  
  428. end
  429.  
  430.  
  431.  
  432. bin = script.Parent
  433.  
  434.  
  435.  
  436. --[[ ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS
  437.  
  438. ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS
  439.  
  440. ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS ANIMATIONS
  441.  
  442. ]]
  443.  
  444.  
  445.  
  446. function detach(bool)
  447.  
  448. LLW.C0 = CN(0, 0, 0)
  449.  
  450. RLW.C0 = CN(0, 0, 0)
  451.  
  452. LAW.C0 = CN(0, 0, 0)
  453.  
  454. RAW.C0 = CN(0, 0, 0)
  455.  
  456. if bool then
  457.  
  458. LLW.Part1 = nil
  459.  
  460. RLW.Part1 = nil
  461.  
  462. RAW.Part1 = nil
  463.  
  464. LAW.Part1 = nil
  465.  
  466. TH.Part1 = handle
  467.  
  468. HW.Part1 = nil
  469.  
  470. end
  471.  
  472. end
  473.  
  474.  
  475.  
  476. function attach()
  477.  
  478. RAW.Part1 = Rarm
  479.  
  480. LAW.Part1 = Larm
  481.  
  482. RLW.Part1 = Rleg
  483.  
  484. LLW.Part1 = Lleg
  485.  
  486. end
  487.  
  488.  
  489.  
  490. function normal()
  491.  
  492. neck.C0 = necko
  493.  
  494. RAW.C0 = RAWStand
  495.  
  496. LAW.C0 = LAWStand
  497.  
  498. RLW.C0 = RLWStand
  499.  
  500. LLW.C0 = LLWStand
  501.  
  502. HW.C0 = HWStand
  503.  
  504. end
  505.  
  506.  
  507.  
  508. function idleanim()
  509.  
  510. attach()
  511.  
  512. for i = 0, 1, 0.016 do
  513.  
  514. RAW.C0 = RAWStand * CA(0, MR(-7*i), MR(12*i))
  515.  
  516. LAW.C0 = LAWStand * CA(0, MR(-5*i), MR(7*i)) * CN(0, -0.2*i, 0)
  517.  
  518. RLW.C0 = RLWStand * CA(MR(-4*i), 0, MR(3*i))
  519.  
  520. LLW.C0 = LLWStand * CA(MR(4*i), 0, MR(-3*i))
  521.  
  522. neck.C0 = necko * CA(MR(7*i), 0, MR(-6*i))
  523.  
  524. if selected == false or torso.Velocity.magnitude > 4 or Able == false then break end
  525.  
  526. wait()
  527.  
  528. end
  529.  
  530. wait()
  531.  
  532. for i = 1, 0, -0.013 do
  533.  
  534. RAW.C0 = RAWStand * CA(0, MR(-7*i), MR(12*i))
  535.  
  536. LAW.C0 = LAWStand * CA(0, MR(-5*i), MR(7*i)) * CN(0, -0.2*i, 0)
  537.  
  538. RLW.C0 = RLWStand * CA(MR(-4*i), 0, MR(3*i))
  539.  
  540. LLW.C0 = LLWStand * CA(MR(4*i), 0, MR(-3*i))
  541.  
  542. neck.C0 = necko * CA(MR(7*i), 0, MR(-6*i))
  543.  
  544. if selected == false or torso.Velocity.magnitude > 4 or Able == false then break end
  545.  
  546. wait()
  547.  
  548. end
  549.  
  550. normal()
  551.  
  552. end
  553.  
  554.  
  555.  
  556. function runanim()
  557.  
  558. RLW.Part1 = nil
  559.  
  560. LLW.Part1 = nil
  561.  
  562. end
  563.  
  564.  
  565.  
  566. coroutine.resume(coroutine.create(function()
  567.  
  568. while true do
  569.  
  570. wait()
  571.  
  572. if selected and Able == true then
  573.  
  574. if torso.Velocity.magnitude < 0.1 then
  575.  
  576. idleanim()
  577.  
  578. else
  579.  
  580. runanim()
  581.  
  582. end
  583.  
  584. wait()
  585.  
  586. end
  587.  
  588. end
  589.  
  590. end))
  591.  
  592.  
  593.  
  594. function selectanim()
  595.  
  596. RAW.Part1 = Rarm
  597.  
  598. LLW.Part1 = Lleg
  599.  
  600. RLW.Part1 = Rleg
  601.  
  602. for i = 0, 1, 0.2 do
  603.  
  604. RAW.C0 = CA(MR(185*i), MR(70*i), 0)
  605.  
  606. LLW.C0 = CA(MR(2*i), 0, MR(-5*i))
  607.  
  608. RLW.C0 = CA(MR(-2*i), 0, MR(5*i))
  609.  
  610. neck.C0 = necko * CA(0, 0, MR(-40*i))
  611.  
  612. wait()
  613.  
  614. end
  615.  
  616. TH.Part1 = nil
  617.  
  618. HW.Part1 = handle
  619.  
  620. HW.C0 = CA(MR(40), 0, MR(-20))
  621.  
  622. for i = 0, 1, 0.08 do
  623.  
  624. RAW.C0 = CA(MR(185-110*i), MR(70-60*i), MR(30*i))
  625.  
  626. LLW.C0 = CA(MR(2-8*i), 0, MR(-5-10*i))
  627.  
  628. RLW.C0 = CA(MR(-2+8*i), 0, MR(5+10*i))
  629.  
  630. neck.C0 = necko * CA(MR(-15*i), 0, MR(-40+35*i))
  631.  
  632. HW.C0 = CA(MR(40-80*i), 0, MR(-20+20*i))
  633.  
  634. wait()
  635.  
  636. end
  637.  
  638. LAW.Part1 = Larm
  639.  
  640. for i = 0, 1, 0.1 do
  641.  
  642. RAW.C0 = CA(MR(185-110+15*i), MR(70-60-10*i), MR(30-65*i)) * CN(0, -0.8*i, 0)
  643.  
  644. LAW.C0 = CA(MR(90*i), 0, MR(35*i)) * CN(0.1*i, -0.1*i, 0) * CN(0, -0.8*i, 0)
  645.  
  646. LLW.C0 = CA(MR(-6), 0, MR(-5-10+10*i))
  647.  
  648. RLW.C0 = CA(MR(6), 0, MR(5+10-10*i))
  649.  
  650. neck.C0 = necko * CA(MR(-15+15*i), 0, MR(-5+5*i))
  651.  
  652. HW.C0 = CA(MR(-40+40*i), 0, MR(35*i)) * CN(0, 0, 1.6*i)
  653.  
  654. wait()
  655.  
  656. end
  657.  
  658. selected = true
  659.  
  660. end
  661.  
  662.  
  663.  
  664. function deselanim()
  665.  
  666. selected = false
  667.  
  668. for i = 1, 0, -0.1 do
  669.  
  670. RAW.C0 = CA(MR(185-110+15*i), MR(70-60-10*i), MR(30-65*i)) * CN(0, -0.8*i, 0)
  671.  
  672. LAW.C0 = CA(MR(90*i), 0, MR(35*i)) * CN(0.1*i, -0.1*i, 0) * CN(0, -0.8*i, 0)
  673.  
  674. LLW.C0 = CA(MR(-6), 0, MR(-5-10+10*i))
  675.  
  676. RLW.C0 = CA(MR(6), 0, MR(5+10-10*i))
  677.  
  678. neck.C0 = necko * CA(MR(-15+15*i), 0, MR(-5+5*i))
  679.  
  680. HW.C0 = CA(MR(-40+40*i), 0, 0) * CN(0, 0, 1.6*i)
  681.  
  682. wait()
  683.  
  684. end
  685.  
  686. LAW.Part1 = nil
  687.  
  688. for i = 1, 0, -0.08 do
  689.  
  690. RAW.C0 = CA(MR(185-110*i), MR(70-60*i), MR(30*i))
  691.  
  692. LLW.C0 = CA(MR(2-8*i), 0, MR(-5-10*i))
  693.  
  694. RLW.C0 = CA(MR(-2+8*i), 0, MR(5+10*i))
  695.  
  696. neck.C0 = necko * CA(MR(-15*i), 0, MR(-40+35*i))
  697.  
  698. HW.C0 = CA(MR(40-70*i), 0, MR(-20+20*i))
  699.  
  700. wait()
  701.  
  702. end
  703.  
  704. TH.Part1 = handle
  705.  
  706. HW.Part1 = nil
  707.  
  708. HW.C0 = CA(MR(40), 0, MR(-20))
  709.  
  710. for i = 1, 0, -0.2 do
  711.  
  712. RAW.C0 = CA(MR(185*i), MR(70*i), 0)
  713.  
  714. LLW.C0 = CA(MR(2*i), 0, MR(-5*i))
  715.  
  716. RLW.C0 = CA(MR(-2*i), 0, MR(5*i))
  717.  
  718. neck.C0 = necko * CA(0, 0, MR(-40*i))
  719.  
  720. wait()
  721.  
  722. end
  723.  
  724. detach(true)
  725.  
  726. end
  727.  
  728.  
  729.  
  730. function slash(mp)
  731.  
  732. attach()
  733.  
  734. local Orig = torso.CFrame
  735.  
  736. local bg = Add.BG(torso)
  737.  
  738. local bp = Add.BP(torso)
  739.  
  740. bp.position = Orig.p
  741.  
  742. local CF = ComputePos(Orig.p, mp)
  743.  
  744. bg.cframe = CF
  745.  
  746. for i = 0, 1, 0.05 do
  747.  
  748. RAW.C0 = RAWStand * CA(MR(-80*i), 0, MR(20*i)) * CN(0, 0.2*i, 0.8*i)
  749.  
  750. LAW.C0 = LAWStand * CA(MR(-50*i), 0, MR(40*i)) * CN(0, -0.8*i, 0)
  751.  
  752. HW.C0 = HWStand * CA(0, 0, 0) * CN(0, 0, 0.4*i)
  753.  
  754. neck.C0 = necko * CA(MR(20*i), 0, MR(-40*i))
  755.  
  756. wait()
  757.  
  758. end
  759.  
  760. for i = 0, 1, 0.1 do
  761.  
  762. RAW.C0 = RAWStand * CA(MR(-80-4*i), 0, MR(20+2*i)) * CN(0, 0.2-0.1*i, 0.8-0.1*i)
  763.  
  764. LAW.C0 = LAWStand * CA(MR(-50-3*i), 0, MR(40-2*i)) * CN(0, -0.8-0.1*i, 0)
  765.  
  766. HW.C0 = HWStand * CA(0, 0, MR(-35*i)) * CN(0, 0, 0.4)
  767.  
  768. neck.C0 = necko * CA(MR(20+2*i), 0, MR(-40))
  769.  
  770. wait()
  771.  
  772. end
  773.  
  774. wait(1)
  775.  
  776. for i = 0, 1, 0.03 do
  777.  
  778. RAW.C0 = RAWStand * CA(MR(-84+64*i), 0, MR(22)) * CN(0, 0.1, 0.7)
  779.  
  780. LAW.C0 = LAWStand * CA(MR(-53), 0, MR(38)) * CN(0, -0.9, 0)
  781.  
  782. HW.C0 = HWStand * CA(MR(-45*i), MR(15*i), MR(-35)) * CN(-1.5*i, 0, 0.4-2.4*i)
  783.  
  784. neck.C0 = necko * CA(MR(22), 0, MR(-40))
  785.  
  786. wait()
  787.  
  788. end
  789.  
  790. normal()
  791.  
  792. bg:remove()
  793.  
  794. bp:remove()
  795.  
  796. end
  797.  
  798.  
  799.  
  800. function select(mouse)
  801.  
  802. selectanim()
  803.  
  804. mouse.Button1Down:connect(function()
  805.  
  806. if Able then
  807.  
  808. Able = false
  809.  
  810. slash(mouse.Hit.p)
  811.  
  812. Able = true
  813.  
  814. end
  815.  
  816. end)
  817.  
  818. end
  819.  
  820.  
  821.  
  822. function deselect(mouse)
  823.  
  824. deselanim()
  825.  
  826. end
  827.  
  828.  
  829.  
  830. bin.Selected:connect(select)
  831.  
  832. bin.Deselected:connect(deselect)
  833.  
  834. --lego
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement