Advertisement
idkllal

Untitled

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