Advertisement
HaxRoblox

Acid gun

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