Advertisement
EverFrappe

Untitled

Jul 13th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 90.09 KB | None | 0 0
  1. --The Acid Gun
  2. --Hey it's spark!
  3. --Credits unknown also.
  4.  
  5. Player = game:GetService("Players").LocalPlayer
  6.  
  7. Character = Player.Character
  8.  
  9. PlayerGui = Player.PlayerGui
  10.  
  11. Backpack = Player.Backpack
  12.  
  13. Torso = Character.Torso
  14.  
  15. Head = Character.Head
  16.  
  17. LeftArm = Character["Left Arm"]
  18.  
  19. LeftLeg = Character["Left Leg"]
  20.  
  21. RightArm = Character["Right Arm"]
  22.  
  23. RightLeg = Character["Right Leg"]
  24.  
  25. LS = Torso["Left Shoulder"]
  26.  
  27. LH = Torso["Left Hip"]
  28.  
  29. RS = Torso["Right Shoulder"]
  30.  
  31. RH = Torso["Right Hip"]
  32.  
  33. ModelName = "Weapon"
  34.  
  35. attack = false
  36.  
  37. attacktype = 1
  38.  
  39. Hitdeb = 0
  40.  
  41. Neck = Torso.Neck
  42.  
  43. local neckcf0 = Neck.C0
  44.  
  45.  
  46.  
  47.  
  48. ----------------------------
  49.  
  50. --Customize
  51.  
  52. Ammo = 99999999999999999
  53.  
  54. MaxAmmo = 99999999999999999
  55.  
  56. mindamage = 10
  57.  
  58. maxdamage = 30
  59.  
  60. crtmaxdamage = 50
  61.  
  62. reloadspeed=1
  63.  
  64. attackspeed=1
  65.  
  66. GunzerkDuration=1000
  67.  
  68. twobullets=false
  69.  
  70. omindamage = mindamage
  71.  
  72. omaxdamage = maxdamage
  73.  
  74. ocrtmaxdamage = crtmaxdamage
  75.  
  76. crtrate = 100/5
  77.  
  78. --100%/critpercentage
  79.  
  80.  
  81.  
  82.  
  83. oblkbrkr = 1
  84.  
  85. blockbreaker = oblkbrkr
  86.  
  87. spread = 1
  88.  
  89. spread = spread*100
  90.  
  91. Ammoregen = 5
  92.  
  93. range = 400
  94.  
  95. rangepower = 50
  96.  
  97. CurrentAmmo = "Normal"
  98.  
  99. attackdebounce = false
  100.  
  101. poisoncounter=0
  102.  
  103. Gunzerkering=false
  104.  
  105. firingdebounce1=false
  106.  
  107. firingdebounce2=false
  108.  
  109. handlecolor = BrickColor.new("Navy blue")
  110.  
  111. bcolor = BrickColor.new("White")
  112.  
  113. gemcolor = BrickColor.new("Black")
  114.  
  115. ammotrail = BrickColor.new("White")
  116.  
  117. ToolName = "Ras Algethi"
  118.  
  119.  
  120.  
  121.  
  122. ---------------------------------------------------------------------------------------------------------------------------------------
  123.  
  124. if Character:findFirstChild("EquippedVal",true) ~= nil then
  125.  
  126. Character:findFirstChild("EquippedVal",true).Parent = nil
  127.  
  128. end
  129.  
  130. ev = Instance.new("BoolValue",Character)
  131.  
  132. ev.Name = "EquippedVal"
  133.  
  134. ev.Value = false
  135.  
  136. if Character:findFirstChild("Block",true) ~= nil then
  137.  
  138. Character:findFirstChild("Block",true).Parent = nil
  139.  
  140. end
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148. --player
  149.  
  150. player = nil
  151.  
  152. --welds
  153.  
  154. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  155.  
  156. --what anim
  157.  
  158. anim = "none"
  159.  
  160. --other var
  161.  
  162. player = Player
  163.  
  164. ch = Character
  165.  
  166. --save shoulders
  167.  
  168. AoETrue = {}
  169.  
  170. RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178. function RWFunc()
  179.  
  180. RW.Part1 = ch["Right Arm"]
  181.  
  182. RSH.Part1 = nil
  183.  
  184. end
  185.  
  186. function LWFunc()
  187.  
  188. LW.Part1 = ch["Left Arm"]
  189.  
  190. LSH.Part1 = nil
  191.  
  192. end
  193.  
  194. function RWLFunc()
  195.  
  196. RWL.Part1 = ch["Right Leg"]
  197.  
  198. RHL.Part1 = nil
  199.  
  200. ch["Right Leg"].Name = "RightLeg"
  201.  
  202. RightLeg.CanCollide = false
  203.  
  204. end
  205.  
  206.  
  207.  
  208.  
  209. function LWLFunc()
  210.  
  211. LWL.Part1 = ch["Left Leg"]
  212.  
  213. LHL.Part1 = nil
  214.  
  215. ch["Left Leg"].Name = "LeftLeg"
  216.  
  217. LeftLeg.CanCollide = true
  218.  
  219. end
  220.  
  221.  
  222.  
  223.  
  224. function RWLRem()
  225.  
  226. RightLeg.Name = "Right Leg"
  227.  
  228. RWL.Part1 = nil
  229.  
  230. RHL.Part1 = ch["Right Leg"]
  231.  
  232. RightLeg.CanCollide = false
  233.  
  234. end
  235.  
  236. function LWLRem()
  237.  
  238. LeftLeg.Name = "Left Leg"
  239.  
  240. LWL.Part1 = nil
  241.  
  242. LHL.Part1 = ch["Left Leg"]
  243.  
  244. LeftLeg.CanCollide = false
  245.  
  246. end
  247.  
  248. function RWRem()
  249.  
  250. RW.Part1 = nil
  251.  
  252. RSH.Part1 = ch["Right Arm"]
  253.  
  254. end
  255.  
  256. function LWRem()
  257.  
  258. LW.Part1 = nil
  259.  
  260. LSH.Part1 = ch["Left Arm"]
  261.  
  262. end
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276. if Character:findFirstChild(ModelName,true) ~= nil then
  277.  
  278. Character:findFirstChild(ModelName,true).Parent = nil
  279.  
  280. RHL.Part1 = ch["Right Leg"]
  281.  
  282. LHL.Part1 = ch["Left Leg"]
  283.  
  284. RSH.Part1 = ch["Right Arm"]
  285.  
  286. LSH.Part1 = ch["Left Arm"]
  287.  
  288. end
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308. local swordholder = Instance.new("Model")
  309.  
  310. swordholder.Name = ModelName
  311.  
  312. swordholder.Parent = Character
  313.  
  314.  
  315.  
  316.  
  317. --derp
  318.  
  319. RW.Part0 = ch.Torso
  320.  
  321. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  322.  
  323. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  324.  
  325. RW.Parent = swordholder
  326.  
  327. --
  328.  
  329. LW.Part0 = ch.Torso
  330.  
  331. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  332.  
  333. LW.C1 = CFrame.new(0, 0.5, 0)
  334.  
  335. LW.Parent = swordholder
  336.  
  337. --
  338.  
  339. RWL.Part0 = ch.Torso
  340.  
  341. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
  342.  
  343. RWL.C1 = CFrame.new(0.5, 1, 0)
  344.  
  345. RWL.Parent = swordholder
  346.  
  347. --
  348.  
  349. LWL.Part0 = ch.Torso
  350.  
  351. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
  352.  
  353. LWL.C1 = CFrame.new(-0.5, 1, 0)
  354.  
  355. LWL.Parent = swordholder
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369. local msh1 = Instance.new("CylinderMesh")
  370.  
  371. msh1.Scale = Vector3.new(1,1,1)
  372.  
  373. local msh2 = Instance.new("BlockMesh")
  374.  
  375. msh2.Scale = Vector3.new(1,1,1)
  376.  
  377. local msh3 = Instance.new("CylinderMesh")
  378.  
  379. msh3.Scale = Vector3.new(1,1,1)
  380.  
  381. local msh4 = Instance.new("CylinderMesh")
  382.  
  383. msh4.Scale = Vector3.new(1,1,1)
  384.  
  385. local msh5 = Instance.new("CylinderMesh")
  386.  
  387. msh5.Scale = Vector3.new(1,1,1)
  388.  
  389. local msh6 = Instance.new("BlockMesh")
  390.  
  391. msh6.Scale = Vector3.new(1,1,1)
  392.  
  393. local torsc = false
  394.  
  395. for i,z in pairs(Character:GetChildren()) do
  396.  
  397. if z.className == "CharacterMesh" then
  398.  
  399. if z.BodyPart == Enum.BodyPart.Torso then
  400.  
  401. torsc = true
  402.  
  403. end
  404.  
  405. end
  406.  
  407. end
  408.  
  409. if torsc then
  410.  
  411. msh7 = Instance.new("SpecialMesh")
  412.  
  413. msh7.MeshId = "http://www.roblox.com/asset/?id=3270017"
  414.  
  415. msh7.Scale = Vector3.new(2.01,1,1.01)
  416.  
  417. else
  418.  
  419. msh7 = Instance.new("BlockMesh")
  420.  
  421. msh7.Scale = Vector3.new(2.01,0.1,1.01)
  422.  
  423. end
  424.  
  425. local msh8 = Instance.new("SpecialMesh")
  426.  
  427. msh8.MeshId = "http://www.roblox.com/asset/?id=3270017"
  428.  
  429. msh8.Scale = Vector3.new(0.5,0.5,7)
  430.  
  431. local msh9 = Instance.new("BlockMesh")
  432.  
  433. msh9.Scale = Vector3.new(1,1,1)
  434.  
  435.  
  436.  
  437.  
  438. local prt1 = Instance.new("Part")
  439.  
  440. prt1.formFactor = 3
  441.  
  442. prt1.CanCollide = true
  443.  
  444. prt1.Name = "Handle"
  445.  
  446. prt1.Locked = true
  447.  
  448. prt1.Size = Vector3.new(0.3,1,0.3)
  449.  
  450. prt1.Parent = swordholder
  451.  
  452. msh1.Parent = prt1
  453.  
  454. prt1.BrickColor = handlecolor
  455.  
  456. local prt2 = Instance.new("Part")
  457.  
  458. prt2.formFactor = 3
  459.  
  460. prt2.CanCollide = true
  461.  
  462. prt2.Name = "Handle2"
  463.  
  464. prt2.Locked = true
  465.  
  466. prt2.Size = Vector3.new(0.5,0.2,1.5)
  467.  
  468. prt2.Parent = swordholder
  469.  
  470. msh2.Parent = prt2
  471.  
  472. prt2.BrickColor = handlecolor
  473.  
  474. local prt3 = Instance.new("Part")
  475.  
  476. prt3.formFactor = 3
  477.  
  478. prt3.CanCollide = false
  479.  
  480. prt3.Name = "Handle3"
  481.  
  482. prt3.Locked = true
  483.  
  484. prt3.Size = Vector3.new(0.7,1.2,0.7)
  485.  
  486. prt3.Parent = swordholder
  487.  
  488. msh3.Parent = prt3
  489.  
  490. prt3.BrickColor = bcolor
  491.  
  492. local prt4 = Instance.new("Part")
  493.  
  494. prt4.formFactor = 3
  495.  
  496. prt4.CanCollide = true
  497.  
  498. prt4.Name = "BackBarrel"
  499.  
  500. prt4.Locked = true
  501.  
  502. prt4.Size = Vector3.new(0.5,1.2,0.5)
  503.  
  504. prt4.Parent = swordholder
  505.  
  506. msh4.Parent = prt4
  507.  
  508. prt4.BrickColor = handlecolor
  509.  
  510. local prt5 = Instance.new("Part")
  511.  
  512. prt5.formFactor = 3
  513.  
  514. prt5.CanCollide = true
  515.  
  516. prt5.Name = "Barrel"
  517.  
  518. prt5.Locked = true
  519.  
  520. prt5.Size = Vector3.new(0.4,2.5,0.4)
  521.  
  522. prt5.Parent = swordholder
  523.  
  524. msh5.Parent = prt5
  525.  
  526. prt5.BrickColor = handlecolor
  527.  
  528. local prt6 = Instance.new("Part")
  529.  
  530. prt6.formFactor = 3
  531.  
  532. prt6.CanCollide = false
  533.  
  534. prt6.Name = "BarrelHandle"
  535.  
  536. prt6.Locked = true
  537.  
  538. prt6.Size = Vector3.new(0.3,1,0.3)
  539.  
  540. prt6.Parent = swordholder
  541.  
  542. msh6.Parent = prt6
  543.  
  544. prt6.BrickColor = handlecolor
  545.  
  546. local prt7 = Instance.new("Part")
  547.  
  548. prt7.formFactor = 3
  549.  
  550. prt7.CanCollide = false
  551.  
  552. prt7.Name = "HolsterStrap"
  553.  
  554. prt7.Locked = true
  555.  
  556. prt7.Size = Vector3.new(1,1,1)
  557.  
  558. prt7.Parent = swordholder
  559.  
  560. msh7.Parent = prt7
  561.  
  562. prt7.BrickColor = handlecolor
  563.  
  564. local prt8 = Instance.new("Part")
  565.  
  566. prt8.formFactor = 3
  567.  
  568. prt8.CanCollide = false
  569.  
  570. prt8.Name = "Holster"
  571.  
  572. prt8.Locked = true
  573.  
  574. prt8.Size = Vector3.new(1,1,1)
  575.  
  576. prt8.Parent = swordholder
  577.  
  578. msh8.Parent = prt8
  579.  
  580. prt8.BrickColor = handlecolor
  581.  
  582. local prt9 = Instance.new("Part")
  583.  
  584. prt9.formFactor = 3
  585.  
  586. prt9.CanCollide = false
  587.  
  588. prt9.Name = "AmmoHolster"
  589.  
  590. prt9.Locked = true
  591.  
  592. prt9.Size = Vector3.new(0.2,1,0.7)
  593.  
  594. prt9.Parent = swordholder
  595.  
  596. msh9.Parent = prt9
  597.  
  598. prt9.BrickColor = handlecolor
  599.  
  600.  
  601.  
  602.  
  603. local w1 = Instance.new("Weld")
  604.  
  605. w1.Parent = prt1
  606.  
  607. w1.Part0 = prt1
  608.  
  609. w1.Name = "Weld1"
  610.  
  611. local w2 = Instance.new("Weld")
  612.  
  613. w2.Parent = prt2
  614.  
  615. w2.Part0 = prt2
  616.  
  617. w2.Part1 = prt1
  618.  
  619. w2.Name = "Weld2"
  620.  
  621. w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  622.  
  623. w2.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0.6,0.5)
  624.  
  625. local w3 = Instance.new("Weld")
  626.  
  627. w3.Parent = prt3
  628.  
  629. w3.Part0 = prt3
  630.  
  631. w3.Part1 = prt2
  632.  
  633. w3.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  634.  
  635. w3.C0 = CFrame.Angles(math.rad(90+45), 0, 0) * CFrame.new(0, 0.25,-0.5)
  636.  
  637. local w4 = Instance.new("Weld")
  638.  
  639. w4.Parent = prt4
  640.  
  641. w4.Part0 = prt4
  642.  
  643. w4.Part1 = prt2
  644.  
  645. w4.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  646.  
  647. w4.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,0.5)
  648.  
  649. local w5 = Instance.new("Weld")
  650.  
  651. w5.Parent = prt5
  652.  
  653. w5.Part0 = prt5
  654.  
  655. w5.Part1 = prt3
  656.  
  657. w5.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  658.  
  659. w5.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 1.5,0)
  660.  
  661. local w6 = Instance.new("Weld")
  662.  
  663. w6.Parent = prt6
  664.  
  665. w6.Part0 = prt6
  666.  
  667. w6.Part1 = prt3
  668.  
  669. w6.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  670.  
  671. w6.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 1.5,-0.5)
  672.  
  673. local w7 = Instance.new("Weld")
  674.  
  675. w7.Parent = prt7
  676.  
  677. w7.Part0 = prt7
  678.  
  679. w7.Part1 = Torso
  680.  
  681. w7.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  682.  
  683. if torsc then
  684.  
  685. w7.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 1,0)
  686.  
  687. else
  688.  
  689. w7.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(0, 1,0)
  690.  
  691. end
  692.  
  693. local w8 = Instance.new("Weld")
  694.  
  695. w8.Parent = prt8
  696.  
  697. w8.Part0 = prt8
  698.  
  699. w8.Part1 = Torso
  700.  
  701. w8.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  702.  
  703. w8.C0 = CFrame.Angles(math.rad(45), 0, 0) * CFrame.new(-1.1, 1-0.25,0)
  704.  
  705. local w9 = Instance.new("Weld")
  706.  
  707. w9.Parent = prt9
  708.  
  709. w9.Part0 = prt9
  710.  
  711. w9.Part1 = Torso
  712.  
  713. w9.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  714.  
  715. w9.C0 = CFrame.Angles(math.rad(45), 0, 0) * CFrame.new(1, 0.75,-0.5)
  716.  
  717.  
  718.  
  719.  
  720. newgun=swordholder:Clone()
  721.  
  722. newgun.Name="WeaponClone"
  723.  
  724. newprt1=newgun.Handle
  725.  
  726. newprt2=newgun.Handle2
  727.  
  728. newprt3=newgun.Handle3
  729.  
  730. newprt4=newgun.BackBarrel
  731.  
  732. newprt5=newgun.Barrel
  733.  
  734. newprt6=newgun.BarrelHandle
  735.  
  736. newgun.HolsterStrap:Remove()
  737.  
  738. newgun.Holster:Remove()
  739.  
  740. newgun.AmmoHolster:Remove()
  741.  
  742. newgun:BreakJoints()
  743.  
  744.  
  745.  
  746.  
  747. local neww1 = Instance.new("Weld")
  748.  
  749. neww1.Parent = newprt1
  750.  
  751. neww1.Part0 = newprt1
  752.  
  753. local neww2 = Instance.new("Weld")
  754.  
  755. neww2.Parent = newprt2
  756.  
  757. neww2.Part0 = newprt2
  758.  
  759. neww2.Part1 = newprt1
  760.  
  761. neww2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  762.  
  763. neww2.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0.6,0.5)
  764.  
  765. local neww3 = Instance.new("Weld")
  766.  
  767. neww3.Parent = newprt3
  768.  
  769. neww3.Part0 = newprt3
  770.  
  771. neww3.Part1 = newprt2
  772.  
  773. neww3.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  774.  
  775. neww3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  776.  
  777. local neww4 = Instance.new("Weld")
  778.  
  779. neww4.Parent = newprt4
  780.  
  781. neww4.Part0 = newprt4
  782.  
  783. neww4.Part1 = newprt2
  784.  
  785. neww4.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  786.  
  787. neww4.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,0.5)
  788.  
  789. local neww5 = Instance.new("Weld")
  790.  
  791. neww5.Parent = newprt5
  792.  
  793. neww5.Part0 = newprt5
  794.  
  795. neww5.Part1 = newprt3
  796.  
  797. neww5.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  798.  
  799. neww5.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 1.5,0)
  800.  
  801. local neww6 = Instance.new("Weld")
  802.  
  803. neww6.Parent = newprt6
  804.  
  805. neww6.Part0 = newprt6
  806.  
  807. neww6.Part1 = newprt3
  808.  
  809. neww6.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  810.  
  811. neww6.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 1.5,-0.5)
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819. local RAP = Instance.new("Part")
  820.  
  821. RAP.formFactor = 0
  822.  
  823. RAP.CanCollide = false
  824.  
  825. RAP.Name = "RAPart"
  826.  
  827. RAP.Locked = true
  828.  
  829. RAP.Size = Vector3.new(1,1,1)
  830.  
  831. RAP.Parent = swordholder
  832.  
  833. RAP.Transparency = 1
  834.  
  835. local w = Instance.new("Weld")
  836.  
  837. w.Parent = RAP
  838.  
  839. w.Part0 = RAP
  840.  
  841. w.Part1 = RightArm
  842.  
  843. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  844.  
  845. w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0)
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853. function unequipweld()
  854.  
  855. w1.Part1 = Torso
  856.  
  857. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), math.rad(0)) * CFrame.new(0, 0,0)
  858.  
  859. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180),math.rad(-0), math.rad(0)) * CFrame.new(-1.15, 1, -0.6)
  860.  
  861. end
  862.  
  863.  
  864.  
  865.  
  866. unequipweld()
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877. function equipweld()
  878.  
  879. w1.Part0 = prt1
  880.  
  881. w1.Part1 = RAP
  882.  
  883. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  884.  
  885. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  886.  
  887. end
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895. function ss(parent,p) --Slash
  896.  
  897.  
  898.  
  899.  
  900. local SlashSound = Instance.new("Sound")
  901.  
  902. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  903.  
  904. SlashSound.Parent = parent
  905.  
  906. SlashSound.Volume = .7
  907.  
  908. SlashSound.Pitch = p
  909.  
  910. SlashSound.PlayOnRemove = true
  911.  
  912. coroutine.resume(coroutine.create(function()
  913.  
  914. wait()
  915.  
  916. SlashSound.Parent = nil
  917.  
  918. end))
  919.  
  920. end
  921.  
  922. function uss(parent,p) --unsheath
  923.  
  924.  
  925.  
  926.  
  927. local SlashSound = Instance.new("Sound")
  928.  
  929. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  930.  
  931. SlashSound.Parent = parent
  932.  
  933. SlashSound.Volume = .7
  934.  
  935. SlashSound.Pitch = p
  936.  
  937. SlashSound.PlayOnRemove = true
  938.  
  939. coroutine.resume(coroutine.create(function()
  940.  
  941. wait()
  942.  
  943. SlashSound.Parent = nil
  944.  
  945. end))
  946.  
  947. end
  948.  
  949. function cs(parent,p) --Magic Charge
  950.  
  951.  
  952.  
  953.  
  954. local SlashSound = Instance.new("Sound")
  955.  
  956. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  957.  
  958. SlashSound.Parent = parent
  959.  
  960. SlashSound.Volume = .7
  961.  
  962. SlashSound.Pitch = p
  963.  
  964. SlashSound.PlayOnRemove = true
  965.  
  966. coroutine.resume(coroutine.create(function()
  967.  
  968. wait()
  969.  
  970. SlashSound.Parent = nil
  971.  
  972. end))
  973.  
  974. end
  975.  
  976. function ls(parent,p) --Lazer Sound
  977.  
  978.  
  979.  
  980.  
  981. local SlashSound = Instance.new("Sound")
  982.  
  983. SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158"
  984.  
  985. SlashSound.Parent = parent
  986.  
  987. SlashSound.Volume = .7
  988.  
  989. SlashSound.Pitch = p
  990.  
  991. SlashSound.PlayOnRemove = true
  992.  
  993. coroutine.resume(coroutine.create(function()
  994.  
  995. wait()
  996.  
  997. SlashSound.Parent = nil
  998.  
  999. end))
  1000.  
  1001. end
  1002.  
  1003. function ts(parent,p)
  1004.  
  1005.  
  1006.  
  1007.  
  1008. local SlashSound = Instance.new("Sound")
  1009.  
  1010. SlashSound.SoundId = "http://www.roblox.com/asset/?id=12222030"
  1011.  
  1012. SlashSound.Parent = parent
  1013.  
  1014. SlashSound.Volume = .7
  1015.  
  1016. SlashSound.Pitch = p
  1017.  
  1018. SlashSound.PlayOnRemove = true
  1019.  
  1020. coroutine.resume(coroutine.create(function()
  1021.  
  1022. wait()
  1023.  
  1024. SlashSound.Parent = nil
  1025.  
  1026. end))
  1027.  
  1028. end
  1029.  
  1030. function fs(parent,p) --Fire Sound
  1031.  
  1032.  
  1033.  
  1034.  
  1035. local SlashSound = Instance.new("Sound")
  1036.  
  1037. SlashSound.SoundId = "http://www.roblox.com/asset/?id=31758982"
  1038.  
  1039. SlashSound.Parent = parent
  1040.  
  1041. SlashSound.Volume = .7
  1042.  
  1043. SlashSound.Pitch = p
  1044.  
  1045. SlashSound.PlayOnRemove = true
  1046.  
  1047. coroutine.resume(coroutine.create(function()
  1048.  
  1049. wait()
  1050.  
  1051. SlashSound.Parent = nil
  1052.  
  1053. end))
  1054.  
  1055. end
  1056.  
  1057. function ms(parent,p) --Metal Cling Sound
  1058.  
  1059.  
  1060.  
  1061.  
  1062. local SlashSound = Instance.new("Sound")
  1063.  
  1064. SlashSound.SoundId = "rbxasset://sounds\\metal.ogg"
  1065.  
  1066. SlashSound.Parent = parent
  1067.  
  1068. SlashSound.Volume = 5
  1069.  
  1070. SlashSound.Pitch = p
  1071.  
  1072. SlashSound.PlayOnRemove = true
  1073.  
  1074. coroutine.resume(coroutine.create(function()
  1075.  
  1076. wait()
  1077.  
  1078. SlashSound.Parent = nil
  1079.  
  1080. end))
  1081.  
  1082. end
  1083.  
  1084. function bs(parent,p) --Berserk Sound
  1085.  
  1086.  
  1087.  
  1088.  
  1089. local SlashSound = Instance.new("Sound")
  1090.  
  1091. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2676305"
  1092.  
  1093. SlashSound.Parent = parent
  1094.  
  1095. SlashSound.Volume = 1
  1096.  
  1097. SlashSound.Pitch = p
  1098.  
  1099. SlashSound.PlayOnRemove = true
  1100.  
  1101. coroutine.resume(coroutine.create(function()
  1102.  
  1103. wait()
  1104.  
  1105. SlashSound.Parent = nil
  1106.  
  1107. end))
  1108.  
  1109. end
  1110.  
  1111. function hs(parent,p) --Ammo Hit Sound
  1112.  
  1113. ms(parent,p)
  1114.  
  1115. end
  1116.  
  1117. function as(parent,p) --Gun Shoot Sound
  1118.  
  1119.  
  1120.  
  1121.  
  1122. local SlashSound = Instance.new("Sound")
  1123.  
  1124. SlashSound.SoundId = "http://roblox.com/asset/?id=10209257"
  1125.  
  1126. SlashSound.Parent = parent
  1127.  
  1128. SlashSound.Volume = 0.5
  1129.  
  1130. SlashSound.Pitch = p
  1131.  
  1132. SlashSound.PlayOnRemove = true
  1133.  
  1134. coroutine.resume(coroutine.create(function()
  1135.  
  1136. wait()
  1137.  
  1138. SlashSound.Parent = nil
  1139.  
  1140. end))
  1141.  
  1142. end
  1143.  
  1144. function ars(parent,p) --Gun Reload Sound
  1145.  
  1146.  
  1147.  
  1148.  
  1149. local SlashSound = Instance.new("Sound")
  1150.  
  1151. SlashSound.SoundId = "http://roblox.com/asset/?id=10209869"
  1152.  
  1153. SlashSound.Parent = parent
  1154.  
  1155. SlashSound.Volume = 1
  1156.  
  1157. SlashSound.Pitch = p
  1158.  
  1159. SlashSound.PlayOnRemove = true
  1160.  
  1161. coroutine.resume(coroutine.create(function()
  1162.  
  1163. wait()
  1164.  
  1165. SlashSound.Parent = nil
  1166.  
  1167. end))
  1168.  
  1169. end
  1170.  
  1171. --
  1172.  
  1173. --
  1174.  
  1175.  
  1176.  
  1177.  
  1178. function returndmg()
  1179.  
  1180. mindamage = omindamage
  1181.  
  1182. maxdamage = omaxdamage
  1183.  
  1184. crtmaxdamage = ocrtmaxdamage
  1185.  
  1186. end
  1187.  
  1188.  
  1189.  
  1190.  
  1191. function subdmg(sub)
  1192.  
  1193. mindamage = omindamage - sub
  1194.  
  1195. maxdamage = omaxdamage - sub
  1196.  
  1197. crtmaxdamage = ocrtmaxdamage - sub
  1198.  
  1199. end
  1200.  
  1201.  
  1202.  
  1203.  
  1204. function prcntdmg(sub)
  1205.  
  1206. mindamage = math.floor(omindamage - (omindamage*(sub/100)))
  1207.  
  1208. maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100)))
  1209.  
  1210. crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100)))
  1211.  
  1212. end
  1213.  
  1214.  
  1215.  
  1216.  
  1217. function tagHumanoid(humanoid, player)
  1218.  
  1219. local creator_tag = Instance.new("ObjectValue")
  1220.  
  1221. creator_tag.Value = player
  1222.  
  1223. creator_tag.Name = "creator"
  1224.  
  1225. creator_tag.Parent = humanoid
  1226.  
  1227. end
  1228.  
  1229.  
  1230.  
  1231.  
  1232. function untagHumanoid(humanoid)
  1233.  
  1234. if humanoid ~= nil then
  1235.  
  1236. local tag = humanoid:findFirstChild("creator")
  1237.  
  1238. if tag ~= nil then
  1239.  
  1240. tag.Parent = nil
  1241.  
  1242. end
  1243.  
  1244. end
  1245.  
  1246. end
  1247.  
  1248.  
  1249.  
  1250.  
  1251. local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1252.  
  1253. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1254.  
  1255. end
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266. function hideanim()
  1267.  
  1268. attack = true
  1269.  
  1270. ars(Head,0.85)
  1271.  
  1272. for i = 0.25 ,1 ,0.25 do
  1273.  
  1274. wait()
  1275.  
  1276. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1277.  
  1278. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-15*i), 0, 0)
  1279.  
  1280. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(25+10*i))
  1281.  
  1282. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1283.  
  1284. w3.C0 = CFrame.Angles(math.rad(90+25*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1285.  
  1286. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5*i),0,math.rad(0))
  1287.  
  1288. end
  1289.  
  1290. for i = 0.1 ,1 ,0.1 do
  1291.  
  1292. wait()
  1293.  
  1294. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1295.  
  1296. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(10-10*i), 0, 0)
  1297.  
  1298. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(35+10*i))
  1299.  
  1300. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1301.  
  1302. w3.C0 = CFrame.Angles(math.rad(115+20*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1303.  
  1304. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5-5*i),0,math.rad(0))
  1305.  
  1306. end
  1307.  
  1308. for i = 0.1 ,1 ,0.1 do
  1309.  
  1310. wait()
  1311.  
  1312. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90-130*i),math.rad(0),math.rad(-60+60*i))
  1313.  
  1314. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1315.  
  1316. LW.C0 = CFrame.new(-1.5, 0.5, -0.5+0.25*i) * CFrame.Angles(math.rad(40-20*i),math.rad(0),math.rad(45-22.5*i))
  1317.  
  1318. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1319.  
  1320. w3.C0 = CFrame.Angles(math.rad(135), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1321.  
  1322. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10+40*i),0,math.rad(-30*i))
  1323.  
  1324. end
  1325.  
  1326. unequipweld()
  1327.  
  1328. for i = 0.1 ,1 ,0.1 do
  1329.  
  1330. wait()
  1331.  
  1332. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+20*i),math.rad(0),math.rad(0))
  1333.  
  1334. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1335.  
  1336. LW.C0 = CFrame.new(-1.5, 0.5, -0.25+0.25*i) * CFrame.Angles(math.rad(20-20*i),math.rad(0),math.rad(22.5-22.5*i))
  1337.  
  1338. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1339.  
  1340. w3.C0 = CFrame.Angles(math.rad(135), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1341.  
  1342. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(30-30*i),0,math.rad(-30+30*i))
  1343.  
  1344. end
  1345.  
  1346. Neck.C0 = neckcf0
  1347.  
  1348. RWRem()
  1349.  
  1350. LWRem()
  1351.  
  1352. attack = false
  1353.  
  1354. end
  1355.  
  1356.  
  1357.  
  1358.  
  1359.  
  1360.  
  1361.  
  1362. function equipanim()
  1363.  
  1364. attack = true
  1365.  
  1366. RWFunc()
  1367.  
  1368. w3.C0 = CFrame.Angles(math.rad(135), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1369.  
  1370. for i = 0.1 ,1 ,0.1 do
  1371.  
  1372. wait()
  1373.  
  1374. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20*i),math.rad(0),math.rad(0))
  1375.  
  1376. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1377.  
  1378. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1379.  
  1380. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1381.  
  1382. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(30*i),0,math.rad(-30*i))
  1383.  
  1384. end
  1385.  
  1386. equipweld()
  1387.  
  1388. ars(Head,1)
  1389.  
  1390. for i = 0.1 ,1 ,0.1 do
  1391.  
  1392. wait()
  1393.  
  1394. RW.C0 = CFrame.new(1.5, 0.5, -0.25*i) * CFrame.Angles(math.rad(-20+130*i),math.rad(0),math.rad(0))
  1395.  
  1396. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1397.  
  1398. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1399.  
  1400. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1401.  
  1402. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(30-35*i),0,math.rad(-30))
  1403.  
  1404. end
  1405.  
  1406. LWFunc()
  1407.  
  1408. for i = 0.1 ,1 ,0.1 do
  1409.  
  1410. wait()
  1411.  
  1412. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(110-20*i),math.rad(0),math.rad(-60*i))
  1413.  
  1414. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25*i), 0, 0)
  1415.  
  1416. LW.C0 = CFrame.new(-1.5, 0.5, -0.5*i) * CFrame.Angles(math.rad(40*i),math.rad(0),math.rad(25*i))
  1417.  
  1418. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1419.  
  1420. w3.C0 = CFrame.Angles(math.rad(135-45*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1421.  
  1422. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+5*i),0,math.rad(-30+30*i))
  1423.  
  1424. end
  1425.  
  1426. Neck.C0 = neckcf0
  1427.  
  1428. attack = false
  1429.  
  1430. end
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438. function faketors()
  1439.  
  1440. local T = Instance.new("Part")
  1441.  
  1442. T.formFactor = 0
  1443.  
  1444. T.CanCollide = false
  1445.  
  1446. T.Name = "FakeTorso"
  1447.  
  1448. T.Locked = true
  1449.  
  1450. T.Size = Torso.Size
  1451.  
  1452. T.Parent = swordholder
  1453.  
  1454. T.Transparency = 1
  1455.  
  1456. T.BrickColor = Torso.BrickColor
  1457.  
  1458. for i,z in pairs(Character:GetChildren()) do
  1459.  
  1460. if z.className == "CharacterMesh" then
  1461.  
  1462. if z.BodyPart == Enum.BodyPart.Torso then
  1463.  
  1464. local SM = Instance.new("SpecialMesh",T)
  1465.  
  1466. SM.MeshId = "http://www.roblox.com/asset/?id=" .. z.MeshId
  1467.  
  1468. if z.BaseTextureId ~= 0 then
  1469.  
  1470. SM.TextureId = z.BaseTextureId
  1471.  
  1472. elseif z.OverlayTextureId ~= 0 then
  1473.  
  1474. SM.TextureId = z.OverlayTextureId
  1475.  
  1476. else
  1477.  
  1478. SM.TextureId = ""
  1479.  
  1480. end
  1481.  
  1482. end
  1483.  
  1484. end
  1485.  
  1486. end
  1487.  
  1488. local wt = Instance.new("Weld")
  1489.  
  1490. wt.Parent = T
  1491.  
  1492. wt.Part0 = T
  1493.  
  1494. wt.Part1 = Torso
  1495.  
  1496. RW.Part0 = T
  1497.  
  1498. LW.Part0 = T
  1499.  
  1500. T.Transparency = 0
  1501.  
  1502. Torso.Transparency = 1
  1503.  
  1504. RHL.Part0 = T
  1505.  
  1506. LHL.Part0 = T
  1507.  
  1508. return wt,T
  1509.  
  1510. end
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518. if (script.Parent.className ~= "HopperBin") then
  1519.  
  1520. Tool = Instance.new("HopperBin")
  1521.  
  1522. Tool.Parent = Backpack
  1523.  
  1524. Tool.Name = ToolName
  1525.  
  1526. script.Parent = Tool
  1527.  
  1528. end
  1529.  
  1530. Bin = script.Parent
  1531.  
  1532.  
  1533.  
  1534.  
  1535. function damagesplat(dmg,hit,crit,blocked)
  1536.  
  1537. local mo = Instance.new("Model")
  1538.  
  1539. mo.Name = dmg
  1540.  
  1541. local pa = Instance.new("Part",mo)
  1542.  
  1543. pa.formFactor = 3
  1544.  
  1545. pa.Size = Vector3.new(0.8,0.3,0.8)
  1546.  
  1547. if crit then
  1548.  
  1549. pa.BrickColor = BrickColor.new("Bright yellow")
  1550.  
  1551. elseif not crit then
  1552.  
  1553. pa.BrickColor = BrickColor.new("Bright red")
  1554.  
  1555. end
  1556.  
  1557. if blocked then pa.BrickColor = BrickColor.new("Bright blue") end
  1558.  
  1559. pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0)
  1560.  
  1561. pa.Name = "Head"
  1562.  
  1563. local hah = Instance.new("Humanoid")
  1564.  
  1565. hah.Parent = mo
  1566.  
  1567. hah.MaxHealth = 0
  1568.  
  1569. hah.Health = 0
  1570.  
  1571. local bp = Instance.new("BodyPosition")
  1572.  
  1573. bp.P = 14000
  1574.  
  1575. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1576.  
  1577. bp.position = hit.Position + Vector3.new(0, 5, 0)
  1578.  
  1579. coroutine.resume(coroutine.create(function()
  1580.  
  1581. wait()
  1582.  
  1583. mo.Parent = workspace
  1584.  
  1585. bp.Parent = pa
  1586.  
  1587. wait(1.4)
  1588.  
  1589. mo:remove()
  1590.  
  1591. end))
  1592.  
  1593. return pa
  1594.  
  1595. end
  1596.  
  1597.  
  1598.  
  1599.  
  1600. function damage(hum,dmg,critornot)
  1601.  
  1602. local pa = damagesplat(dmg,hum.Torso,critornot)
  1603.  
  1604. hum:TakeDamage(dmg)
  1605.  
  1606. coroutine.resume(coroutine.create(function()
  1607.  
  1608. tagHumanoid(hum,Player)
  1609.  
  1610. wait(1)
  1611.  
  1612. untagHumanoid(hum)
  1613.  
  1614. end))
  1615.  
  1616. return pa
  1617.  
  1618. end
  1619.  
  1620.  
  1621.  
  1622.  
  1623. function AddAmmo(add)
  1624.  
  1625. Ammo = Ammo + add
  1626.  
  1627. if Ammo > MaxAmmo then
  1628.  
  1629. Ammo = MaxAmmo
  1630.  
  1631. end
  1632.  
  1633. end
  1634.  
  1635.  
  1636.  
  1637.  
  1638. function ADmg(humm,hit,pos)
  1639.  
  1640. if CurrentAmmo == "Normal" then
  1641.  
  1642. if humm.Parent:findFirstChild("Block") ~= nil then
  1643.  
  1644. if humm.Parent.Block.Value then
  1645.  
  1646. damagesplat(0,humm.Torso,false,true)
  1647.  
  1648. return
  1649.  
  1650. end
  1651.  
  1652. end
  1653.  
  1654. prcntdmg(-25)
  1655.  
  1656. if critrandomizer ~= 1 then
  1657.  
  1658. local rndmdamage = math.random(mindamage,maxdamage)
  1659.  
  1660. damage(humm,rndmdamage,false)
  1661.  
  1662. elseif critrandomizer == 1 then
  1663.  
  1664. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1665.  
  1666. damage(humm,rndmdamage,true)
  1667.  
  1668. end
  1669.  
  1670.  
  1671.  
  1672.  
  1673. elseif CurrentAmmo == "Poison" then
  1674.  
  1675.  
  1676.  
  1677.  
  1678. if humm.Parent:findFirstChild("Block") ~= nil then
  1679.  
  1680. if humm.Parent.Block.Value then
  1681.  
  1682. damagesplat(0,humm.Torso,false,true)
  1683.  
  1684. return
  1685.  
  1686. end
  1687.  
  1688. end
  1689.  
  1690. prcntdmg(15)
  1691.  
  1692. if critrandomizer ~= 1 then
  1693.  
  1694. local rndmdamage = math.random(mindamage,maxdamage)
  1695.  
  1696. damage(humm,rndmdamage,false)
  1697.  
  1698. elseif critrandomizer == 1 then
  1699.  
  1700. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1701.  
  1702. damage(humm,rndmdamage,true)
  1703.  
  1704. end
  1705.  
  1706. if poisoncounter==1 then
  1707.  
  1708. local poisoncount = math.random(2,10)
  1709.  
  1710. coroutine.resume(coroutine.create(function()
  1711.  
  1712. repeat
  1713.  
  1714. wait(1.5)
  1715.  
  1716. poisoncount = poisoncount - 1
  1717.  
  1718. local rndmdamage = math.floor(math.random(1,5)/2)
  1719.  
  1720. local pa = damage(humm,rndmdamage,false)
  1721.  
  1722. pa.BrickColor = BrickColor.new("Alder")
  1723.  
  1724. until poisoncount <= 0
  1725.  
  1726. end))
  1727.  
  1728. end
  1729.  
  1730. elseif CurrentAmmo == "Explosion" then
  1731.  
  1732.  
  1733.  
  1734.  
  1735. if humm.Parent:findFirstChild("Block") ~= nil then
  1736.  
  1737. if humm.Parent.Block.Value then
  1738.  
  1739. damagesplat(0,humm.Torso,false,true)
  1740.  
  1741. return
  1742.  
  1743. end
  1744.  
  1745. end
  1746.  
  1747. prcntdmg(0)
  1748.  
  1749. if critrandomizer ~= 1 then
  1750.  
  1751. local rndmdamage = math.random(mindamage,maxdamage)
  1752.  
  1753. damage(humm,rndmdamage,false)
  1754.  
  1755. elseif critrandomizer == 1 then
  1756.  
  1757. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1758.  
  1759. damage(humm,rndmdamage,true)
  1760.  
  1761. end
  1762.  
  1763. elseif CurrentAmmo == "Herpity" then
  1764.  
  1765.  
  1766.  
  1767.  
  1768. if humm.Parent:findFirstChild("Block") ~= nil then
  1769.  
  1770. if humm.Parent.Block.Value then
  1771.  
  1772. damagesplat(0,humm.Torso,false,true)
  1773.  
  1774. return
  1775.  
  1776. end
  1777.  
  1778. end
  1779.  
  1780. prcntdmg(0)
  1781.  
  1782. if critrandomizer ~= 1 then
  1783.  
  1784. local rndmdamage = math.random(mindamage,maxdamage)
  1785.  
  1786. damage(humm,rndmdamage,false)
  1787.  
  1788. elseif critrandomizer == 1 then
  1789.  
  1790. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1791.  
  1792. damage(humm,rndmdamage,true)
  1793.  
  1794. end
  1795.  
  1796. if humm.Parent:findFirstChild("Torso")~=nil then
  1797.  
  1798. humm.Parent.Torso.RotVelocity=Vector3.new(math.random(-50000,50000),math.random(-50000,50000),math.random(-50000,50000))
  1799.  
  1800. r=it("BodyAngularVelocity")
  1801.  
  1802. r.P=3000
  1803.  
  1804. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1805.  
  1806. r.angularvelocity=vt(math.random(-500,500),math.random(-500,500),math.random(-500,500))
  1807.  
  1808. r.Parent=humm.Parent.Torso
  1809.  
  1810. coroutine.resume(coroutine.create(function()
  1811.  
  1812. for i=1,5000000000000 do
  1813.  
  1814. wait()
  1815.  
  1816. r.angularvelocity=vt(math.random(-500,500),math.random(-500,500),math.random(-500,500))
  1817.  
  1818. end
  1819.  
  1820. r.Parent=nil
  1821.  
  1822. end))
  1823.  
  1824. end
  1825.  
  1826. elseif CurrentAmmo == "Bees" then
  1827.  
  1828.  
  1829.  
  1830.  
  1831. if humm.Parent:findFirstChild("Block") ~= nil then
  1832.  
  1833. if humm.Parent.Block.Value then
  1834.  
  1835. damagesplat(0,humm.Torso,false,true)
  1836.  
  1837. return
  1838.  
  1839. end
  1840.  
  1841. end
  1842.  
  1843. prcntdmg(0)
  1844.  
  1845. if critrandomizer ~= 1 then
  1846.  
  1847. local rndmdamage = math.random(mindamage,maxdamage)
  1848.  
  1849. damage(humm,rndmdamage,false)
  1850.  
  1851. elseif critrandomizer == 1 then
  1852.  
  1853. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1854.  
  1855. damage(humm,rndmdamage,true)
  1856.  
  1857. end
  1858.  
  1859. if humm.Parent:findFirstChild("Torso")~=nil then
  1860.  
  1861. humm.Parent.Torso.RotVelocity=Vector3.new(math.random(-360,360),math.random(-360,360),math.random(-360,360))
  1862.  
  1863. coroutine.resume(coroutine.create(function()
  1864.  
  1865. victim=humm.Parent
  1866.  
  1867. d=true
  1868.  
  1869. for i=1, 40 do
  1870.  
  1871. m=Instance.new("Model")
  1872.  
  1873. m.Name="BEE"
  1874.  
  1875. p=Instance.new("Part")
  1876.  
  1877. p.CanCollide=false
  1878.  
  1879. p.Name="Head"
  1880.  
  1881. p.Parent=m
  1882.  
  1883. mz=Instance.new("SpecialMesh")
  1884.  
  1885. mz.Scale=Vector3.new(.225,.25,.225)
  1886.  
  1887. p.BrickColor=BrickColor.new("Bright yellow")
  1888.  
  1889. p.Size=Vector3.new(1,1,1)
  1890.  
  1891. p.CFrame=victim.Torso.CFrame+Vector3.new(math.random(-10,10),50,math.random(-10,10))
  1892.  
  1893. mz.Parent=p
  1894.  
  1895. m.Parent=workspace
  1896.  
  1897. b=Instance.new("BodyPosition")
  1898.  
  1899. b.P=8000
  1900.  
  1901. b.D=200
  1902.  
  1903. b.maxForce=Vector3.new(5000,5000,5000)*50000000
  1904.  
  1905. b.position=p.Position
  1906.  
  1907. b.Parent=p
  1908.  
  1909. coroutine.resume(coroutine.create(function(f)
  1910.  
  1911. while f.Parent~=nil do
  1912.  
  1913. f.BodyPosition.position=f.Position:Lerp(victim.Torso.Position+Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*2,.75)
  1914.  
  1915. wait(.1)
  1916.  
  1917. end
  1918.  
  1919. end),p)
  1920.  
  1921. m.Parent=victim
  1922.  
  1923. p.Touched:connect(function(hit)
  1924.  
  1925. if hit.Parent~=nil then
  1926.  
  1927. if hit.Parent==victim then
  1928.  
  1929. if d==true then
  1930.  
  1931. d=false
  1932.  
  1933. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-15
  1934.  
  1935. hit.Parent.Torso.Velocity=Vector3.new(math.random(-5,5)/5,math.random(-5,5),math.random(-5,5)/5)
  1936.  
  1937. hit.Parent.Torso.CFrame=hit.Parent.Torso.CFrame*CFrame.new(0,1,0)*CFrame.fromEulerAnglesXYZ(math.random(-20,20)/20,math.random(-20,20)/30,.01)
  1938.  
  1939. hit.Parent.Humanoid.Jump=true
  1940.  
  1941. wait(math.random(10,20)/5)
  1942.  
  1943. d=true
  1944.  
  1945. end
  1946.  
  1947. end
  1948.  
  1949. end
  1950.  
  1951. end)
  1952.  
  1953. wait()
  1954.  
  1955. end
  1956.  
  1957. end))
  1958.  
  1959. end
  1960.  
  1961. elseif CurrentAmmo == "derp" then
  1962.  
  1963.  
  1964.  
  1965.  
  1966. if humm.Parent:findFirstChild("Block") ~= nil then
  1967.  
  1968. if humm.Parent.Block.Value then
  1969.  
  1970. damagesplat(0,humm.Torso,false,true)
  1971.  
  1972. return
  1973.  
  1974. end
  1975.  
  1976. end
  1977.  
  1978. prcntdmg(0)
  1979.  
  1980. if critrandomizer ~= 1 then
  1981.  
  1982. local rndmdamage = math.random(mindamage,maxdamage)
  1983.  
  1984. damage(humm,rndmdamage,false)
  1985.  
  1986. elseif critrandomizer == 1 then
  1987.  
  1988. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1989.  
  1990. damage(humm,rndmdamage,true)
  1991.  
  1992. end
  1993.  
  1994. if humm.Parent:findFirstChild("Torso")~=nil then
  1995.  
  1996. coroutine.resume(coroutine.create(function()
  1997.  
  1998. Headt=humm.Parent.Torso.Neck
  1999.  
  2000. LeftArmt=humm.Parent.Torso["Left Shoulder"]
  2001.  
  2002. RightArmt=humm.Parent.Torso["Right Shoulder"]
  2003.  
  2004. LeftLegt=humm.Parent.Torso["Left Hip"]
  2005.  
  2006. RightLegt=humm.Parent.Torso["Right Hip"]
  2007.  
  2008. derptable={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"}
  2009.  
  2010. pootisss=""..tostring(derptable[math.random(1,25)])..""..tostring(derptable[math.random(1,25)])..""..tostring(derptable[math.random(1,25)])..""..tostring(derptable[math.random(1,25)])..""..tostring(derptable[math.random(1,25)])..""..tostring(derptable[math.random(1,25)])..""..tostring(derptable[math.random(1,25)])..""..tostring(derptable[math.random(1,25)])..""..tostring(derptable[math.random(1,25)])..""
  2011.  
  2012. coroutine.resume(coroutine.create(function()
  2013.  
  2014. while true do
  2015.  
  2016. wait()
  2017.  
  2018. Headt.C0=Headt.C0*CFrame.fromEulerAnglesXYZ(0,0,0.5)
  2019.  
  2020. LeftArmt.C0=LeftArmt.C0*CFrame.fromEulerAnglesXYZ(0,0,0.5)
  2021.  
  2022. RightArmt.C0=RightArmt.C0*CFrame.fromEulerAnglesXYZ(0,0,0.5)
  2023.  
  2024. LeftLegt.C0=LeftLegt.C0*CFrame.fromEulerAnglesXYZ(0,0,0.5)
  2025.  
  2026. RightLegt.C0=RightLegt.C0*CFrame.fromEulerAnglesXYZ(0,0,0.5)
  2027.  
  2028. humm.Parent.Humanoid.PlatformStand=true
  2029.  
  2030. humm.Parent.Torso.RotVelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  2031.  
  2032. pootisss=""..tostring(derptable[math.random(1,25)])..""..tostring(derptable[math.random(1,25)])..""..tostring(derptable[math.random(1,25)])..""..tostring(derptable[math.random(1,25)])..""..tostring(derptable[math.random(1,25)])..""..tostring(derptable[math.random(1,25)])..""..tostring(derptable[math.random(1,25)])..""..tostring(derptable[math.random(1,25)])..""..tostring(derptable[math.random(1,25)])..""
  2033.  
  2034. game:GetService("Chat"):Chat(humm.Parent,pootisss,1)
  2035.  
  2036. end
  2037.  
  2038. end))
  2039.  
  2040. end))
  2041.  
  2042. end
  2043.  
  2044. elseif CurrentAmmo == "Troll" then
  2045.  
  2046.  
  2047.  
  2048.  
  2049. if humm.Parent:findFirstChild("Block") ~= nil then
  2050.  
  2051. if humm.Parent.Block.Value then
  2052.  
  2053. damagesplat(0,humm.Torso,false,true)
  2054.  
  2055. return
  2056.  
  2057. end
  2058.  
  2059. end
  2060.  
  2061. prcntdmg(0)
  2062.  
  2063. if critrandomizer ~= 1 then
  2064.  
  2065. local rndmdamage = math.random(mindamage,maxdamage)
  2066.  
  2067. damage(humm,rndmdamage,false)
  2068.  
  2069. elseif critrandomizer == 1 then
  2070.  
  2071. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  2072.  
  2073. damage(humm,rndmdamage,true)
  2074.  
  2075. end
  2076.  
  2077. if humm.Parent:findFirstChild("Torso")~=nil then
  2078.  
  2079. coroutine.resume(coroutine.create(function()
  2080.  
  2081. c=humm.Parent:children()
  2082.  
  2083. for i=1,#c do
  2084.  
  2085. m=Instance.new("BlockMesh")
  2086.  
  2087. m.Parent=c[i]
  2088.  
  2089. m.Scale=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2090.  
  2091. coroutine.resume(coroutine.create(function(mesh)
  2092.  
  2093. while true do
  2094.  
  2095. wait()
  2096.  
  2097. mesh.Scale=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2098.  
  2099. end
  2100.  
  2101. end),m)
  2102.  
  2103. end
  2104.  
  2105. end))
  2106.  
  2107. end
  2108.  
  2109. elseif CurrentAmmo == "suparKnockback" then
  2110.  
  2111. if humm.Parent:findFirstChild("Block") ~= nil then
  2112.  
  2113. if humm.Parent.Block.Value then
  2114.  
  2115. damagesplat(0,humm.Torso,false,true)
  2116.  
  2117. return
  2118.  
  2119. end
  2120.  
  2121. end
  2122.  
  2123. prcntdmg(25)
  2124.  
  2125. if critrandomizer ~= 1 then
  2126.  
  2127. local rndmdamage = math.random(mindamage,maxdamage)
  2128.  
  2129. damage(humm,rndmdamage,false)
  2130.  
  2131. elseif critrandomizer == 1 then
  2132.  
  2133. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  2134.  
  2135. damage(humm,rndmdamage,true)
  2136.  
  2137. end
  2138.  
  2139. local vel = Instance.new("BodyVelocity",humm.Torso)
  2140.  
  2141. vel.maxForce = Vector3.new(1,1,1) * math.huge
  2142.  
  2143. vel.P = vel.P * 5
  2144.  
  2145. vel.velocity = Vector3.new(0,1,0) + CFrame.new(Torso.Position,humm.Torso.Position).lookVector * 1000
  2146.  
  2147. coroutine.resume(coroutine.create(function()
  2148.  
  2149. wait() wait() wait() wait()
  2150.  
  2151. vel.Parent=nil
  2152.  
  2153. end))
  2154.  
  2155. elseif CurrentAmmo == "Knockback" then
  2156.  
  2157. if humm.Parent:findFirstChild("Block") ~= nil then
  2158.  
  2159. if humm.Parent.Block.Value then
  2160.  
  2161. damagesplat(0,humm.Torso,false,true)
  2162.  
  2163. return
  2164.  
  2165. end
  2166.  
  2167. end
  2168.  
  2169. prcntdmg(0)
  2170.  
  2171. if critrandomizer ~= 1 then
  2172.  
  2173. local rndmdamage = math.random(mindamage,maxdamage)
  2174.  
  2175. damage(humm,rndmdamage,false)
  2176.  
  2177. elseif critrandomizer == 1 then
  2178.  
  2179. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  2180.  
  2181. damage(humm,rndmdamage,true)
  2182.  
  2183. end
  2184.  
  2185. local vel = Instance.new("BodyVelocity",humm.Torso)
  2186.  
  2187. vel.maxForce = Vector3.new(1,1,1) * math.huge
  2188.  
  2189. vel.P = vel.P * 5
  2190.  
  2191. vel.velocity = Vector3.new(0,1,0) + CFrame.new(Torso.Position,humm.Torso.Position).lookVector * 10
  2192.  
  2193. coroutine.resume(coroutine.create(function()
  2194.  
  2195. wait() wait() wait() wait()
  2196.  
  2197. vel.Parent=nil
  2198.  
  2199. end))
  2200.  
  2201. returndmg()
  2202.  
  2203. end
  2204.  
  2205. end
  2206.  
  2207.  
  2208.  
  2209.  
  2210. function OT(hit) --Normal Damage
  2211.  
  2212. if Hitdeb == 1 then return end
  2213.  
  2214. if hit.Parent == nil then return end
  2215.  
  2216. local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
  2217.  
  2218. if hum.Health <= 0 then return end
  2219.  
  2220. if hit.Parent:findFirstChild("Block") ~= nil then
  2221.  
  2222. if hit.Parent.Block.Value then
  2223.  
  2224. damagesplat(0,hum.Torso,false,true)
  2225.  
  2226. Hitdeb = 1
  2227.  
  2228. if hit.Parent.Block:findFirstChild("BlockPower") ~= nil then
  2229.  
  2230. if hit.Parent.Block.BlockPower.Value <= 1 then
  2231.  
  2232. hit.Parent.Block.Value = false
  2233.  
  2234. elseif hit.Parent.Block.BlockPower.Value > 1 then
  2235.  
  2236. local critrandomizer = math.random(crtrate)
  2237.  
  2238. if critrandomizer ~= 1 then
  2239.  
  2240. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker
  2241.  
  2242. elseif critrandomizer == 1 then
  2243.  
  2244. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker + 2
  2245.  
  2246. end
  2247.  
  2248. end
  2249.  
  2250. end
  2251.  
  2252. return end end
  2253.  
  2254. local critrandomizer = math.random(crtrate)
  2255.  
  2256. if critrandomizer ~= 1 then
  2257.  
  2258. local rndmdamage = math.random(mindamage,maxdamage)
  2259.  
  2260. damage(hum,rndmdamage,false)
  2261.  
  2262. elseif critrandomizer == 1 then
  2263.  
  2264. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  2265.  
  2266. damage(hum,rndmdamage,true)
  2267.  
  2268. end
  2269.  
  2270. Hitdeb = 1
  2271.  
  2272. end
  2273.  
  2274. end
  2275.  
  2276.  
  2277.  
  2278.  
  2279.  
  2280.  
  2281.  
  2282. function AoE(p,magnitude)
  2283.  
  2284. local c = game.Workspace:GetChildren();
  2285.  
  2286. for i = 1, #c do
  2287.  
  2288. local hum = c[i]:findFirstChild("Humanoid")
  2289.  
  2290. if hum ~= nil and hum.Health ~= 0 then
  2291.  
  2292. local head = c[i]:findFirstChild("Head");
  2293.  
  2294. if head ~= nil then
  2295.  
  2296. local mag = (head.Position - p).magnitude;
  2297.  
  2298. if mag <= magnitude and c[i].Name ~= Character.Name then
  2299.  
  2300. local foundd = false
  2301.  
  2302. for ii = 1 , #AoETrue do
  2303.  
  2304. if AoETrue[ii] == c[i].Name then
  2305.  
  2306.  
  2307.  
  2308.  
  2309. foundd = true
  2310.  
  2311. end
  2312.  
  2313. end
  2314.  
  2315. if foundd then
  2316.  
  2317.  
  2318.  
  2319.  
  2320. end
  2321.  
  2322. --
  2323.  
  2324. if not foundd then
  2325.  
  2326. local critrandomizer = math.random(crtrate)
  2327.  
  2328. if critrandomizer ~= 1 then
  2329.  
  2330. local rndmdamage = math.random(mindamage,maxdamage)
  2331.  
  2332. damage(hum,rndmdamage,false)
  2333.  
  2334. elseif critrandomizer == 1 then
  2335.  
  2336. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  2337.  
  2338. damage(hum,rndmdamage,true)
  2339.  
  2340. end
  2341.  
  2342. table.insert(AoETrue,c[i].Name)
  2343.  
  2344. end
  2345.  
  2346. end
  2347.  
  2348. end
  2349.  
  2350. end
  2351.  
  2352. end
  2353.  
  2354. for ii = 1 , #AoETrue do
  2355.  
  2356. table.remove(AoETrue,#AoETrue)
  2357.  
  2358. end
  2359.  
  2360. end
  2361.  
  2362.  
  2363.  
  2364.  
  2365. --
  2366.  
  2367.  
  2368.  
  2369.  
  2370.  
  2371.  
  2372.  
  2373. --
  2374.  
  2375.  
  2376.  
  2377.  
  2378. function effect(Color,Ref,LP,P1)
  2379.  
  2380. local effectsmsh = Instance.new("BlockMesh")
  2381.  
  2382. effectsmsh.Scale = Vector3.new(1,1,1)
  2383.  
  2384. effectsmsh.Name = "Mesh"
  2385.  
  2386. local effectsg = Instance.new("Part")
  2387.  
  2388. effectsg.formFactor = 3
  2389.  
  2390. effectsg.CanCollide = false
  2391.  
  2392. effectsg.Name = "Eff"
  2393.  
  2394. effectsg.Locked = true
  2395.  
  2396. effectsg.Anchored = true
  2397.  
  2398. effectsg.Size = Vector3.new(0.2,1,0.2)
  2399.  
  2400. effectsg.Parent = swordholder
  2401.  
  2402. effectsmsh.Parent = effectsg
  2403.  
  2404. effectsg.BrickColor = BrickColor.new(Color)
  2405.  
  2406. effectsg.Reflectance = Ref
  2407.  
  2408. local point1 = P1
  2409.  
  2410. local mg = (LP.p - point1.p).magnitude
  2411.  
  2412. effectsg.Size = Vector3.new(0.2,mg,0.2)
  2413.  
  2414. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  2415.  
  2416. coroutine.resume(coroutine.create(function()
  2417.  
  2418. for i = 0 , 1 , 0.1 do
  2419.  
  2420. wait()
  2421.  
  2422. effectsg.Transparency = 1*i
  2423.  
  2424. effectsmsh.Scale = Vector3.new(1-1*i,1,1-1*i)
  2425.  
  2426. end
  2427.  
  2428. wait()
  2429.  
  2430. effectsg.Parent = nil
  2431.  
  2432. end))
  2433.  
  2434. end
  2435.  
  2436. --
  2437.  
  2438.  
  2439.  
  2440.  
  2441.  
  2442.  
  2443.  
  2444. con = nil
  2445.  
  2446.  
  2447.  
  2448.  
  2449.  
  2450.  
  2451.  
  2452. function dmgcnnct()
  2453.  
  2454. if con ~= nil then
  2455.  
  2456. con:disconnect()
  2457.  
  2458. Hitdeb = 0
  2459.  
  2460. end
  2461.  
  2462. con = prt11.Touched:connect(OT)
  2463.  
  2464. end
  2465.  
  2466.  
  2467.  
  2468.  
  2469. function dmgdc()
  2470.  
  2471. if con ~= nil then
  2472.  
  2473. con:disconnect()
  2474.  
  2475. Hitdeb = 0
  2476.  
  2477. end
  2478.  
  2479. end
  2480.  
  2481.  
  2482.  
  2483.  
  2484. function rptddmg(value,des,inc)
  2485.  
  2486. coroutine.resume(coroutine.create(function()
  2487.  
  2488. repeat
  2489.  
  2490. wait(inc)
  2491.  
  2492. Hitdeb = 0
  2493.  
  2494. until value == des
  2495.  
  2496. end))
  2497.  
  2498. end
  2499.  
  2500.  
  2501.  
  2502.  
  2503. function atktype(s,e)
  2504.  
  2505. coroutine.resume(coroutine.create(function ()
  2506.  
  2507. attacktype = e
  2508.  
  2509. wait(0.25)
  2510.  
  2511. attacktype = s
  2512.  
  2513. end))
  2514.  
  2515. end
  2516.  
  2517.  
  2518.  
  2519.  
  2520.  
  2521.  
  2522.  
  2523. function EVENMOARMAGIX2(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  2524.  
  2525. local msh1 = Instance.new("SpecialMesh")
  2526.  
  2527. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  2528.  
  2529. msh1.MeshType = "Sphere"
  2530.  
  2531. S=Instance.new("Part")
  2532.  
  2533. S.Name="Effect"
  2534.  
  2535. S.formFactor=0
  2536.  
  2537. S.Size=Vector3.new(x1,y1,z1)
  2538.  
  2539. S.BrickColor=color
  2540.  
  2541. S.Reflectance = 0
  2542.  
  2543. S.TopSurface=0
  2544.  
  2545. S.BottomSurface=0
  2546.  
  2547. S.Transparency=0
  2548.  
  2549. S.Anchored=true
  2550.  
  2551. S.CanCollide=false
  2552.  
  2553. S.CFrame=part
  2554.  
  2555. S.Parent=workspace
  2556.  
  2557. msh1.Parent = S
  2558.  
  2559. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 14 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(1,1,1) Part.Transparency=Part.Transparency+0.1 wait() end Part.Parent=nil end),S,S.CFrame)
  2560.  
  2561. end
  2562.  
  2563.  
  2564.  
  2565.  
  2566. function shoottrail(mouse)
  2567.  
  2568. local p1 = (prt5.CFrame * CFrame.new(0,-prt5.Size.y/2,0)).p
  2569.  
  2570. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread)) / 100) * (p1-mouse.Hit.p).magnitude/100
  2571.  
  2572. local dir = CFrame.new((p1+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  2573.  
  2574. local hit,pos = rayCast(p1,dir.lookVector,10,Character)
  2575.  
  2576. local rangepos = range
  2577.  
  2578. local function drawtrail(From,To)
  2579.  
  2580. local effectsmsh = Instance.new("CylinderMesh")
  2581.  
  2582. effectsmsh.Scale = Vector3.new(1,1,1)
  2583.  
  2584. effectsmsh.Name = "Mesh"
  2585.  
  2586. local effectsg = Instance.new("Part")
  2587.  
  2588. if poisoncounter==1 then
  2589.  
  2590. local derpsmoke=Instance.new("Smoke")
  2591.  
  2592. derpsmoke.Parent=effectsg
  2593.  
  2594. derpsmoke.Color=Color3.new(0,0,154)
  2595.  
  2596. --derpsmoke.Opacity=0.05
  2597.  
  2598. --derpsmoke.Size=0.5
  2599.  
  2600. end
  2601.  
  2602. effectsg.formFactor = 3
  2603.  
  2604. effectsg.CanCollide = false
  2605.  
  2606. effectsg.Name = "Eff"
  2607.  
  2608. effectsg.Locked = true
  2609.  
  2610. effectsg.Anchored = true
  2611.  
  2612. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  2613.  
  2614. effectsg.Parent = swordholder
  2615.  
  2616. effectsmsh.Parent = effectsg
  2617.  
  2618. effectsg.BrickColor = ammotrail
  2619.  
  2620. effectsg.Reflectance = 0.25
  2621.  
  2622. local LP = From
  2623.  
  2624. local point1 = To
  2625.  
  2626. local mg = (LP - point1).magnitude
  2627.  
  2628. effectsmsh.Scale = Vector3.new(1,mg*5,1)
  2629.  
  2630. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  2631.  
  2632. coroutine.resume(coroutine.create(function()
  2633.  
  2634. for i = 0 , 1 , 0.1 do
  2635.  
  2636. wait()
  2637.  
  2638. effectsg.Transparency = 1*i
  2639.  
  2640. effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i)
  2641.  
  2642. end
  2643.  
  2644. effectsg.Parent = nil
  2645.  
  2646. end))
  2647.  
  2648. end
  2649.  
  2650. local newpos = p1
  2651.  
  2652. local inc = rangepower
  2653.  
  2654. repeat
  2655.  
  2656. wait()
  2657.  
  2658. rangepos = rangepos - 10
  2659.  
  2660. dir = dir * CFrame.Angles(math.rad(-0.1),0,0)
  2661.  
  2662. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  2663.  
  2664. drawtrail(newpos,pos)
  2665.  
  2666. newpos = newpos + (dir.lookVector * inc)
  2667.  
  2668. if inc >= 20 then
  2669.  
  2670. inc = inc - 10
  2671.  
  2672. end
  2673.  
  2674. if hit ~= nil then
  2675.  
  2676. rangepos = 0
  2677.  
  2678. end
  2679.  
  2680. until rangepos <= 0
  2681.  
  2682. if CurrentAmmo=="Explosion" then
  2683.  
  2684. b=math.random(1,3)
  2685.  
  2686. if b==1 then
  2687.  
  2688. EVENMOARMAGIX2(CFrame.new(newpos),1,1,1,0,0,0,0,0,0,BrickColor.new("Bright red"))
  2689.  
  2690. local c = game.Workspace:GetChildren();
  2691.  
  2692. for i = 1, #c do
  2693.  
  2694. local hum = c[i]:findFirstChild("Humanoid")
  2695.  
  2696. if hum ~= nil and hum.Health ~= 0 then
  2697.  
  2698. local head = c[i]:findFirstChild("Head");
  2699.  
  2700. if head ~= nil then
  2701.  
  2702. local targ = head.Position - newpos;
  2703.  
  2704. local mag = targ.magnitude;
  2705.  
  2706. if mag <= 10 and c[i].Name ~= Player.Name then
  2707.  
  2708. attackdebounce=false
  2709.  
  2710. ADmg(hum,hit,pos)
  2711.  
  2712. end
  2713.  
  2714. end
  2715.  
  2716. end
  2717.  
  2718. end
  2719.  
  2720. end
  2721.  
  2722. end
  2723.  
  2724. if hit ~= nil then
  2725.  
  2726. hs(Head,1)
  2727.  
  2728. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  2729.  
  2730. hum = hit.Parent.Humanoid
  2731.  
  2732. attackdebounce=false
  2733.  
  2734. ADmg(hum,hit,pos)
  2735.  
  2736. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  2737.  
  2738. hum = hit.Parent.Parent.Humanoid
  2739.  
  2740. attackdebounce=false
  2741.  
  2742. ADmg(hum,hit,pos)
  2743.  
  2744. end
  2745.  
  2746. end
  2747.  
  2748. end
  2749.  
  2750.  
  2751.  
  2752.  
  2753. function shoottrail2(mouse)
  2754.  
  2755. local p1 = (newprt5.CFrame * CFrame.new(0,-newprt5.Size.y/2,0)).p
  2756.  
  2757. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread)) / 100) * (p1-mouse.Hit.p).magnitude/100
  2758.  
  2759. local dir = CFrame.new((p1+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  2760.  
  2761. local hit,pos = rayCast(p1,dir.lookVector,10,Character)
  2762.  
  2763. local rangepos = range
  2764.  
  2765. local function drawtrail(From,To)
  2766.  
  2767. local effectsmsh = Instance.new("CylinderMesh")
  2768.  
  2769. effectsmsh.Scale = Vector3.new(1,1,1)
  2770.  
  2771. effectsmsh.Name = "Mesh"
  2772.  
  2773. local effectsg = Instance.new("Part")
  2774.  
  2775. if poisoncounter==1 then
  2776.  
  2777. local derpsmoke=Instance.new("Smoke")
  2778.  
  2779. derpsmoke.Parent=effectsg
  2780.  
  2781. derpsmoke.Color=Color3.new(0,0,154)
  2782.  
  2783. --derpsmoke.Opacity=0.05
  2784.  
  2785. --derpsmoke.Size=0.5
  2786.  
  2787. end
  2788.  
  2789. effectsg.formFactor = 3
  2790.  
  2791. effectsg.CanCollide = false
  2792.  
  2793. effectsg.Name = "Eff"
  2794.  
  2795. effectsg.Locked = true
  2796.  
  2797. effectsg.Anchored = true
  2798.  
  2799. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  2800.  
  2801. effectsg.Parent = swordholder
  2802.  
  2803. effectsmsh.Parent = effectsg
  2804.  
  2805. effectsg.BrickColor = ammotrail
  2806.  
  2807. effectsg.Reflectance = 0.25
  2808.  
  2809. local LP = From
  2810.  
  2811. local point1 = To
  2812.  
  2813. local mg = (LP - point1).magnitude
  2814.  
  2815. effectsmsh.Scale = Vector3.new(1,mg*5,1)
  2816.  
  2817. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  2818.  
  2819. coroutine.resume(coroutine.create(function()
  2820.  
  2821. for i = 0 , 1 , 0.1 do
  2822.  
  2823. wait()
  2824.  
  2825. effectsg.Transparency = 1*i
  2826.  
  2827. effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i)
  2828.  
  2829. end
  2830.  
  2831. effectsg.Parent = nil
  2832.  
  2833. end))
  2834.  
  2835. end
  2836.  
  2837. local newpos = p1
  2838.  
  2839. local inc = rangepower
  2840.  
  2841. repeat
  2842.  
  2843. wait()
  2844.  
  2845. rangepos = rangepos - 10
  2846.  
  2847. dir = dir * CFrame.Angles(math.rad(-0.1),0,0)
  2848.  
  2849. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  2850.  
  2851. drawtrail(newpos,pos)
  2852.  
  2853. newpos = newpos + (dir.lookVector * inc)
  2854.  
  2855. if inc >= 20 then
  2856.  
  2857. inc = inc - 10
  2858.  
  2859. end
  2860.  
  2861. if hit ~= nil then
  2862.  
  2863. rangepos = 0
  2864.  
  2865. end
  2866.  
  2867. until rangepos <= 0
  2868.  
  2869. if CurrentAmmo=="Explosion" then
  2870.  
  2871. b=math.random(1,3)
  2872.  
  2873. if b==1 then
  2874.  
  2875. EVENMOARMAGIX2(CFrame.new(newpos),1,1,1,0,0,0,0,0,0,BrickColor.new("Bright red"))
  2876.  
  2877. local c = game.Workspace:GetChildren();
  2878.  
  2879. for i = 1, #c do
  2880.  
  2881. local hum = c[i]:findFirstChild("Humanoid")
  2882.  
  2883. if hum ~= nil and hum.Health ~= 0 then
  2884.  
  2885. local head = c[i]:findFirstChild("Head");
  2886.  
  2887. if head ~= nil then
  2888.  
  2889. local targ = head.Position - newpos;
  2890.  
  2891. local mag = targ.magnitude;
  2892.  
  2893. if mag <= 10 and c[i].Name ~= Player.Name then
  2894.  
  2895. attackdebounce=false
  2896.  
  2897. ADmg(hum,hit,pos)
  2898.  
  2899. end
  2900.  
  2901. end
  2902.  
  2903. end
  2904.  
  2905. end
  2906.  
  2907. end
  2908.  
  2909. end
  2910.  
  2911. if hit ~= nil then
  2912.  
  2913. hs(Head,1)
  2914.  
  2915. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  2916.  
  2917. hum = hit.Parent.Humanoid
  2918.  
  2919. attackdebounce=false
  2920.  
  2921. ADmg(hum,hit,pos)
  2922.  
  2923. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  2924.  
  2925. hum = hit.Parent.Parent.Humanoid
  2926.  
  2927. attackdebounce=false
  2928.  
  2929. ADmg(hum,hit,pos)
  2930.  
  2931. end
  2932.  
  2933. end
  2934.  
  2935. end
  2936.  
  2937.  
  2938.  
  2939.  
  2940. function Melee()
  2941.  
  2942. attack=true
  2943.  
  2944. local wt,t = faketors()
  2945.  
  2946. w7.Part1 = t
  2947.  
  2948. w8.Part1 = t
  2949.  
  2950. w9.Part1 = t
  2951.  
  2952. for i = 0 , 1 , 0.1 do
  2953.  
  2954. wait()
  2955.  
  2956. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  2957.  
  2958. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-15*i), 0, 0)
  2959.  
  2960. LW.C0 = CFrame.new(-1.5, 0.5, -0.5+0.25*i) * CFrame.Angles(math.rad(40+50*i),math.rad(0),math.rad(25))
  2961.  
  2962. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2963.  
  2964. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2965.  
  2966. w1.Part1=LeftArm
  2967.  
  2968. w1.C0 = CFrame.Angles(math.rad(-80), math.rad(-55+145*i), math.rad(90)) * CFrame.new(-1.3, 1, 0)
  2969.  
  2970. wt.C0 = CFrame.Angles(0, math.rad(100*i), 0)
  2971.  
  2972. end
  2973.  
  2974. con1=prt5.Touched:connect(function(hit)
  2975.  
  2976. hum=hit.Parent:FindFirstChild("Humanoid")
  2977.  
  2978. if hum~=nil then
  2979.  
  2980. if attackdebounce == false then
  2981.  
  2982. attackdebounce = true
  2983.  
  2984. coroutine.resume(coroutine.create(function()
  2985.  
  2986. wait(0.1)
  2987.  
  2988. attackdebounce = false
  2989.  
  2990. end))
  2991.  
  2992. ADmg(hum,hit,pos)
  2993.  
  2994. end
  2995.  
  2996. end
  2997.  
  2998. end)
  2999.  
  3000. con2=prt5.Touched:connect(function(hit)
  3001.  
  3002. hum=hit.Parent:FindFirstChild("Humanoid")
  3003.  
  3004. if hum~=nil then
  3005.  
  3006. if attackdebounce == false then
  3007.  
  3008. attackdebounce = true
  3009.  
  3010. coroutine.resume(coroutine.create(function()
  3011.  
  3012. wait(0.1)
  3013.  
  3014. attackdebounce = false
  3015.  
  3016. end))
  3017.  
  3018. ADmg(hum,hit,pos)
  3019.  
  3020. end
  3021.  
  3022. end
  3023.  
  3024. end)
  3025.  
  3026. for i = 0 , 1 , 0.15 do
  3027.  
  3028. wait()
  3029.  
  3030. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+160*i))
  3031.  
  3032. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-15), 0, 0)
  3033.  
  3034. LW.C0 = CFrame.new(-1.5, 0.5, -0.5+0.25) * CFrame.Angles(math.rad(40+50),math.rad(0),math.rad(25-50*i))
  3035.  
  3036. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3037.  
  3038. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3039.  
  3040. w1.Part1=LeftArm
  3041.  
  3042. w1.C0 = CFrame.Angles(math.rad(-80+80*i), math.rad(-55+145), math.rad(90)) * CFrame.new(-1.3+1*i, 1+1.5*i, 0)
  3043.  
  3044. wt.C0 = CFrame.Angles(0, math.rad(100-200*i), 0)
  3045.  
  3046. end
  3047.  
  3048. for i = 0 , 1 , 0.1 do
  3049.  
  3050. wait()
  3051.  
  3052. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+150))
  3053.  
  3054. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-15), 0, 0)
  3055.  
  3056. LW.C0 = CFrame.new(-1.5, 0.5, -0.5+0.25) * CFrame.Angles(math.rad(40+50),math.rad(0),math.rad(25-50-10*i))
  3057.  
  3058. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3059.  
  3060. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3061.  
  3062. w1.Part1=LeftArm
  3063.  
  3064. w1.C0 = CFrame.Angles(math.rad(-80+80), math.rad(-55+145), math.rad(90)) * CFrame.new(-1.3+1, 1+1.5, 0)
  3065.  
  3066. wt.C0 = CFrame.Angles(0, math.rad(100-200-10*i), 0)
  3067.  
  3068. end
  3069.  
  3070. con1:disconnect()
  3071.  
  3072. con2:disconnect()
  3073.  
  3074. for i = 0 , 1 , 0.1 do
  3075.  
  3076. wait()
  3077.  
  3078. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+150-150*i))
  3079.  
  3080. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-15+15*i), 0, 0)
  3081.  
  3082. LW.C0 = CFrame.new(-1.5, 0.5, -0.5+0.25-0.25*i) * CFrame.Angles(math.rad(40+50-50*i),math.rad(0),math.rad(25-50-10+60*i))
  3083.  
  3084. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3085.  
  3086. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3087.  
  3088. w1.Part1=LeftArm
  3089.  
  3090. w1.C0 = CFrame.Angles(math.rad(-80+80-80*i), math.rad(-55+145-145*i), math.rad(90)) * CFrame.new(-1.3+1-1*i, 1+1.5-1.5*i, 0)
  3091.  
  3092. wt.C0 = CFrame.Angles(0, math.rad(100-200-10+110*i), 0)
  3093.  
  3094. end
  3095.  
  3096. w1.Part1 = RAP
  3097.  
  3098. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  3099.  
  3100. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  3101.  
  3102. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(25))
  3103.  
  3104. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3105.  
  3106. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3107.  
  3108. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  3109.  
  3110. wt.C0 = CFrame.Angles(0, 0, 0)
  3111.  
  3112. w7.Part1 = Torso
  3113.  
  3114. w8.Part1 = Torso
  3115.  
  3116. w9.Part1 = Torso
  3117.  
  3118. RW.Part0 = Torso
  3119.  
  3120. LW.Part0 = Torso
  3121.  
  3122. Torso.Transparency = 0
  3123.  
  3124. RHL.Part0 = Torso
  3125.  
  3126. LHL.Part0 = Torso
  3127.  
  3128. t.Parent = nil
  3129.  
  3130. attack=false
  3131.  
  3132. end
  3133.  
  3134.  
  3135.  
  3136.  
  3137. function Ready(mouse)
  3138.  
  3139. if Ammo <= 0 then Reload() return end
  3140.  
  3141. attack = true
  3142.  
  3143. local wt,t = faketors()
  3144.  
  3145. w7.Part1 = t
  3146.  
  3147. w8.Part1 = t
  3148.  
  3149. w9.Part1 = t
  3150.  
  3151. Character.Humanoid.WalkSpeed = 5
  3152.  
  3153. for i = 0.2 , 1 , 0.2 do
  3154.  
  3155. wait(0)
  3156.  
  3157. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  3158.  
  3159. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-15*i), 0, 0)
  3160.  
  3161. LW.C0 = CFrame.new(-1.5, 0.5, -0.5+0.25*i) * CFrame.Angles(math.rad(40+35*i),math.rad(0),math.rad(25))
  3162.  
  3163. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3164.  
  3165. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3166.  
  3167. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  3168.  
  3169. wt.C0 = CFrame.Angles(0, math.rad(50*i), 0)
  3170.  
  3171. end
  3172.  
  3173. for i = 0.2 , 1 , 0.2 do
  3174.  
  3175. wait(0)
  3176.  
  3177. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  3178.  
  3179. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(10-10*i), 0, 0)
  3180.  
  3181. LW.C0 = CFrame.new(-1.5, 0.5, -0.25+0.25*i) * CFrame.Angles(math.rad(75+20*i),math.rad(0),math.rad(25))
  3182.  
  3183. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3184.  
  3185. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3186.  
  3187. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  3188.  
  3189. wt.C0 = CFrame.Angles(0, math.rad(50+10*i), 0)
  3190.  
  3191. end
  3192.  
  3193. wait() wait()
  3194.  
  3195. repeat
  3196.  
  3197. poisoncounter=math.random(1,5)
  3198.  
  3199. wait()
  3200.  
  3201. as(Head,1)
  3202.  
  3203. coroutine.resume(coroutine.create(function()
  3204.  
  3205. for z = 1 ,2 do
  3206.  
  3207. coroutine.resume(coroutine.create(function()
  3208.  
  3209. local meshb1 = Instance.new("BlockMesh")
  3210.  
  3211. meshb1.Scale = Vector3.new(1,1,1)
  3212.  
  3213. local shellb1 = Instance.new("Part")
  3214.  
  3215. meshb1.Parent = shellb1
  3216.  
  3217. shellb1.Anchored = true
  3218.  
  3219. shellb1.formFactor = 3
  3220.  
  3221. shellb1.Size = Vector3.new(0.3,0.3,0.3) * (math.random(100,300)/100)
  3222.  
  3223. shellb1.CFrame = CFrame.new((prt5.CFrame * CFrame.new(0,-prt5.Size.y/2,0)).p) * CFrame.Angles(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  3224.  
  3225. shellb1.Parent = Character
  3226.  
  3227. shellb1.Transparency = 0
  3228.  
  3229. if math.random(1,2) == 1 then
  3230.  
  3231. shellb1.BrickColor = BrickColor.new("Bright red")
  3232.  
  3233. else
  3234.  
  3235. shellb1.BrickColor = BrickColor.new("Bright orange")
  3236.  
  3237. end
  3238.  
  3239. shellb1.CanCollide = false
  3240.  
  3241. local incre = math.random(0,60)/100
  3242.  
  3243. for i = 0 , 1 , 0.1 do
  3244.  
  3245. wait()
  3246.  
  3247. shellb1.CFrame = shellb1.CFrame + Torso.CFrame.lookVector*incre
  3248.  
  3249. shellb1.Transparency = 1*i
  3250.  
  3251. meshb1.Scale = Vector3.new(1+1*i,1+1*i,1+1*i)
  3252.  
  3253. end
  3254.  
  3255. shellb1.Parent=nil
  3256.  
  3257. end))
  3258.  
  3259. end
  3260.  
  3261. coroutine.resume(coroutine.create(function()
  3262.  
  3263. shoottrail(mouse)
  3264.  
  3265. end))
  3266.  
  3267. if twobullets==true then
  3268.  
  3269. shoottrail(mouse)
  3270.  
  3271. end
  3272.  
  3273. end))
  3274.  
  3275. Ammo = Ammo - 1
  3276.  
  3277. for i = 0.5 , 1 , 0.5*attackspeed do
  3278.  
  3279. wait(0)
  3280.  
  3281. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  3282.  
  3283. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-5*i), 0, 0)
  3284.  
  3285. LW.C0 = CFrame.new(-1.5, 0.5, -0) * CFrame.Angles(math.rad(95+5*i),math.rad(0),math.rad(25))
  3286.  
  3287. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3288.  
  3289. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3290.  
  3291. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  3292.  
  3293. wt.C0 = CFrame.Angles(0, math.rad(60), 0)
  3294.  
  3295. end
  3296.  
  3297. for i = 0.5 , 1 , 0.5*attackspeed do
  3298.  
  3299. wait(0)
  3300.  
  3301. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  3302.  
  3303. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-5+5*i), 0, 0)
  3304.  
  3305. LW.C0 = CFrame.new(-1.5, 0.5, -0) * CFrame.Angles(math.rad(100-5*i),math.rad(0),math.rad(25))
  3306.  
  3307. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3308.  
  3309. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3310.  
  3311. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  3312.  
  3313. wt.C0 = CFrame.Angles(0, math.rad(60), 0)
  3314.  
  3315. end
  3316.  
  3317. until not keyhold or Ammo <= 0
  3318.  
  3319. for i = 0.2 , 1 , 0.2 do
  3320.  
  3321. wait(0)
  3322.  
  3323. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  3324.  
  3325. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15*i), 0, 0)
  3326.  
  3327. LW.C0 = CFrame.new(-1.5, 0.5, -0.25*i) * CFrame.Angles(math.rad(95-25*i),math.rad(0),math.rad(25))
  3328.  
  3329. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3330.  
  3331. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3332.  
  3333. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  3334.  
  3335. wt.C0 = CFrame.Angles(0, math.rad(60-60*i), 0)
  3336.  
  3337. end
  3338.  
  3339. w7.Part1 = Torso
  3340.  
  3341. w8.Part1 = Torso
  3342.  
  3343. w9.Part1 = Torso
  3344.  
  3345. RW.Part0 = Torso
  3346.  
  3347. LW.Part0 = Torso
  3348.  
  3349. Torso.Transparency = 0
  3350.  
  3351. RHL.Part0 = Torso
  3352.  
  3353. LHL.Part0 = Torso
  3354.  
  3355. t.Parent = nil
  3356.  
  3357. Character.Humanoid.WalkSpeed = 14
  3358.  
  3359. for i = 0.2 , 1 , 0.2 do
  3360.  
  3361. wait(0)
  3362.  
  3363. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  3364.  
  3365. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15+10*i), 0, 0)
  3366.  
  3367. LW.C0 = CFrame.new(-1.5, 0.5, -0.25-0.25*i) * CFrame.Angles(math.rad(70-30*i),math.rad(0),math.rad(25))
  3368.  
  3369. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3370.  
  3371. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3372.  
  3373. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  3374.  
  3375. end
  3376.  
  3377. wait(0.25)
  3378.  
  3379. attack = false
  3380.  
  3381. end
  3382.  
  3383.  
  3384.  
  3385.  
  3386. function GunzerkReady(mouse)
  3387.  
  3388. if Ammo <= 0 then Reload() return end
  3389.  
  3390. attack = true
  3391.  
  3392. Character.Humanoid.WalkSpeed = 5
  3393.  
  3394. for i = 0.2 , 1 , 0.2 do
  3395.  
  3396. wait(0)
  3397.  
  3398. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(50+30*i),math.rad(0),math.rad(-5+3*i))
  3399.  
  3400. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  3401.  
  3402. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(50+30*i),math.rad(0),math.rad(5-3*i))
  3403.  
  3404. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3405.  
  3406. end
  3407.  
  3408. for i = 0.2 , 1 , 0.2 do
  3409.  
  3410. wait(0)
  3411.  
  3412. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(50+30+10*i),math.rad(0),math.rad(-5+3+2*i))
  3413.  
  3414. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  3415.  
  3416. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(50+30+10*i),math.rad(0),math.rad(5-3-2*i))
  3417.  
  3418. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3419.  
  3420. end
  3421.  
  3422. wait() wait()
  3423.  
  3424. repeat
  3425.  
  3426. wait()
  3427.  
  3428. coroutine.resume(coroutine.create(function()
  3429.  
  3430. if firingdebounce1==false then
  3431.  
  3432. firingdebounce1=true
  3433.  
  3434. poisoncounter=math.random(1,5)
  3435.  
  3436. wait()
  3437.  
  3438. as(Head,1)
  3439.  
  3440. coroutine.resume(coroutine.create(function()
  3441.  
  3442. for z = 1 ,2 do
  3443.  
  3444. coroutine.resume(coroutine.create(function()
  3445.  
  3446. local meshb1 = Instance.new("BlockMesh")
  3447.  
  3448. meshb1.Scale = Vector3.new(1,1,1)
  3449.  
  3450. local shellb1 = Instance.new("Part")
  3451.  
  3452. meshb1.Parent = shellb1
  3453.  
  3454. shellb1.Anchored = true
  3455.  
  3456. shellb1.formFactor = 3
  3457.  
  3458. shellb1.Size = Vector3.new(0.3,0.3,0.3) * (math.random(100,300)/100)
  3459.  
  3460. shellb1.CFrame = CFrame.new((prt5.CFrame * CFrame.new(0,-prt5.Size.y/2,0)).p) * CFrame.Angles(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  3461.  
  3462. shellb1.Parent = Character
  3463.  
  3464. shellb1.Transparency = 0
  3465.  
  3466. if math.random(1,2) == 1 then
  3467.  
  3468. shellb1.BrickColor = BrickColor.new("Bright red")
  3469.  
  3470. else
  3471.  
  3472. shellb1.BrickColor = BrickColor.new("Bright orange")
  3473.  
  3474. end
  3475.  
  3476. shellb1.CanCollide = false
  3477.  
  3478. local incre = math.random(0,60)/100
  3479.  
  3480. for i = 0 , 1 , 0.1 do
  3481.  
  3482. wait()
  3483.  
  3484. shellb1.CFrame = shellb1.CFrame + Torso.CFrame.lookVector*incre
  3485.  
  3486. shellb1.Transparency = 1*i
  3487.  
  3488. meshb1.Scale = Vector3.new(1+1*i,1+1*i,1+1*i)
  3489.  
  3490. end
  3491.  
  3492. shellb1.Parent=nil
  3493.  
  3494. end))
  3495.  
  3496. end
  3497.  
  3498. coroutine.resume(coroutine.create(function()
  3499.  
  3500. shoottrail(mouse)
  3501.  
  3502. end))
  3503.  
  3504. end))
  3505.  
  3506. for i = 0.5 , 1 , 0.5*attackspeed do
  3507.  
  3508. wait(0)
  3509.  
  3510. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90+10*i),math.rad(0),math.rad(0))
  3511.  
  3512. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  3513.  
  3514. end
  3515.  
  3516. for i = 0.5 , 1 , 0.5*attackspeed do
  3517.  
  3518. wait(0)
  3519.  
  3520. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90+10-10*i),math.rad(0),math.rad(0))
  3521.  
  3522. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  3523.  
  3524. end
  3525.  
  3526. firingdebounce1=false
  3527.  
  3528. end
  3529.  
  3530. end))
  3531.  
  3532. coroutine.resume(coroutine.create(function()
  3533.  
  3534. if firingdebounce2==false then
  3535.  
  3536. firingdebounce2=true
  3537.  
  3538. poisoncounter=math.random(1,5)
  3539.  
  3540. wait(0.1)
  3541.  
  3542. as(Head,1)
  3543.  
  3544. coroutine.resume(coroutine.create(function()
  3545.  
  3546. for z = 1 ,2 do
  3547.  
  3548. coroutine.resume(coroutine.create(function()
  3549.  
  3550. local meshb1 = Instance.new("BlockMesh")
  3551.  
  3552. meshb1.Scale = Vector3.new(1,1,1)
  3553.  
  3554. local shellb1 = Instance.new("Part")
  3555.  
  3556. meshb1.Parent = shellb1
  3557.  
  3558. shellb1.Anchored = true
  3559.  
  3560. shellb1.formFactor = 3
  3561.  
  3562. shellb1.Size = Vector3.new(0.3,0.3,0.3) * (math.random(100,300)/100)
  3563.  
  3564. shellb1.CFrame = CFrame.new((newprt5.CFrame * CFrame.new(0,-newprt5.Size.y/2,0)).p) * CFrame.Angles(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  3565.  
  3566. shellb1.Parent = Character
  3567.  
  3568. shellb1.Transparency = 0
  3569.  
  3570. if math.random(1,2) == 1 then
  3571.  
  3572. shellb1.BrickColor = BrickColor.new("Bright red")
  3573.  
  3574. else
  3575.  
  3576. shellb1.BrickColor = BrickColor.new("Bright orange")
  3577.  
  3578. end
  3579.  
  3580. shellb1.CanCollide = false
  3581.  
  3582. local incre = math.random(0,60)/100
  3583.  
  3584. for i = 0 , 1 , 0.1 do
  3585.  
  3586. wait()
  3587.  
  3588. shellb1.CFrame = shellb1.CFrame + Torso.CFrame.lookVector*incre
  3589.  
  3590. shellb1.Transparency = 1*i
  3591.  
  3592. meshb1.Scale = Vector3.new(1+1*i,1+1*i,1+1*i)
  3593.  
  3594. end
  3595.  
  3596. shellb1.Parent=nil
  3597.  
  3598. end))
  3599.  
  3600. end
  3601.  
  3602. coroutine.resume(coroutine.create(function()
  3603.  
  3604. shoottrail2(mouse)
  3605.  
  3606. end))
  3607.  
  3608. end))
  3609.  
  3610. for i = 0.5 , 1 , 0.5*attackspeed do
  3611.  
  3612. wait(0)
  3613.  
  3614. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90+10*i),math.rad(0),math.rad(0))
  3615.  
  3616. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3617.  
  3618. end
  3619.  
  3620. for i = 0.5 , 1 , 0.5*attackspeed do
  3621.  
  3622. wait(0)
  3623.  
  3624. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90+10-10*i),math.rad(0),math.rad(0))
  3625.  
  3626. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3627.  
  3628. end
  3629.  
  3630. firingdebounce2=false
  3631.  
  3632. end
  3633.  
  3634. end))
  3635.  
  3636. until not keyhold or Ammo <= 0 or GunzerkDuration==0
  3637.  
  3638. for i = 0.2 , 1 , 0.2 do
  3639.  
  3640. wait(0)
  3641.  
  3642. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90-30*i),math.rad(0),math.rad(-3*i))
  3643.  
  3644. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  3645.  
  3646. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90-30*i),math.rad(0),math.rad(3*i))
  3647.  
  3648. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3649.  
  3650. end
  3651.  
  3652. Character.Humanoid.WalkSpeed = 14
  3653.  
  3654. for i = 0.2 , 1 , 0.2 do
  3655.  
  3656. wait(0)
  3657.  
  3658. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90-30-10*i),math.rad(0),math.rad(-3-2*i))
  3659.  
  3660. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  3661.  
  3662. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90-30-10*i),math.rad(0),math.rad(3+2*i))
  3663.  
  3664. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3665.  
  3666. end
  3667.  
  3668. wait(0.25)
  3669.  
  3670. attack = false
  3671.  
  3672. end
  3673.  
  3674.  
  3675.  
  3676.  
  3677.  
  3678.  
  3679.  
  3680.  
  3681.  
  3682.  
  3683.  
  3684.  
  3685.  
  3686.  
  3687.  
  3688.  
  3689. function Reload()
  3690.  
  3691. attack = true
  3692.  
  3693. while buttonhold==true do
  3694.  
  3695. wait()
  3696.  
  3697. ars(Head,0.75)
  3698.  
  3699. for i = 0.1 , 1 , 0.1*reloadspeed do
  3700.  
  3701. wait()
  3702.  
  3703. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+20*i))
  3704.  
  3705. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-45*i), 0, 0)
  3706.  
  3707. LW.C0 = CFrame.new(-1.5, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(40-60*i),math.rad(0),math.rad(25-15*i))
  3708.  
  3709. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3710.  
  3711. w3.C0 = CFrame.Angles(math.rad(90+90*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3712.  
  3713. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10*i),0,math.rad(-20*i))
  3714.  
  3715. end
  3716.  
  3717. for i = 0.2 , 1 , 0.2*reloadspeed do
  3718.  
  3719. wait()
  3720.  
  3721. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40))
  3722.  
  3723. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-20+20*i), 0, 0)
  3724.  
  3725. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+40*i),math.rad(0),math.rad(10-10*i))
  3726.  
  3727. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3728.  
  3729. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3730.  
  3731. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10+20*i),0,math.rad(-20))
  3732.  
  3733. end
  3734.  
  3735. for i = 0.2 , 1 , 0.2*reloadspeed do
  3736.  
  3737. wait()
  3738.  
  3739. RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40-5*i))
  3740.  
  3741. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(45*i), 0, 0)
  3742.  
  3743. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(20+80*i),math.rad(0),math.rad(45*i))
  3744.  
  3745. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3746.  
  3747. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3748.  
  3749. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(10+10*i),0,math.rad(-20+10*i))
  3750.  
  3751. end
  3752.  
  3753. AddAmmo(Ammoregen)
  3754.  
  3755. for i = 0.2 , 1 , 0.2*reloadspeed do
  3756.  
  3757. wait()
  3758.  
  3759. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-45))
  3760.  
  3761. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(45+5*i), 0, 0)
  3762.  
  3763. LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(100-10*i),math.rad(0),math.rad(45))
  3764.  
  3765. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3766.  
  3767. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3768.  
  3769. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(20+5*i),0,math.rad(-10+5*i))
  3770.  
  3771. end
  3772.  
  3773. for i = 0.1 , 1 , 0.1*reloadspeed do
  3774.  
  3775. wait()
  3776.  
  3777. RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-45-15*i))
  3778.  
  3779. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(50-25*i), 0, 0)
  3780.  
  3781. LW.C0 = CFrame.new(-1-0.5*i, 0.5, -0.5) * CFrame.Angles(math.rad(90-60*i),math.rad(0),math.rad(45-20*i))
  3782.  
  3783. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3784.  
  3785. w3.C0 = CFrame.Angles(math.rad(180-90*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3786.  
  3787. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(25-25*i),0,math.rad(-5+5*i))
  3788.  
  3789. end
  3790.  
  3791. Neck.C0 = neckcf0
  3792.  
  3793. end
  3794.  
  3795. attack = false
  3796.  
  3797. end
  3798.  
  3799.  
  3800.  
  3801.  
  3802. function Reload2()
  3803.  
  3804. attack=true
  3805.  
  3806. for i = 0.1 , 1 , 0.1 do
  3807.  
  3808. wait()
  3809.  
  3810. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10*i))
  3811.  
  3812. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-25*i), 0, 0)
  3813.  
  3814. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40+60*i),math.rad(0),math.rad(25))
  3815.  
  3816. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3817.  
  3818. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3819.  
  3820. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5*i),0,math.rad(20*i))
  3821.  
  3822. end
  3823.  
  3824. derp=prt6:Clone()
  3825.  
  3826. prt6.Transparency=1
  3827.  
  3828. prt6.CanCollide=false
  3829.  
  3830. derp.Parent=workspace
  3831.  
  3832. derp.CFrame=prt6.CFrame
  3833.  
  3834. derp.CanCollide=true
  3835.  
  3836. coroutine.resume(coroutine.create(function(Part)
  3837.  
  3838. wait(5)
  3839.  
  3840. Part.CanCollide=false
  3841.  
  3842. wait(3)
  3843.  
  3844. Part.Parent=nil
  3845.  
  3846. end),derp)
  3847.  
  3848. for i = 0.1 , 1 , 0.2 do
  3849.  
  3850. wait()
  3851.  
  3852. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  3853.  
  3854. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-25+5*i), 0, 0)
  3855.  
  3856. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40+60-30*i),math.rad(0),math.rad(25))
  3857.  
  3858. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3859.  
  3860. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3861.  
  3862. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5+5*i),0,math.rad(20))
  3863.  
  3864. end
  3865.  
  3866. for i = 0.1 , 1 , 0.1 do
  3867.  
  3868. wait()
  3869.  
  3870. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  3871.  
  3872. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-25+5), 0, 0)
  3873.  
  3874. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40+60-30-5*i),math.rad(0),math.rad(25))
  3875.  
  3876. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3877.  
  3878. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3879.  
  3880. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5+5+5*i),0,math.rad(20))
  3881.  
  3882. end
  3883.  
  3884. for i = 0.1 , 1 , 0.1 do
  3885.  
  3886. wait()
  3887.  
  3888. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  3889.  
  3890. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-25+5+10*i), 0, 0)
  3891.  
  3892. LW.C0 = CFrame.new(-1.5, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(40+60-30-5-100*i),math.rad(0),math.rad(25-10*i))
  3893.  
  3894. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3895.  
  3896. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3897.  
  3898. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5+5+5+10*i),0,math.rad(20+20*i))
  3899.  
  3900. end
  3901.  
  3902. derp2=prt6:Clone()
  3903.  
  3904. derp2.Parent=swordholder
  3905.  
  3906. derp2.Transparency=0
  3907.  
  3908. wldderp=Instance.new("Weld")
  3909.  
  3910. wldderp.Parent=derp
  3911.  
  3912. wldderp.Part0=derp2
  3913.  
  3914. wldderp.Part1=LeftArm
  3915.  
  3916. wldderp.C0=CFrame.Angles(math.rad(90),0,0)*CFrame.new(0,1,0)
  3917.  
  3918. for i = 0.1 , 1 , 0.1 do
  3919.  
  3920. wait()
  3921.  
  3922. wldderp.C0=CFrame.Angles(math.rad(90-5*i),0,0)*CFrame.new(0,1+0.1*i,0.2*i)
  3923.  
  3924. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  3925.  
  3926. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-25+5+10-10*i), 0, 0)
  3927.  
  3928. LW.C0 = CFrame.new(-1.5, 0.5, -0.5+0.5-0.5*i) * CFrame.Angles(math.rad(40+60-30-5-100+120*i),math.rad(0),math.rad(25-10+10*i))
  3929.  
  3930. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3931.  
  3932. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  3933.  
  3934. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5+5+5+10-10*i),0,math.rad(20+20-20*i))
  3935.  
  3936. end
  3937.  
  3938. derp2.Parent=nil
  3939.  
  3940. prt6.Transparency=0
  3941.  
  3942. prt6.CanCollide=false
  3943.  
  3944. for i = 0.1 , 1 , 0.1 do
  3945.  
  3946. wait()
  3947.  
  3948. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10-10*i))
  3949.  
  3950. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-25+5+10*i), 0, 0)
  3951.  
  3952. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40+60-30-5-100+120-70*i),math.rad(0),math.rad(25))
  3953.  
  3954. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3955.  
  3956. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(30*i), math.rad(0)) * CFrame.new(0, 0, 0)
  3957.  
  3958. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5+5+5),0,math.rad(20))
  3959.  
  3960. end
  3961.  
  3962. for i = 0.1 , 1 , 0.2 do
  3963.  
  3964. wait()
  3965.  
  3966. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90+30*i),math.rad(0),math.rad(-60+10-10))
  3967.  
  3968. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-25+5+10), 0, 0)
  3969.  
  3970. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40+60-30-5-100+120-70+50*i),math.rad(0),math.rad(25))
  3971.  
  3972. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3973.  
  3974. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(30), math.rad(0)) * CFrame.new(0, 0, 0)
  3975.  
  3976. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5+5+5-10*i),0,math.rad(20))
  3977.  
  3978. end
  3979.  
  3980. Ammo = MaxAmmo
  3981.  
  3982. for i = 0.1 , 1 , 0.1 do
  3983.  
  3984. wait()
  3985.  
  3986. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90+30-30*i),math.rad(0),math.rad(-60))
  3987.  
  3988. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15+10*i), 0, 0)
  3989.  
  3990. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(65-40*i),math.rad(0),math.rad(25))
  3991.  
  3992. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  3993.  
  3994. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(30-30*i), math.rad(0)) * CFrame.new(0, 0, 0)
  3995.  
  3996. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5-5*i),0,math.rad(20-20*i))
  3997.  
  3998. end
  3999.  
  4000. attack=false
  4001.  
  4002. end
  4003.  
  4004.  
  4005.  
  4006.  
  4007. function Gunzerker()
  4008.  
  4009. attack=true
  4010.  
  4011. Gunzerkering=true
  4012.  
  4013. for i = 0.1 , 1 , 0.1 do
  4014.  
  4015. wait()
  4016.  
  4017. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+60*i))
  4018.  
  4019. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  4020.  
  4021. LW.C0 = CFrame.new(-1.5, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(40-60*i),math.rad(0),math.rad(25-25*i))
  4022.  
  4023. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4024.  
  4025. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5*i),0,0)
  4026.  
  4027. end
  4028.  
  4029. newgun.Parent=workspace
  4030.  
  4031. newprt3.BrickColor=prt3.BrickColor
  4032.  
  4033. neww1.Parent=newprt1
  4034.  
  4035. neww2.Parent=newprt2
  4036.  
  4037. neww3.Parent=newprt3
  4038.  
  4039. neww4.Parent=newprt4
  4040.  
  4041. neww5.Parent=newprt5
  4042.  
  4043. neww6.Parent=newprt6
  4044.  
  4045. neww1.Part0 = newprt1
  4046.  
  4047. neww1.Part1 = LeftArm
  4048.  
  4049. neww1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  4050.  
  4051. neww1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 1, 0)
  4052.  
  4053. print(newgun)
  4054.  
  4055. for i = 0.1 , 1 , 0.15 do
  4056.  
  4057. wait()
  4058.  
  4059. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90+10*i),math.rad(0),math.rad(0))
  4060.  
  4061. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-25*i), 0, 0)
  4062.  
  4063. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(40-60+120*i),math.rad(0),math.rad(0))
  4064.  
  4065. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4066.  
  4067. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5-10*i),0,0)
  4068.  
  4069. end
  4070.  
  4071. for i = 0.1 , 1 , 0.2 do
  4072.  
  4073. wait()
  4074.  
  4075. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90+10+10*i),math.rad(0),math.rad(0))
  4076.  
  4077. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  4078.  
  4079. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(40-60+120+10*i),math.rad(0),math.rad(0))
  4080.  
  4081. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4082.  
  4083. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5-10-5*i),0,0)
  4084.  
  4085. end
  4086.  
  4087. for i = 0.1 , 1 , 0.15 do
  4088.  
  4089. wait()
  4090.  
  4091. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(110-60*i),math.rad(0),math.rad(-5*i))
  4092.  
  4093. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  4094.  
  4095. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(110-60*i),math.rad(0),math.rad(5*i))
  4096.  
  4097. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4098.  
  4099. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5-10-5+10*i),0,0)
  4100.  
  4101. end
  4102.  
  4103. attack=false
  4104.  
  4105. end
  4106.  
  4107.  
  4108.  
  4109.  
  4110. function ChangeAmmoAnim(ammo,trail,derpcol)
  4111.  
  4112. for i = 0.1 , 1 , 0.1 do
  4113.  
  4114. wait()
  4115.  
  4116. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10*i))
  4117.  
  4118. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10*i), 0, 0)
  4119.  
  4120. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40+60*i),math.rad(0),math.rad(25))
  4121.  
  4122. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4123.  
  4124. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  4125.  
  4126. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5*i),0,0)
  4127.  
  4128. end
  4129.  
  4130. for i = 0.1 , 1 , 0.15 do
  4131.  
  4132. wait()
  4133.  
  4134. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  4135.  
  4136. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+5*i), 0, 0)
  4137.  
  4138. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5) * CFrame.Angles(math.rad(40+60-50*i),math.rad(0),math.rad(25+20*i))
  4139.  
  4140. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4141.  
  4142. w3.C0 = CFrame.Angles(math.rad(90+90*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  4143.  
  4144. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+20*i),0,0)
  4145.  
  4146. end
  4147.  
  4148. for i = 0.1 , 1 , 0.1 do
  4149.  
  4150. wait()
  4151.  
  4152. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  4153.  
  4154. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+5+5*i), 0, 0)
  4155.  
  4156. LW.C0 = CFrame.new(-1.5+0.5, 0.5, -0.5) * CFrame.Angles(math.rad(40+60-50+50*i),math.rad(0),math.rad(25+20))
  4157.  
  4158. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4159.  
  4160. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  4161.  
  4162. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+20-10*i),0,0)
  4163.  
  4164. end
  4165.  
  4166. derpd=prt3:Clone()
  4167.  
  4168. derpd.Parent=swordholder
  4169.  
  4170. derpd.Transparency=0
  4171.  
  4172. derpdw=Instance.new("Weld")
  4173.  
  4174. derpdw.Parent=swordholder
  4175.  
  4176. derpdw.Part0=derpd
  4177.  
  4178. derpdw.Part1=LeftArm
  4179.  
  4180. derpdw.C0=CFrame.Angles(math.rad(90),math.rad(-30),0)*CFrame.new(-0.4,0.8,0)
  4181.  
  4182. prt3.Transparency=1
  4183.  
  4184. wait(0.1)
  4185.  
  4186. for i = 0.1 , 1 , 0.1 do
  4187.  
  4188. wait()
  4189.  
  4190. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  4191.  
  4192. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+5+5+5*i), 0, 0)
  4193.  
  4194. LW.C0 = CFrame.new(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(40+60-50+50+10*i),math.rad(0),math.rad(25+20-30*i))
  4195.  
  4196. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4197.  
  4198. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  4199.  
  4200. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+20-10-5*i),0,0)
  4201.  
  4202. derpdw.C0=CFrame.Angles(math.rad(90),math.rad(-30+30*i),0)*CFrame.new(-0.4+0.4*i,0.8+0.2*i,0)
  4203.  
  4204. end
  4205.  
  4206. for i = 0.1 , 1 , 0.2 do
  4207.  
  4208. wait()
  4209.  
  4210. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  4211.  
  4212. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+5+5+5), 0, 0)
  4213.  
  4214. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(40+60-50+50+10-140*i),math.rad(0),math.rad(25+20-30))
  4215.  
  4216. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4217.  
  4218. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  4219.  
  4220. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+20-10-5+30*i),0,math.rad(20*i))
  4221.  
  4222. derpdw.C0=CFrame.Angles(math.rad(90),math.rad(0),0)*CFrame.new(0,1,0)
  4223.  
  4224. end
  4225.  
  4226. CurrentAmmo = ammo
  4227.  
  4228. ammotrail = BrickColor.new(trail)
  4229.  
  4230. derpd.BrickColor=BrickColor.new(derpcol)
  4231.  
  4232. prt3.BrickColor=BrickColor.new(derpcol)
  4233.  
  4234. for i = 0.1 , 1 , 0.1 do
  4235.  
  4236. wait()
  4237.  
  4238. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  4239.  
  4240. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+5+5+5), 0, 0)
  4241.  
  4242. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(40+60-50+50+10-140+140*i),math.rad(0),math.rad(25+20-30+30*i))
  4243.  
  4244. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4245.  
  4246. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  4247.  
  4248. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+20-10-5+30-30*i),0,math.rad(20-20*i))
  4249.  
  4250. derpdw.C0=CFrame.Angles(math.rad(90),math.rad(0),0)*CFrame.new(0,1,0)
  4251.  
  4252. end
  4253.  
  4254. for i = 0.1 , 1 , 0.1 do
  4255.  
  4256. wait()
  4257.  
  4258. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  4259.  
  4260. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+5+5+5-5*i), 0, 0)
  4261.  
  4262. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(40+60-50+50+10-10*i),math.rad(0),math.rad(25+20))
  4263.  
  4264. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4265.  
  4266. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  4267.  
  4268. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+20-10-5+5*i),0,0)
  4269.  
  4270. derpdw.C0=CFrame.Angles(math.rad(90),math.rad(-30*i),0)*CFrame.new(-0.4*i,1-0.2*i,0)
  4271.  
  4272. end
  4273.  
  4274. prt3.Transparency=0
  4275.  
  4276. derpd.Parent=nil
  4277.  
  4278. for i = 0.1 , 1 , 0.1 do
  4279.  
  4280. wait()
  4281.  
  4282. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  4283.  
  4284. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+5+5+5-5-5*i), 0, 0)
  4285.  
  4286. LW.C0 = CFrame.new(-1.5+0.5, 0.5, -0.5) * CFrame.Angles(math.rad(40+60-50+50-60*i),math.rad(0),math.rad(25+20))
  4287.  
  4288. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4289.  
  4290. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  4291.  
  4292. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+20-10+10*i),0,0)
  4293.  
  4294. end
  4295.  
  4296. for i = 0.1 , 1 , 0.15 do
  4297.  
  4298. wait()
  4299.  
  4300. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  4301.  
  4302. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+5+5+5-5-5-5*i), 0, 0)
  4303.  
  4304. LW.C0 = CFrame.new(-1.5+0.5-0.5*i, 0.5, -0.5) * CFrame.Angles(math.rad(40+60*i),math.rad(0),math.rad(25+20-20*i))
  4305.  
  4306. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4307.  
  4308. w3.C0 = CFrame.Angles(math.rad(180-90*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  4309.  
  4310. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+20-20*i),0,0)
  4311.  
  4312. end
  4313.  
  4314. for i = 0.1 , 1 , 0.1 do
  4315.  
  4316. wait()
  4317.  
  4318. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10-10*i))
  4319.  
  4320. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+10*i), 0, 0)
  4321.  
  4322. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40+60-60*i),math.rad(0),math.rad(25))
  4323.  
  4324. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4325.  
  4326. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  4327.  
  4328. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+5*i),0,0)
  4329.  
  4330. end
  4331.  
  4332. end
  4333.  
  4334.  
  4335.  
  4336.  
  4337. function NormalAmmo()
  4338.  
  4339. attack = true
  4340.  
  4341. ChangeAmmoAnim("Normal","White","White")
  4342.  
  4343. attack = false
  4344.  
  4345. end
  4346.  
  4347.  
  4348.  
  4349.  
  4350. function PoisonAmmo()
  4351.  
  4352. attack = true
  4353.  
  4354. ChangeAmmoAnim("Poison","Bright violet","Bright violet")
  4355.  
  4356. attack = false
  4357.  
  4358. coroutine.resume(coroutine.create(function()
  4359.  
  4360. repeat
  4361.  
  4362. wait(0.25+0.75*math.random())
  4363.  
  4364. if Ammo ~= 0 then
  4365.  
  4366. local meshb1 = Instance.new("SpecialMesh")
  4367.  
  4368. meshb1.Scale = Vector3.new(1,1,1)
  4369.  
  4370. meshb1.MeshType = "Sphere"
  4371.  
  4372. local shellb1 = Instance.new("Part")
  4373.  
  4374. meshb1.Parent = shellb1
  4375.  
  4376. shellb1.Anchored = true
  4377.  
  4378. shellb1.formFactor = 3
  4379.  
  4380. shellb1.Size = Vector3.new(0.3,0.3,0.3)
  4381.  
  4382. shellb1.CFrame = CFrame.new((prt5.CFrame * CFrame.new(0,-prt5.Size.y/2,0)).p)
  4383.  
  4384. shellb1.Parent = swordholder
  4385.  
  4386. shellb1.Transparency = 0
  4387.  
  4388. shellb1.BrickColor = BrickColor.new("Alder")
  4389.  
  4390. shellb1.CanCollide = false
  4391.  
  4392. for i = 0 , 1 , 0.1 do
  4393.  
  4394. wait()
  4395.  
  4396. shellb1.CFrame = shellb1.CFrame + Vector3.new(0,-0.15,0)
  4397.  
  4398. shellb1.Transparency = 1*i
  4399.  
  4400. meshb1.Scale = Vector3.new(1,1+3*i,1)
  4401.  
  4402. end
  4403.  
  4404. shellb1.Parent=nil
  4405.  
  4406. end
  4407.  
  4408. until CurrentAmmo ~= "Poison"
  4409.  
  4410. end))
  4411.  
  4412. end
  4413.  
  4414.  
  4415.  
  4416.  
  4417. function KBAmmo()
  4418.  
  4419. attack = true
  4420.  
  4421. ChangeAmmoAnim("Knockback","Black","Black")
  4422.  
  4423. attack = false
  4424.  
  4425. end
  4426.  
  4427.  
  4428.  
  4429.  
  4430. function ExplodeAmmo()
  4431.  
  4432. attack = true
  4433.  
  4434. ChangeAmmoAnim("Explosion","Bright red","Bright red")
  4435.  
  4436. attack = false
  4437.  
  4438. end
  4439.  
  4440.  
  4441.  
  4442.  
  4443.  
  4444.  
  4445.  
  4446. function HerpAmmo()
  4447.  
  4448. attack = true
  4449.  
  4450. ChangeAmmoAnim("Herpity","White","Really red")
  4451.  
  4452. attack = false
  4453.  
  4454. coroutine.resume(coroutine.create(function()
  4455.  
  4456. repeat
  4457.  
  4458. wait()
  4459.  
  4460. ammotrail = BrickColor:random()
  4461.  
  4462. until CurrentAmmo ~= "Herpity"
  4463.  
  4464. end))
  4465.  
  4466. end
  4467.  
  4468.  
  4469.  
  4470.  
  4471. function suparKnockbackAmmo()
  4472.  
  4473. attack = true
  4474.  
  4475. ChangeAmmoAnim("suparKnockback","White","Really blue")
  4476.  
  4477. CurrentAmmo = "suparKnockback"
  4478.  
  4479. attack = false
  4480.  
  4481. coroutine.resume(coroutine.create(function()
  4482.  
  4483. repeat
  4484.  
  4485. wait()
  4486.  
  4487. ammotrail = BrickColor:random()
  4488.  
  4489. until CurrentAmmo ~= "suparKnockback"
  4490.  
  4491. end))
  4492.  
  4493. end
  4494.  
  4495.  
  4496.  
  4497.  
  4498. function BeesAmmo()
  4499.  
  4500. attack = true
  4501.  
  4502. ChangeAmmoAnim("Bees","White","New Yeller")
  4503.  
  4504. attack = false
  4505.  
  4506. coroutine.resume(coroutine.create(function()
  4507.  
  4508. repeat
  4509.  
  4510. wait()
  4511.  
  4512. ammotrail = BrickColor:random()
  4513.  
  4514. until CurrentAmmo ~= "Bees"
  4515.  
  4516. end))
  4517.  
  4518. end
  4519.  
  4520.  
  4521.  
  4522.  
  4523. function derpAmmo()
  4524.  
  4525. attack = true
  4526.  
  4527. ChangeAmmoAnim("derp","White","Bright green")
  4528.  
  4529. attack = false
  4530.  
  4531. coroutine.resume(coroutine.create(function()
  4532.  
  4533. repeat
  4534.  
  4535. wait()
  4536.  
  4537. ammotrail = BrickColor:random()
  4538.  
  4539. until CurrentAmmo ~= "derp"
  4540.  
  4541. end))
  4542.  
  4543. end
  4544.  
  4545.  
  4546.  
  4547.  
  4548. function TrollAmmo()
  4549.  
  4550. attack = true
  4551.  
  4552. ChangeAmmoAnim("Troll","White","Cyan")
  4553.  
  4554. attack = false
  4555.  
  4556. coroutine.resume(coroutine.create(function()
  4557.  
  4558. repeat
  4559.  
  4560. wait()
  4561.  
  4562. ammotrail = BrickColor:random()
  4563.  
  4564. until CurrentAmmo ~= "Troll"
  4565.  
  4566. end))
  4567.  
  4568. end
  4569.  
  4570.  
  4571.  
  4572.  
  4573.  
  4574.  
  4575.  
  4576. function AimedReady(mouse)
  4577.  
  4578. if Ammo <= 0 then Reload() return end
  4579.  
  4580. attack = true
  4581.  
  4582. local wt,t = faketors()
  4583.  
  4584. w7.Part1 = t
  4585.  
  4586. w8.Part1 = t
  4587.  
  4588. w9.Part1 = t
  4589.  
  4590. Character.Humanoid.WalkSpeed = 5
  4591.  
  4592. for i = 0.2 , 1 , 0.2 do
  4593.  
  4594. wait(0)
  4595.  
  4596. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  4597.  
  4598. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-15*i), 0, 0)
  4599.  
  4600. LW.C0 = CFrame.new(-1.5, 0.5, -0.5+0.25*i) * CFrame.Angles(math.rad(40+35*i),math.rad(0),math.rad(25))
  4601.  
  4602. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4603.  
  4604. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  4605.  
  4606. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  4607.  
  4608. wt.C0 = CFrame.Angles(0, math.rad(50*i), 0)
  4609.  
  4610. Neck.C0 = neckcf0 * CFrame.Angles(0,math.rad(-20*i),0)
  4611.  
  4612. end
  4613.  
  4614. for i = 0.2 , 1 , 0.2 do
  4615.  
  4616. wait(0)
  4617.  
  4618. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  4619.  
  4620. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(10-10*i), 0, 0)
  4621.  
  4622. LW.C0 = CFrame.new(-1.5, 0.5, -0.25+0.25*i) * CFrame.Angles(math.rad(75+20*i),math.rad(0),math.rad(25))
  4623.  
  4624. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4625.  
  4626. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  4627.  
  4628. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  4629.  
  4630. wt.C0 = CFrame.Angles(0, math.rad(50+10*i), 0)
  4631.  
  4632. end
  4633.  
  4634. wait() wait()
  4635.  
  4636. local orispread = spread
  4637.  
  4638. spread = 0
  4639.  
  4640. repeat
  4641.  
  4642. poisoncounter=math.random(1,5)
  4643.  
  4644. wait(0.5)
  4645.  
  4646. as(Head,1)
  4647.  
  4648. coroutine.resume(coroutine.create(function()
  4649.  
  4650. for z = 1 ,2 do
  4651.  
  4652. coroutine.resume(coroutine.create(function()
  4653.  
  4654. local meshb1 = Instance.new("BlockMesh")
  4655.  
  4656. meshb1.Scale = Vector3.new(1,1,1)
  4657.  
  4658. local shellb1 = Instance.new("Part")
  4659.  
  4660. meshb1.Parent = shellb1
  4661.  
  4662. shellb1.Anchored = true
  4663.  
  4664. shellb1.formFactor = 3
  4665.  
  4666. shellb1.Size = Vector3.new(0.3,0.3,0.3) * (math.random(100,300)/100)
  4667.  
  4668. shellb1.CFrame = CFrame.new((prt5.CFrame * CFrame.new(0,-prt5.Size.y/2,0)).p) * CFrame.Angles(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  4669.  
  4670. shellb1.Parent = Character
  4671.  
  4672. shellb1.Transparency = 0
  4673.  
  4674. if math.random(1,2) == 1 then
  4675.  
  4676. shellb1.BrickColor = BrickColor.new("Bright red")
  4677.  
  4678. else
  4679.  
  4680. shellb1.BrickColor = BrickColor.new("Bright orange")
  4681.  
  4682. end
  4683.  
  4684. shellb1.CanCollide = false
  4685.  
  4686. local incre = math.random(0,60)/100
  4687.  
  4688. for i = 0 , 1 , 0.1 do
  4689.  
  4690. wait()
  4691.  
  4692. shellb1.CFrame = shellb1.CFrame + Torso.CFrame.lookVector*incre
  4693.  
  4694. shellb1.Transparency = 1*i
  4695.  
  4696. meshb1.Scale = Vector3.new(1+1*i,1+1*i,1+1*i)
  4697.  
  4698. end
  4699.  
  4700. shellb1.Parent=nil
  4701.  
  4702. end))
  4703.  
  4704. end
  4705.  
  4706. shoottrail(mouse)
  4707.  
  4708. end))
  4709.  
  4710. Ammo = Ammo - 1
  4711.  
  4712. for i = 0.5 , 1 , 0.5 do
  4713.  
  4714. wait(0)
  4715.  
  4716. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  4717.  
  4718. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-5*i), 0, 0)
  4719.  
  4720. LW.C0 = CFrame.new(-1.5, 0.5, -0) * CFrame.Angles(math.rad(95+5*i),math.rad(0),math.rad(25))
  4721.  
  4722. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4723.  
  4724. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  4725.  
  4726. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  4727.  
  4728. wt.C0 = CFrame.Angles(0, math.rad(60), 0)
  4729.  
  4730. Neck.C0 = neckcf0 * CFrame.Angles(0,math.rad(-20+5*i),0)
  4731.  
  4732. end
  4733.  
  4734. for i = 0.5 , 1 , 0.5 do
  4735.  
  4736. wait(0)
  4737.  
  4738. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  4739.  
  4740. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-5+5*i), 0, 0)
  4741.  
  4742. LW.C0 = CFrame.new(-1.5, 0.5, -0) * CFrame.Angles(math.rad(100-5*i),math.rad(0),math.rad(25))
  4743.  
  4744. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4745.  
  4746. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  4747.  
  4748. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  4749.  
  4750. wt.C0 = CFrame.Angles(0, math.rad(60), 0)
  4751.  
  4752. Neck.C0 = neckcf0 * CFrame.Angles(0,math.rad(-15-5*i),0)
  4753.  
  4754. end
  4755.  
  4756. until not buttonhold or Ammo <= 0
  4757.  
  4758. spread = orispread
  4759.  
  4760. for i = 0.2 , 1 , 0.2 do
  4761.  
  4762. wait(0)
  4763.  
  4764. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  4765.  
  4766. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15*i), 0, 0)
  4767.  
  4768. LW.C0 = CFrame.new(-1.5, 0.5, -0.25*i) * CFrame.Angles(math.rad(95-25*i),math.rad(0),math.rad(25))
  4769.  
  4770. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4771.  
  4772. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  4773.  
  4774. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  4775.  
  4776. wt.C0 = CFrame.Angles(0, math.rad(60-60*i), 0)
  4777.  
  4778. Neck.C0 = neckcf0 * CFrame.Angles(0,math.rad(-20+20*i),0)
  4779.  
  4780. end
  4781.  
  4782. w7.Part1 = Torso
  4783.  
  4784. w8.Part1 = Torso
  4785.  
  4786. w9.Part1 = Torso
  4787.  
  4788. RW.Part0 = Torso
  4789.  
  4790. LW.Part0 = Torso
  4791.  
  4792. Torso.Transparency = 0
  4793.  
  4794. RHL.Part0 = Torso
  4795.  
  4796. LHL.Part0 = Torso
  4797.  
  4798. t.Parent = nil
  4799.  
  4800. Character.Humanoid.WalkSpeed = 14
  4801.  
  4802. for i = 0.2 , 1 , 0.2 do
  4803.  
  4804. wait(0)
  4805.  
  4806. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  4807.  
  4808. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15+10*i), 0, 0)
  4809.  
  4810. LW.C0 = CFrame.new(-1.5, 0.5, -0.25-0.25*i) * CFrame.Angles(math.rad(70-30*i),math.rad(0),math.rad(25))
  4811.  
  4812. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4813.  
  4814. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  4815.  
  4816. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  4817.  
  4818. end
  4819.  
  4820. wait(0.25)
  4821.  
  4822. attack = false
  4823.  
  4824. end
  4825.  
  4826.  
  4827.  
  4828.  
  4829.  
  4830.  
  4831.  
  4832.  
  4833.  
  4834.  
  4835. function returnwelds()
  4836.  
  4837. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  4838.  
  4839. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  4840.  
  4841. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(25))
  4842.  
  4843. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4844.  
  4845. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  4846.  
  4847. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  4848.  
  4849. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
  4850.  
  4851. RWL.C1 = CFrame.new(0.5, 1, 0)
  4852.  
  4853. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
  4854.  
  4855. LWL.C1 = CFrame.new(-0.5, 1, 0)
  4856.  
  4857. Neck.C0 = neckcf0
  4858.  
  4859. end
  4860.  
  4861.  
  4862.  
  4863.  
  4864. keyhold = false
  4865.  
  4866. function ob1d(mouse)
  4867.  
  4868. hold = true
  4869.  
  4870. if attack then return end
  4871.  
  4872. keyhold = true
  4873.  
  4874. if Gunzerkering==true then
  4875.  
  4876. GunzerkReady(mouse)
  4877.  
  4878. else
  4879.  
  4880. Ready(mouse)
  4881.  
  4882. end
  4883.  
  4884. end
  4885.  
  4886.  
  4887.  
  4888.  
  4889. function ob1u(mouse)
  4890.  
  4891. keyhold = false
  4892.  
  4893. end
  4894.  
  4895.  
  4896.  
  4897.  
  4898. buttonhold = false
  4899.  
  4900.  
  4901.  
  4902.  
  4903. function key(key,mouse)
  4904.  
  4905. if attack then return end
  4906.  
  4907. if key=="h" and GunzerkDuration==1000 then
  4908.  
  4909. Gunzerker()
  4910.  
  4911. coroutine.resume(coroutine.create(function()
  4912.  
  4913. while GunzerkDuration~=0 do
  4914.  
  4915. wait(0)
  4916.  
  4917. GunzerkDuration=GunzerkDuration-2
  4918.  
  4919. end
  4920.  
  4921. Gunzerkering=false
  4922.  
  4923. while attack==true do
  4924.  
  4925. wait()
  4926.  
  4927. end
  4928.  
  4929. newgun.Parent=nil
  4930.  
  4931. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  4932.  
  4933. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  4934.  
  4935. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(25))
  4936.  
  4937. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  4938.  
  4939. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(0),0,0)
  4940.  
  4941. wait()
  4942.  
  4943. while GunzerkDuration~=1000 and Gunzerkering==false do
  4944.  
  4945. wait()
  4946.  
  4947. GunzerkDuration=GunzerkDuration+2
  4948.  
  4949. end
  4950.  
  4951. end))
  4952.  
  4953. end
  4954.  
  4955. if Gunzerkering~=true then
  4956.  
  4957. if key == "f" then
  4958.  
  4959. if Ammo~=MaxAmmo then
  4960.  
  4961. Reload2()
  4962.  
  4963. end
  4964.  
  4965. end
  4966.  
  4967. if key == "q" then
  4968.  
  4969. buttonhold = true
  4970.  
  4971. AimedReady(mouse)
  4972.  
  4973. end
  4974.  
  4975. if key == "g" then
  4976.  
  4977. Melee()
  4978.  
  4979. end
  4980.  
  4981. if key == "e" then
  4982.  
  4983. NormalAmmo()
  4984.  
  4985. end
  4986.  
  4987. if key == "r" then
  4988.  
  4989. PoisonAmmo()
  4990.  
  4991. end
  4992.  
  4993. if key == "t" then
  4994.  
  4995. KBAmmo()
  4996.  
  4997. end
  4998.  
  4999. if key == "y" then
  5000.  
  5001. ExplodeAmmo()
  5002.  
  5003. end
  5004.  
  5005. --[[DERP AMMO]]--
  5006.  
  5007. if key == "z" then
  5008.  
  5009. HerpAmmo()
  5010.  
  5011. end
  5012.  
  5013. if key == "x" then
  5014.  
  5015. suparKnockbackAmmo()
  5016.  
  5017. end
  5018.  
  5019. if key == "c" then
  5020.  
  5021. TrollAmmo()
  5022.  
  5023. end
  5024.  
  5025. if key == "v" then
  5026.  
  5027. derpAmmo()
  5028.  
  5029. end
  5030.  
  5031. if key=="b" then
  5032.  
  5033. BeesAmmo()
  5034.  
  5035. end
  5036.  
  5037. end
  5038.  
  5039. end
  5040.  
  5041.  
  5042.  
  5043.  
  5044.  
  5045.  
  5046.  
  5047. function key2(key)
  5048.  
  5049. if key == "f" or key == "q" then
  5050.  
  5051. buttonhold = false
  5052.  
  5053. end
  5054.  
  5055. end
  5056.  
  5057.  
  5058.  
  5059.  
  5060. function s(mouse)
  5061.  
  5062. repeat wait() until not attack
  5063.  
  5064. repeat wait() until not ev.Value
  5065.  
  5066.  
  5067.  
  5068.  
  5069. mouse.Button1Down:connect(function() ob1d(mouse) end)
  5070.  
  5071. mouse.Button1Up:connect(function() ob1u(mouse) end)
  5072.  
  5073. mouse.KeyDown:connect(function(ke) key(ke,mouse) end)
  5074.  
  5075. mouse.KeyUp:connect(key2)
  5076.  
  5077. equipanim()
  5078.  
  5079. ev.Value = true
  5080.  
  5081. end
  5082.  
  5083.  
  5084.  
  5085.  
  5086. function ds(mouse)
  5087.  
  5088. keyhold = false
  5089.  
  5090. repeat wait() until not attack
  5091.  
  5092. repeat wait() until ev.Value
  5093.  
  5094.  
  5095.  
  5096.  
  5097. hideanim()
  5098.  
  5099. wait(0.1)
  5100.  
  5101. ev.Value = false
  5102.  
  5103. end
  5104.  
  5105.  
  5106.  
  5107.  
  5108. Bin.Selected:connect(s)
  5109.  
  5110. Bin.Deselected:connect(ds)
  5111.  
  5112.  
  5113.  
  5114.  
  5115.  
  5116.  
  5117.  
  5118.  
  5119.  
  5120.  
  5121. if PlayerGui:findFirstChild("AmmoMeter") ~= nil then
  5122.  
  5123. PlayerGui:findFirstChild("AmmoMeter").Parent = nil
  5124.  
  5125. end
  5126.  
  5127.  
  5128.  
  5129.  
  5130.  
  5131.  
  5132.  
  5133. coroutine.resume(coroutine.create(function()
  5134.  
  5135. local SG = Instance.new("ScreenGui",PlayerGui)
  5136.  
  5137. SG.Name = "AmmoMeter"
  5138.  
  5139. local frame = Instance.new("Frame",SG)
  5140.  
  5141. frame.Size = UDim2.new(0.2,0,0.1,0)
  5142.  
  5143. frame.Position = UDim2.new(0.5-0.1,0,0.05,0)
  5144.  
  5145. frame.BackgroundColor3 = BrickColor.new("Brown").Color
  5146.  
  5147. local Ammotext = Instance.new("TextLabel",frame)
  5148.  
  5149. Ammotext.Size = UDim2.new(1,0,0.35,0)
  5150.  
  5151. Ammotext.BackgroundTransparency = 1
  5152.  
  5153. Ammotext.Text = "Ammo"
  5154.  
  5155. Ammotext.FontSize = "Size10"
  5156.  
  5157. Ammotext.TextColor3 = BrickColor.new("White").Color
  5158.  
  5159. local backing = Instance.new("ImageLabel",frame)
  5160.  
  5161. backing.Size = UDim2.new(0.8,0,0.2,0)
  5162.  
  5163. backing.Image = "http://www.roblox.com/asset/?id=48965808"
  5164.  
  5165. backing.Position = UDim2.new(0.1,0,0.3,0)
  5166.  
  5167. backing.BackgroundColor3 = BrickColor.new("Black").Color
  5168.  
  5169. local img = Instance.new("ImageLabel",backing)
  5170.  
  5171. img.Size = UDim2.new(1,0,1,0)
  5172.  
  5173. img.Image = "http://www.roblox.com/asset/?id=48965808"
  5174.  
  5175. img.Position = UDim2.new(0,0,0,0)
  5176.  
  5177. img.BackgroundColor3 = BrickColor.new("Brown").Color
  5178.  
  5179. local percent = Instance.new("TextLabel",backing)
  5180.  
  5181. percent.Size = UDim2.new(1,0,1,0)
  5182.  
  5183. percent.BackgroundTransparency = 1
  5184.  
  5185. percent.TextColor3 = BrickColor.new("White").Color
  5186.  
  5187. percent.Text = Ammo.."/".. MaxAmmo
  5188.  
  5189. percent.FontSize = "Size10"
  5190.  
  5191. local Gunzerktext = Instance.new("TextLabel",frame)
  5192.  
  5193. Gunzerktext.Size = UDim2.new(1,0,1.2,0)
  5194.  
  5195. Gunzerktext.BackgroundTransparency = 1
  5196.  
  5197. Gunzerktext.Text = "Gunzerk Duration"
  5198.  
  5199. Gunzerktext.FontSize = "Size10"
  5200.  
  5201. Gunzerktext.TextColor3 = BrickColor.new("White").Color
  5202.  
  5203. local Gunzerkbacking = Instance.new("ImageLabel",frame)
  5204.  
  5205. Gunzerkbacking.Size = UDim2.new(0.8,0,0.2,0)
  5206.  
  5207. Gunzerkbacking.Image = "http://www.roblox.com/asset/?id=48965808"
  5208.  
  5209. Gunzerkbacking.Position = UDim2.new(0.1,0,0.75,0)
  5210.  
  5211. Gunzerkbacking.BackgroundColor3 = BrickColor.new("Black").Color
  5212.  
  5213. local Gunzerkimg = Instance.new("ImageLabel",Gunzerkbacking)
  5214.  
  5215. Gunzerkimg.Size = UDim2.new(1,0,1,0)
  5216.  
  5217. Gunzerkimg.Image = "http://www.roblox.com/asset/?id=48965808"
  5218.  
  5219. Gunzerkimg.Position = UDim2.new(0,0,0,0)
  5220.  
  5221. Gunzerkimg.BackgroundColor3 = BrickColor.new("Brown").Color
  5222.  
  5223. local currentam = Instance.new("TextLabel",frame)
  5224.  
  5225. currentam.Size = UDim2.new(0.5,0,0.25,0)
  5226.  
  5227. currentam.Position = UDim2.new(0,0,1,0)
  5228.  
  5229. currentam.BackgroundTransparency = 0
  5230.  
  5231. currentam.BackgroundColor3 = BrickColor.new("Brown").Color
  5232.  
  5233. currentam.TextColor3 = BrickColor.new("White").Color
  5234.  
  5235. currentam.Text = CurrentAmmo
  5236.  
  5237. currentam.FontSize = "Size18"
  5238.  
  5239. repeat
  5240.  
  5241. wait()
  5242.  
  5243. pcall(function()
  5244.  
  5245. img.Size = UDim2.new(1*(Ammo/MaxAmmo),0,1,0)
  5246.  
  5247. percent.Text = Ammo.."/".. MaxAmmo
  5248.  
  5249. Gunzerkimg.Size = UDim2.new(1*(GunzerkDuration/1000),0,1,0)
  5250.  
  5251. currentam.Text = CurrentAmmo
  5252.  
  5253. end)
  5254.  
  5255. until SG.Parent == nil
  5256.  
  5257. end))
  5258.  
  5259.  
  5260.  
  5261.  
  5262. coroutine.resume(coroutine.create(function()
  5263.  
  5264. swordholder.Parent = workspace
  5265.  
  5266. for i=0,9999999999 do
  5267.  
  5268. wait()
  5269.  
  5270. if swordholder.Parent==nil then
  5271.  
  5272. wait(0.3)
  5273.  
  5274. swordholder.Parent = workspace
  5275.  
  5276. prt1.Parent = swordholder
  5277.  
  5278. prt2.Parent = swordholder
  5279.  
  5280. prt3.Parent = swordholder
  5281.  
  5282. prt4.Parent = swordholder
  5283.  
  5284. prt5.Parent = swordholder
  5285.  
  5286. prt6.Parent = swordholder
  5287.  
  5288. prt7.Parent = swordholder
  5289.  
  5290. prt8.Parent = swordholder
  5291.  
  5292. prt9.Parent = swordholder
  5293.  
  5294. w1.Parent=prt1
  5295.  
  5296. w2.Parent=prt2
  5297.  
  5298. w3.Parent=prt3
  5299.  
  5300. w4.Parent=prt4
  5301.  
  5302. w5.Parent=prt5
  5303.  
  5304. w6.Parent=prt6
  5305.  
  5306. w7.Parent=prt7
  5307.  
  5308. w8.Parent=prt8
  5309.  
  5310. w9.Parent=prt9
  5311.  
  5312. if Gunzerkering==true then
  5313.  
  5314. newgun.Parent = workspace
  5315.  
  5316. newprt1.Parent = newgun
  5317.  
  5318. newprt2.Parent = newgun
  5319.  
  5320. newprt3.Parent = newgun
  5321.  
  5322. newprt4.Parent = newgun
  5323.  
  5324. newprt5.Parent = newgun
  5325.  
  5326. newprt6.Parent = newgun
  5327.  
  5328. neww1.Parent=newprt1
  5329.  
  5330. neww2.Parent=newprt2
  5331.  
  5332. neww3.Parent=newprt3
  5333.  
  5334. neww4.Parent=newprt4
  5335.  
  5336. neww5.Parent=newprt5
  5337.  
  5338. neww6.Parent=newprt6
  5339.  
  5340. end
  5341.  
  5342. end
  5343.  
  5344. end
  5345.  
  5346. end))
  5347.  
  5348. Character.Humanoid.WalkSpeed = 14
  5349.  
  5350. -- mediafire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement