Advertisement
robobot

Untitled

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