Advertisement
frog2128

Untitled

Mar 11th, 2015
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 87.79 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. LeftArm = Character["Left Arm"]
  8. LeftLeg = Character["Left Leg"]
  9. RightArm = Character["Right Arm"]
  10. RightLeg = Character["Right Leg"]
  11. LS = Torso["Left Shoulder"]
  12. LH = Torso["Left Hip"]
  13. RS = Torso["Right Shoulder"]
  14. RH = Torso["Right Hip"]
  15. ModelName = "Weapon"
  16. attack = false
  17. attacktype = 1
  18. Hitdeb = 0
  19. Neck = Torso.Neck
  20. local neckcf0 = Neck.C0
  21.  
  22. ----------------------------
  23. --Customize
  24. Ammo = 50
  25. MaxAmmo = 500
  26. mindamage = 1
  27. maxdamage = 10
  28. crtmaxdamage = 10
  29. reloadspeed=1
  30. attackspeed=1
  31. GunzerkDuration=1000
  32. twobullets=false
  33. omindamage = mindamage
  34. omaxdamage = maxdamage
  35. ocrtmaxdamage = crtmaxdamage
  36. crtrate = 100/5
  37. --100%/critpercentage
  38.  
  39. oblkbrkr = 1
  40. blockbreaker = oblkbrkr
  41. spread = 1
  42. spread = spread*100
  43. Ammoregen = 5
  44. range = 400
  45. rangepower = 50
  46. CurrentAmmo = "Normal"
  47. attackdebounce = false
  48. poisoncounter=0
  49. Gunzerkering=false
  50. firingdebounce1=false
  51. firingdebounce2=false
  52. handlecolor = BrickColor.new("Navy blue")
  53. bcolor = BrickColor.new("White")
  54. gemcolor = BrickColor.new("Black")
  55. ammotrail = BrickColor.new("White")
  56. --ToolName = "Ras Algethi" OLDNAME
  57. ToolName = "Machine Gun"
  58.  
  59. ---------------------------------------------------------------------------------------------------------------------------------------
  60. if Character:findFirstChild("EquippedVal",true) ~= nil then
  61. Character:findFirstChild("EquippedVal",true).Parent = nil
  62. end
  63. ev = Instance.new("BoolValue",Character)
  64. ev.Name = "EquippedVal"
  65. ev.Value = false
  66. if Character:findFirstChild("Block",true) ~= nil then
  67. Character:findFirstChild("Block",true).Parent = nil
  68. end
  69.  
  70.  
  71. --player
  72. player = nil
  73. --welds
  74. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  75. --what anim
  76. anim = "none"
  77. --other var
  78. player = Player
  79. ch = Character
  80. --save shoulders
  81. AoETrue = {}
  82. RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
  83.  
  84.  
  85. function RWFunc()
  86. RW.Part1 = ch["Right Arm"]
  87. RSH.Part1 = nil
  88. end
  89. function LWFunc()
  90. LW.Part1 = ch["Left Arm"]
  91. LSH.Part1 = nil
  92. end
  93. function RWLFunc()
  94. RWL.Part1 = ch["Right Leg"]
  95. RHL.Part1 = nil
  96. ch["Right Leg"].Name = "RightLeg"
  97. RightLeg.CanCollide = false
  98. end
  99.  
  100. function LWLFunc()
  101. LWL.Part1 = ch["Left Leg"]
  102. LHL.Part1 = nil
  103. ch["Left Leg"].Name = "LeftLeg"
  104. LeftLeg.CanCollide = true
  105. end
  106.  
  107. function RWLRem()
  108. RightLeg.Name = "Right Leg"
  109. RWL.Part1 = nil
  110. RHL.Part1 = ch["Right Leg"]
  111. RightLeg.CanCollide = false
  112. end
  113. function LWLRem()
  114. LeftLeg.Name = "Left Leg"
  115. LWL.Part1 = nil
  116. LHL.Part1 = ch["Left Leg"]
  117. LeftLeg.CanCollide = false
  118. end
  119. function RWRem()
  120. RW.Part1 = nil
  121. RSH.Part1 = ch["Right Arm"]
  122. end
  123. function LWRem()
  124. LW.Part1 = nil
  125. LSH.Part1 = ch["Left Arm"]
  126. end
  127.  
  128.  
  129.  
  130.  
  131. if Character:findFirstChild(ModelName,true) ~= nil then
  132. Character:findFirstChild(ModelName,true).Parent = nil
  133. RHL.Part1 = ch["Right Leg"]
  134. LHL.Part1 = ch["Left Leg"]
  135. RSH.Part1 = ch["Right Arm"]
  136. LSH.Part1 = ch["Left Arm"]
  137. end
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144. local swordholder = Instance.new("Model")
  145. swordholder.Name = ModelName
  146. swordholder.Parent = Character
  147.  
  148. --derp
  149. RW.Part0 = ch.Torso
  150. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  151. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  152. RW.Parent = swordholder
  153. --
  154. LW.Part0 = ch.Torso
  155. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  156. LW.C1 = CFrame.new(0, 0.5, 0)
  157. LW.Parent = swordholder
  158. --
  159. RWL.Part0 = ch.Torso
  160. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
  161. RWL.C1 = CFrame.new(0.5, 1, 0)
  162. RWL.Parent = swordholder
  163. --
  164. LWL.Part0 = ch.Torso
  165. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
  166. LWL.C1 = CFrame.new(-0.5, 1, 0)
  167. LWL.Parent = swordholder
  168.  
  169.  
  170.  
  171.  
  172. local msh1 = Instance.new("CylinderMesh")
  173. msh1.Scale = Vector3.new(1,1,1)
  174. local msh2 = Instance.new("BlockMesh")
  175. msh2.Scale = Vector3.new(1,1,1)
  176. local msh3 = Instance.new("CylinderMesh")
  177. msh3.Scale = Vector3.new(1,1,1)
  178. local msh4 = Instance.new("CylinderMesh")
  179. msh4.Scale = Vector3.new(1,1,1)
  180. local msh5 = Instance.new("CylinderMesh")
  181. msh5.Scale = Vector3.new(1,1,1)
  182. local msh6 = Instance.new("BlockMesh")
  183. msh6.Scale = Vector3.new(1,1,1)
  184. local torsc = false
  185. for i,z in pairs(Character:GetChildren()) do
  186. if z.className == "CharacterMesh" then
  187. if z.BodyPart == Enum.BodyPart.Torso then
  188. torsc = true
  189. end
  190. end
  191. end
  192. if torsc then
  193. msh7 = Instance.new("SpecialMesh")
  194. msh7.MeshId = "http://www.roblox.com/asset/?id=3270017"
  195. msh7.Scale = Vector3.new(2.01,1,1.01)
  196. else
  197. msh7 = Instance.new("BlockMesh")
  198. msh7.Scale = Vector3.new(2.01,0.1,1.01)
  199. end
  200. local msh8 = Instance.new("SpecialMesh")
  201. msh8.MeshId = "http://www.roblox.com/asset/?id=3270017"
  202. msh8.Scale = Vector3.new(0.5,0.5,7)
  203. local msh9 = Instance.new("BlockMesh")
  204. msh9.Scale = Vector3.new(1,1,1)
  205.  
  206. local prt1 = Instance.new("Part")
  207. prt1.formFactor = 3
  208. prt1.CanCollide = true
  209. prt1.Name = "Handle"
  210. prt1.Locked = true
  211. prt1.Size = Vector3.new(0.3,1,0.3)
  212. prt1.Parent = swordholder
  213. msh1.Parent = prt1
  214. prt1.BrickColor = handlecolor
  215. local prt2 = Instance.new("Part")
  216. prt2.formFactor = 3
  217. prt2.CanCollide = true
  218. prt2.Name = "Handle2"
  219. prt2.Locked = true
  220. prt2.Size = Vector3.new(0.5,0.2,1.5)
  221. prt2.Parent = swordholder
  222. msh2.Parent = prt2
  223. prt2.BrickColor = handlecolor
  224. local prt3 = Instance.new("Part")
  225. prt3.formFactor = 3
  226. prt3.CanCollide = false
  227. prt3.Name = "Handle3"
  228. prt3.Locked = true
  229. prt3.Size = Vector3.new(0.7,1.2,0.7)
  230. prt3.Parent = swordholder
  231. msh3.Parent = prt3
  232. prt3.BrickColor = bcolor
  233. local prt4 = Instance.new("Part")
  234. prt4.formFactor = 3
  235. prt4.CanCollide = true
  236. prt4.Name = "BackBarrel"
  237. prt4.Locked = true
  238. prt4.Size = Vector3.new(0.5,1.2,0.5)
  239. prt4.Parent = swordholder
  240. msh4.Parent = prt4
  241. prt4.BrickColor = handlecolor
  242. local prt5 = Instance.new("Part")
  243. prt5.formFactor = 3
  244. prt5.CanCollide = true
  245. prt5.Name = "Barrel"
  246. prt5.Locked = true
  247. prt5.Size = Vector3.new(0.4,2.5,0.4)
  248. prt5.Parent = swordholder
  249. msh5.Parent = prt5
  250. prt5.BrickColor = handlecolor
  251. local prt6 = Instance.new("Part")
  252. prt6.formFactor = 3
  253. prt6.CanCollide = false
  254. prt6.Name = "BarrelHandle"
  255. prt6.Locked = true
  256. prt6.Size = Vector3.new(0.3,1,0.3)
  257. prt6.Parent = swordholder
  258. msh6.Parent = prt6
  259. prt6.BrickColor = handlecolor
  260. local prt7 = Instance.new("Part")
  261. prt7.formFactor = 3
  262. prt7.CanCollide = false
  263. prt7.Name = "HolsterStrap"
  264. prt7.Locked = true
  265. prt7.Size = Vector3.new(1,1,1)
  266. prt7.Parent = swordholder
  267. msh7.Parent = prt7
  268. prt7.BrickColor = handlecolor
  269. local prt8 = Instance.new("Part")
  270. prt8.formFactor = 3
  271. prt8.CanCollide = false
  272. prt8.Name = "Holster"
  273. prt8.Locked = true
  274. prt8.Size = Vector3.new(1,1,1)
  275. --prt8.Parent = swordholder
  276. msh8.Parent = prt8
  277. prt8.BrickColor = handlecolor
  278. local prt9 = Instance.new("Part")
  279. prt9.formFactor = 3
  280. prt9.CanCollide = false
  281. prt9.Name = "AmmoHolster"
  282. prt9.Locked = true
  283. prt9.Size = Vector3.new(0.2,1,0.7)
  284. prt9.Parent = swordholder
  285. msh9.Parent = prt9
  286. prt9.BrickColor = handlecolor
  287.  
  288. local w1 = Instance.new("Weld")
  289. w1.Parent = prt1
  290. w1.Part0 = prt1
  291. w1.Name = "Weld1"
  292. local w2 = Instance.new("Weld")
  293. w2.Parent = prt1
  294. w2.Part0 = prt2
  295. w2.Part1 = prt1
  296. w2.Name = "Weld2"
  297. w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  298. w2.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0.6,0.5)
  299. local w3 = Instance.new("Weld")
  300. w3.Parent = prt1
  301. w3.Part0 = prt3
  302. w3.Part1 = prt2
  303. w3.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  304. w3.C0 = CFrame.Angles(math.rad(90+45), 0, 0) * CFrame.new(0, 0.25,-0.5)
  305. local w4 = Instance.new("Weld")
  306. w4.Parent = prt1
  307. w4.Part0 = prt4
  308. w4.Part1 = prt2
  309. w4.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  310. w4.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,0.5)
  311. local w5 = Instance.new("Weld")
  312. w5.Parent = prt1
  313. w5.Part0 = prt5
  314. w5.Part1 = prt3
  315. w5.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  316. w5.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 1.5,0)
  317. local w6 = Instance.new("Weld")
  318. w6.Parent = prt1
  319. w6.Part0 = prt6
  320. w6.Part1 = prt3
  321. w6.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  322. w6.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 1.5,-0.5)
  323. local w7 = Instance.new("Weld")
  324. w7.Parent = prt1
  325. w7.Part0 = prt7
  326. w7.Part1 = Torso
  327. w7.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  328. if torsc then
  329. w7.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 1,0)
  330. else
  331. w7.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(0, 1,0)
  332. end
  333. local w8 = Instance.new("Weld")
  334. w8.Parent = prt8
  335. w8.Part0 = prt8
  336. w8.Part1 = Torso
  337. w8.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  338. w8.C0 = CFrame.Angles(math.rad(45), 0, 0) * CFrame.new(-1.1, 1-0.25,0)
  339. local w9 = Instance.new("Weld")
  340. w9.Parent = prt9
  341. w9.Part0 = prt9
  342. w9.Part1 = Torso
  343. w9.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  344. w9.C0 = CFrame.Angles(math.rad(45), 0, 0) * CFrame.new(1, 0.75,-0.5)
  345.  
  346. newgun=swordholder:Clone()
  347. newgun.Name="WeaponClone"
  348. newprt1=newgun.Handle
  349. newprt2=newgun.Handle2
  350. newprt3=newgun.Handle3
  351. newprt4=newgun.BackBarrel
  352. newprt5=newgun.Barrel
  353. newprt6=newgun.BarrelHandle
  354. newgun.HolsterStrap:Remove()
  355. --newgun.Holster:Remove()
  356. newgun.AmmoHolster:Remove()
  357. newgun:BreakJoints()
  358.  
  359. local neww1 = Instance.new("Weld")
  360. neww1.Parent = newprt1
  361. neww1.Part0 = newprt1
  362. local neww2 = Instance.new("Weld")
  363. neww2.Parent = newprt2
  364. neww2.Part0 = newprt2
  365. neww2.Part1 = newprt1
  366. neww2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  367. neww2.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0.6,0.5)
  368. local neww3 = Instance.new("Weld")
  369. neww3.Parent = newprt3
  370. neww3.Part0 = newprt3
  371. neww3.Part1 = newprt2
  372. neww3.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  373. neww3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  374. local neww4 = Instance.new("Weld")
  375. neww4.Parent = newprt4
  376. neww4.Part0 = newprt4
  377. neww4.Part1 = newprt2
  378. neww4.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  379. neww4.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,0.5)
  380. local neww5 = Instance.new("Weld")
  381. neww5.Parent = newprt5
  382. neww5.Part0 = newprt5
  383. neww5.Part1 = newprt3
  384. neww5.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  385. neww5.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 1.5,0)
  386. local neww6 = Instance.new("Weld")
  387. neww6.Parent = newprt6
  388. neww6.Part0 = newprt6
  389. neww6.Part1 = newprt3
  390. neww6.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  391. neww6.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 1.5,-0.5)
  392.  
  393.  
  394. local RAP = Instance.new("Part")
  395. RAP.formFactor = 0
  396. RAP.CanCollide = false
  397. RAP.Name = "RAPart"
  398. RAP.Locked = true
  399. RAP.Size = Vector3.new(1,1,1)
  400. RAP.Parent = swordholder
  401. RAP.Transparency = 1
  402. local w = Instance.new("Weld")
  403. w.Parent = RAP
  404. w.Part0 = RAP
  405. w.Part1 = RightArm
  406. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  407. w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0)
  408.  
  409.  
  410. saydebounce=false
  411. function Say(type)
  412. --[[if saydebounce==false then
  413. saydebounce=true
  414. if type=="Gunzerking" then
  415. Sayings={"TIME TO OVERCOMPENSATE!","DUAL WIELD, BABY!","DOUBLE THE FUN!","THIS IS RIDICULOUS!","AHAHAHAH, YOU'RE ALL GONNA DIE!"}
  416. elseif type=="KilledGunzerk" then
  417. Sayings={"THIS IS RIDICULOUS!","GET OFF MY PLANE!","Smile, son of a...!","WAHAHAHAHAH!","DIE, BITCHES!"}
  418. elseif type=="NoAmmo" then
  419. Sayings={"Bullets schmullets.","I need more gun!","Damn! Out of ammo!"}
  420. elseif type=="Killed" then
  421. Sayings={"Hell yeah!","It's been revoked!","Scream for me!","Get off my plane!"}
  422. elseif type=="Shooting" then
  423. Sayings={"BULLETS FOR EVERYONE!","NEVER ENDING FIRE!","AHAHAHAHAH!","DIE ALREADY!","NOT ENOUGH BULLETS!"}
  424. end
  425. if math.random(1,3)==1 then
  426. game:GetService("Chat"):Chat(Character,Sayings[math.random(1,#Sayings)],2)
  427. end
  428. coroutine.resume(coroutine.create(function()
  429. wait(1)
  430. saydebounce=false
  431. end))
  432. end]]
  433. end
  434.  
  435. function unequipweld()
  436. w1.Part1 = Torso
  437. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), math.rad(0)) * CFrame.new(0, 0,0)
  438. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180),math.rad(-0), math.rad(0)) * CFrame.new(-1.15, 1, -0.6)
  439. end
  440.  
  441. unequipweld()
  442.  
  443.  
  444.  
  445. function equipweld()
  446. w1.Part0 = prt1
  447. w1.Part1 = RAP
  448. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  449. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  450. end
  451.  
  452. so = function(id,par,vol,pit)
  453. coroutine.resume(coroutine.create(function()
  454. local sou = Instance.new("Sound",par or workspace)
  455. sou.Volume=vol
  456. sou.Pitch=pit or 1
  457. sou.SoundId=id
  458. wait()
  459. sou:play()
  460. wait(6)
  461. sou:Remove()
  462. end))
  463. end
  464.  
  465. function ss(parent,p) --Slash
  466. so("rbxasset://sounds\\swordslash.wav",parent,.7,p)
  467. --[[local SlashSound = it("Sound")
  468. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  469. SlashSound.Parent = parent
  470. SlashSound.Volume = .7
  471. SlashSound.Pitch = p
  472. SlashSound.PlayOnRemove = true
  473. coroutine.resume(coroutine.create(function()
  474. wait()
  475. SlashSound.Parent = nil
  476. end))]]
  477. end
  478. function uss(parent,p) --unsheath
  479. so("rbxasset://sounds\\unsheath.wav",parent,.7,p)
  480. --[[local SlashSound = it("Sound")
  481. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  482. SlashSound.Parent = parent
  483. SlashSound.Volume = .7
  484. SlashSound.Pitch = p
  485. SlashSound.PlayOnRemove = true
  486. coroutine.resume(coroutine.create(function()
  487. wait()
  488. SlashSound.Parent = nil
  489. end))]]
  490. end
  491. function cs(parent,p) --Magic Charge
  492. so("http://www.roblox.com/asset/?id=2101137",parent,.7,p)
  493. --[[local SlashSound = it("Sound")
  494. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  495. SlashSound.Parent = parent
  496. SlashSound.Volume = .7
  497. SlashSound.Pitch = p
  498. SlashSound.PlayOnRemove = true
  499. coroutine.resume(coroutine.create(function()
  500. wait()
  501. SlashSound.Parent = nil
  502. end))]]
  503. end
  504. function ls(parent,p) --Lazer Sound
  505. so("http://www.roblox.com/asset?id=1369158",parent,.7,p)
  506. --[[local SlashSound = it("Sound")
  507. SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158"
  508. SlashSound.Parent = parent
  509. SlashSound.Volume = .7
  510. SlashSound.Pitch = p
  511. SlashSound.PlayOnRemove = true
  512. coroutine.resume(coroutine.create(function()
  513. wait()
  514. SlashSound.Parent = nil
  515. end))]]
  516. end
  517. function ts(parent,p)
  518. so("http://www.roblox.com/asset/?id=12222030",parent,.7,p)
  519. --[[local SlashSound = it("Sound")
  520. SlashSound.SoundId = "http://www.roblox.com/asset/?id=12222030"
  521. SlashSound.Parent = parent
  522. SlashSound.Volume = .7
  523. SlashSound.Pitch = p
  524. SlashSound.PlayOnRemove = true
  525. coroutine.resume(coroutine.create(function()
  526. wait()
  527. SlashSound.Parent = nil
  528. end))]]
  529. end
  530. function fs(parent,p) --Fire Sound
  531. so("http://www.roblox.com/asset/?id=2697431",parent,.7,p)
  532. --[[local SlashSound = it("Sound")
  533. SlashSound.SoundId = "http://www.roblox.com/asset/?id=31758982"
  534. SlashSound.Parent = parent
  535. SlashSound.Volume = .7
  536. SlashSound.Pitch = p
  537. SlashSound.PlayOnRemove = true
  538. coroutine.resume(coroutine.create(function()
  539. wait()
  540. SlashSound.Parent = nil
  541. end))]]
  542. end
  543. function ms(parent,p) --Metal Cling Sound
  544. so("rbxasset://sounds\\metal.ogg",parent,1,p)
  545. --[[local SlashSound = it("Sound")
  546. SlashSound.SoundId = "rbxasset://sounds\\metal.ogg"
  547. SlashSound.Parent = parent
  548. SlashSound.Volume = 5
  549. SlashSound.Pitch = p
  550. SlashSound.PlayOnRemove = true
  551. coroutine.resume(coroutine.create(function()
  552. wait()
  553. SlashSound.Parent = nil
  554. end))]]
  555. end
  556. function bs(parent,p) --Berserk Sound
  557. so("http://www.roblox.com/asset/?id=2676305",parent,1,p)
  558. --[[local SlashSound = it("Sound")
  559. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2676305"
  560. SlashSound.Parent = parent
  561. SlashSound.Volume = 1
  562. SlashSound.Pitch = p
  563. SlashSound.PlayOnRemove = true
  564. coroutine.resume(coroutine.create(function()
  565. wait()
  566. SlashSound.Parent = nil
  567. end))]]
  568. end
  569. function hs(parent,p) --Ammo Hit Sound
  570. --ms(parent,p)
  571. end
  572. function as(parent,p) --Gun Shoot Sound
  573. so("http://roblox.com/asset/?id=10209257",parent,0.5,p)
  574. --[[local SlashSound = it("Sound")
  575. SlashSound.SoundId = "http://roblox.com/asset/?id=10209257"
  576. SlashSound.Parent = parent
  577. SlashSound.Volume = 0.5
  578. SlashSound.Pitch = p
  579. SlashSound.PlayOnRemove = true
  580. coroutine.resume(coroutine.create(function()
  581. wait()
  582. SlashSound.Parent = nil
  583. end))]]
  584. end
  585. function as2(parent,p) --Gun Shoot Sound 2
  586. so("http://roblox.com/asset/?id=97848313",parent,0.7,p)
  587. --[[local SlashSound = it("Sound")
  588. SlashSound.SoundId = "http://roblox.com/asset/?id=97848313"
  589. SlashSound.Parent = parent
  590. SlashSound.Volume = 0.7
  591. SlashSound.Pitch = p
  592. SlashSound.PlayOnRemove = true
  593. coroutine.resume(coroutine.create(function()
  594. wait()
  595. SlashSound.Parent = nil
  596. end))]]
  597. end
  598. function ars(parent,p) --Gun Reload Sound
  599. so("http://roblox.com/asset/?id=10209869",parent,1,p)
  600. --[[local SlashSound = it("Sound")
  601. SlashSound.SoundId = "http://roblox.com/asset/?id=10209869"
  602. SlashSound.Parent = parent
  603. SlashSound.Volume = 1
  604. SlashSound.Pitch = p
  605. SlashSound.PlayOnRemove = true
  606. coroutine.resume(coroutine.create(function()
  607. wait()
  608. SlashSound.Parent = nil
  609. end))]]
  610. end
  611. --
  612. --
  613.  
  614. function returndmg()
  615. mindamage = omindamage
  616. maxdamage = omaxdamage
  617. crtmaxdamage = ocrtmaxdamage
  618. end
  619.  
  620. function subdmg(sub)
  621. mindamage = omindamage - sub
  622. maxdamage = omaxdamage - sub
  623. crtmaxdamage = ocrtmaxdamage - sub
  624. end
  625.  
  626. function prcntdmg(sub)
  627. mindamage = math.floor(omindamage - (omindamage*(sub/100)))
  628. maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100)))
  629. crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100)))
  630. end
  631.  
  632. function tagHumanoid(humanoid, player)
  633. local creator_tag = Instance.new("ObjectValue")
  634. creator_tag.Value = player
  635. creator_tag.Name = "creator"
  636. creator_tag.Parent = humanoid
  637. end
  638.  
  639. function untagHumanoid(humanoid)
  640. if humanoid ~= nil then
  641. local tag = humanoid:findFirstChild("creator")
  642. if tag ~= nil then
  643. tag.Parent = nil
  644. end
  645. end
  646. end
  647.  
  648. local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  649. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  650. end
  651.  
  652.  
  653.  
  654. function hideanim()
  655. attack = true
  656. ars(Head,0.85)
  657. for i = 0.25 ,1 ,0.25 do
  658. wait()
  659. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  660. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-15*i), 0, 0)
  661. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(25+10*i))
  662. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  663. w3.C0 = CFrame.Angles(math.rad(90+25*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  664. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5*i),0,math.rad(0))
  665. end
  666. for i = 0.1 ,1 ,0.1 do
  667. wait()
  668. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  669. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(10-10*i), 0, 0)
  670. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(35+10*i))
  671. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  672. w3.C0 = CFrame.Angles(math.rad(115+20*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  673. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5-5*i),0,math.rad(0))
  674. end
  675. for i = 0.1 ,1 ,0.1 do
  676. wait()
  677. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90-130*i),math.rad(0),math.rad(-60+60*i))
  678. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  679. 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))
  680. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  681. w3.C0 = CFrame.Angles(math.rad(135), 0, 0) * CFrame.new(0, 0.25,-0.5)
  682. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10+40*i),0,math.rad(-30*i))
  683. end
  684. unequipweld()
  685. for i = 0.1 ,1 ,0.1 do
  686. wait()
  687. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+20*i),math.rad(0),math.rad(0))
  688. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  689. 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))
  690. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  691. w3.C0 = CFrame.Angles(math.rad(135), 0, 0) * CFrame.new(0, 0.25,-0.5)
  692. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(30-30*i),0,math.rad(-30+30*i))
  693. end
  694. Neck.C0 = neckcf0
  695. RWRem()
  696. LWRem()
  697. attack = false
  698. end
  699.  
  700.  
  701. function equipanim()
  702. attack = true
  703. RWFunc()
  704. w3.C0 = CFrame.Angles(math.rad(135), 0, 0) * CFrame.new(0, 0.25,-0.5)
  705. for i = 0.1 ,1 ,0.1 do
  706. wait()
  707. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20*i),math.rad(0),math.rad(0))
  708. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  709. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  710. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  711. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(30*i),0,math.rad(-30*i))
  712. end
  713. equipweld()
  714. ars(Head,1)
  715. for i = 0.1 ,1 ,0.1 do
  716. wait()
  717. RW.C0 = CFrame.new(1.5, 0.5, -0.25*i) * CFrame.Angles(math.rad(-20+130*i),math.rad(0),math.rad(0))
  718. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  719. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  720. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  721. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(30-35*i),0,math.rad(-30))
  722. end
  723. LWFunc()
  724. for i = 0.1 ,1 ,0.1 do
  725. wait()
  726. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(110-20*i),math.rad(0),math.rad(-60*i))
  727. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25*i), 0, 0)
  728. LW.C0 = CFrame.new(-1.5, 0.5, -0.5*i) * CFrame.Angles(math.rad(40*i),math.rad(0),math.rad(25*i))
  729. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  730. w3.C0 = CFrame.Angles(math.rad(135-45*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  731. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+5*i),0,math.rad(-30+30*i))
  732. end
  733. Neck.C0 = neckcf0
  734. attack = false
  735. end
  736.  
  737.  
  738. function faketors()
  739. local T = Instance.new("Part")
  740. T.formFactor = 0
  741. T.CanCollide = false
  742. T.Name = "FakeTorso"
  743. T.Locked = true
  744. T.Size = Torso.Size
  745. T.Parent = swordholder
  746. T.Transparency = 1
  747. T.BrickColor = Torso.BrickColor
  748. for i,z in pairs(Character:GetChildren()) do
  749. if z.className == "CharacterMesh" then
  750. if z.BodyPart == Enum.BodyPart.Torso then
  751. local SM = Instance.new("SpecialMesh",T)
  752. SM.MeshId = "http://www.roblox.com/asset/?id=" .. z.MeshId
  753. if z.BaseTextureId ~= 0 then
  754. SM.TextureId = z.BaseTextureId
  755. elseif z.OverlayTextureId ~= 0 then
  756. SM.TextureId = z.OverlayTextureId
  757. else
  758. SM.TextureId = ""
  759. end
  760. end
  761. end
  762. end
  763. local wt = Instance.new("Weld")
  764. wt.Parent = T
  765. wt.Part0 = T
  766. wt.Part1 = Torso
  767. RW.Part0 = T
  768. LW.Part0 = T
  769. T.Transparency = 0
  770. Torso.Transparency = 1
  771. RHL.Part0 = T
  772. LHL.Part0 = T
  773. return wt,T
  774. end
  775.  
  776.  
  777. if (script.Parent.className ~= "HopperBin") then
  778. Tool = Instance.new("HopperBin")
  779. Tool.Parent = Backpack
  780. Tool.Name = ToolName
  781. script.Parent = Tool
  782. end
  783. Bin = script.Parent
  784.  
  785. function damagesplat(dmg,hit,crit,blocked)
  786. local mo = Instance.new("Model")
  787. mo.Name = dmg
  788. local pa = Instance.new("Part",mo)
  789. pa.formFactor = 3
  790. pa.Size = Vector3.new(0.8,0.3,0.8)
  791. if crit then
  792. pa.BrickColor = BrickColor.new("Bright yellow")
  793. elseif not crit then
  794. pa.BrickColor = BrickColor.new("Bright red")
  795. end
  796. if blocked then pa.BrickColor = BrickColor.new("Bright blue") end
  797. pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0)
  798. pa.Name = "Head"
  799. local hah = Instance.new("Humanoid")
  800. hah.Parent = mo
  801. hah.MaxHealth = 0
  802. hah.Health = 0
  803. local bp = Instance.new("BodyPosition")
  804. bp.P = 14000
  805. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  806. bp.position = hit.Position + Vector3.new(0, 5, 0)
  807. coroutine.resume(coroutine.create(function()
  808. wait()
  809. mo.Parent = workspace
  810. bp.Parent = pa
  811. wait(1.4)
  812. mo:remove()
  813. end))
  814. return pa
  815. end
  816.  
  817. function damage(hum,dmg,critornot)
  818. local pa = damagesplat(dmg,hum.Torso,critornot)
  819. hum:TakeDamage(dmg)
  820. coroutine.resume(coroutine.create(function()
  821. tagHumanoid(hum,Player)
  822. wait(1)
  823. untagHumanoid(hum)
  824. end))
  825. return pa
  826. end
  827.  
  828. function AddAmmo(add)
  829. Ammo = Ammo + add
  830. if Ammo > MaxAmmo then
  831. Ammo = MaxAmmo
  832. end
  833. end
  834.  
  835. Enemy=nil
  836. function ADmg(humm,hit,pos)
  837. if Enemy==nil then
  838. Enemy=hit.Parent
  839. end
  840. coroutine.resume(coroutine.create(function()
  841. wait(1)
  842. print(Enemy.Humanoid.Health)
  843. if Enemy.Humanoid.Health==0 then
  844. if Gunzerkering==false then
  845. Say("Killed")
  846. else
  847. Say("KilledGunzerk")
  848. end
  849. end
  850. if attack==false and Enemy~=nil then
  851. Did=HP-Enemy.Humanoid.Health
  852. print("Did "..Did.." Damage")
  853. Enemy=nil
  854. HP=0
  855. end
  856. end))
  857. if CurrentAmmo == "Normal" then
  858. if humm.Parent:findFirstChild("Block") ~= nil then
  859. if humm.Parent.Block.Value then
  860. damagesplat(0,humm.Torso,false,true)
  861. return
  862. end
  863. end
  864. prcntdmg(-25)
  865. if critrandomizer ~= 1 then
  866. local rndmdamage = math.random(mindamage,maxdamage)
  867. damage(humm,rndmdamage,false)
  868. elseif critrandomizer == 1 then
  869. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  870. damage(humm,rndmdamage,true)
  871. end
  872.  
  873. elseif CurrentAmmo == "Poison" then
  874.  
  875. if humm.Parent:findFirstChild("Block") ~= nil then
  876. if humm.Parent.Block.Value then
  877. damagesplat(0,humm.Torso,false,true)
  878. return
  879. end
  880. end
  881. prcntdmg(15)
  882. if critrandomizer ~= 1 then
  883. local rndmdamage = math.random(mindamage,maxdamage)
  884. damage(humm,rndmdamage,false)
  885. elseif critrandomizer == 1 then
  886. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  887. damage(humm,rndmdamage,true)
  888. end
  889. if poisoncounter==1 then
  890. local poisoncount = math.random(2,10)
  891. coroutine.resume(coroutine.create(function()
  892. repeat
  893. wait(1.5)
  894. poisoncount = poisoncount - 1
  895. local rndmdamage = math.floor(math.random(1,5)/2)
  896. local pa = damage(humm,rndmdamage,false)
  897. pa.BrickColor = BrickColor.new("Alder")
  898. until poisoncount <= 0
  899. end))
  900. end
  901. elseif CurrentAmmo == "Explosion" then
  902.  
  903. if humm.Parent:findFirstChild("Block") ~= nil then
  904. if humm.Parent.Block.Value then
  905. damagesplat(0,humm.Torso,false,true)
  906. return
  907. end
  908. end
  909. prcntdmg(0)
  910. if critrandomizer ~= 1 then
  911. local rndmdamage = math.random(mindamage,maxdamage)
  912. damage(humm,rndmdamage,false)
  913. elseif critrandomizer == 1 then
  914. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  915. damage(humm,rndmdamage,true)
  916. end
  917. elseif CurrentAmmo == "Herpity" then
  918.  
  919. if humm.Parent:findFirstChild("Block") ~= nil then
  920. if humm.Parent.Block.Value then
  921. damagesplat(0,humm.Torso,false,true)
  922. return
  923. end
  924. end
  925. prcntdmg(0)
  926. if critrandomizer ~= 1 then
  927. local rndmdamage = math.random(mindamage,maxdamage)
  928. damage(humm,rndmdamage,false)
  929. elseif critrandomizer == 1 then
  930. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  931. damage(humm,rndmdamage,true)
  932. end
  933. if humm.Parent:findFirstChild("Torso")~=nil then
  934. humm.Parent.Torso.RotVelocity=Vector3.new(math.random(-50000,50000),math.random(-50000,50000),math.random(-50000,50000))
  935. r=it("BodyAngularVelocity")
  936. r.P=3000
  937. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  938. r.angularvelocity=vt(math.random(-500,500),math.random(-500,500),math.random(-500,500))
  939. r.Parent=humm.Parent.Torso
  940. coroutine.resume(coroutine.create(function()
  941. for i=1,5000000000000 do
  942. wait()
  943. r.angularvelocity=vt(math.random(-500,500),math.random(-500,500),math.random(-500,500))
  944. end
  945. r.Parent=nil
  946. end))
  947. end
  948. elseif CurrentAmmo == "Bees" then
  949.  
  950. if humm.Parent:findFirstChild("Block") ~= nil then
  951. if humm.Parent.Block.Value then
  952. damagesplat(0,humm.Torso,false,true)
  953. return
  954. end
  955. end
  956. prcntdmg(0)
  957. if critrandomizer ~= 1 then
  958. local rndmdamage = math.random(mindamage,maxdamage)
  959. damage(humm,rndmdamage,false)
  960. elseif critrandomizer == 1 then
  961. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  962. damage(humm,rndmdamage,true)
  963. end
  964. if humm.Parent:findFirstChild("Torso")~=nil then
  965. humm.Parent.Torso.RotVelocity=Vector3.new(math.random(-360,360),math.random(-360,360),math.random(-360,360))
  966. coroutine.resume(coroutine.create(function()
  967. victim=humm.Parent
  968. d=true
  969. for i=1, 40 do
  970. m=Instance.new("Model")
  971. m.Name="BEE"
  972. p=Instance.new("Part")
  973. p.CanCollide=false
  974. p.Name="Head"
  975. p.Parent=m
  976. mz=Instance.new("SpecialMesh")
  977. mz.Scale=Vector3.new(.225,.25,.225)
  978. p.BrickColor=BrickColor.new("Bright yellow")
  979. p.Size=Vector3.new(1,1,1)
  980. p.CFrame=victim.Torso.CFrame+Vector3.new(math.random(-10,10),50,math.random(-10,10))
  981. mz.Parent=p
  982. m.Parent=workspace
  983. b=Instance.new("BodyPosition")
  984. b.P=8000
  985. b.D=200
  986. b.maxForce=Vector3.new(5000,5000,5000)*50000000
  987. b.position=p.Position
  988. b.Parent=p
  989. coroutine.resume(coroutine.create(function(f)
  990. while f.Parent~=nil do
  991. 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)
  992. wait(.1)
  993. end
  994. end),p)
  995. m.Parent=victim
  996. p.Touched:connect(function(hit)
  997. if hit.Parent~=nil then
  998. if hit.Parent==victim then
  999. if d==true then
  1000. d=false
  1001. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-15
  1002. hit.Parent.Torso.Velocity=Vector3.new(math.random(-5,5)/5,math.random(-5,5),math.random(-5,5)/5)
  1003. 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)
  1004. hit.Parent.Humanoid.Jump=true
  1005. wait(math.random(10,20)/5)
  1006. d=true
  1007. end
  1008. end
  1009. end
  1010. end)
  1011. wait()
  1012. end
  1013. end))
  1014. end
  1015. elseif CurrentAmmo == "derp" then
  1016.  
  1017. if humm.Parent:findFirstChild("Block") ~= nil then
  1018. if humm.Parent.Block.Value then
  1019. damagesplat(0,humm.Torso,false,true)
  1020. return
  1021. end
  1022. end
  1023. prcntdmg(0)
  1024. if critrandomizer ~= 1 then
  1025. local rndmdamage = math.random(mindamage,maxdamage)
  1026. damage(humm,rndmdamage,false)
  1027. elseif critrandomizer == 1 then
  1028. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1029. damage(humm,rndmdamage,true)
  1030. end
  1031. if humm.Parent:findFirstChild("Torso")~=nil then
  1032. coroutine.resume(coroutine.create(function()
  1033. Headt=humm.Parent.Torso.Neck
  1034. LeftArmt=humm.Parent.Torso["Left Shoulder"]
  1035. RightArmt=humm.Parent.Torso["Right Shoulder"]
  1036. LeftLegt=humm.Parent.Torso["Left Hip"]
  1037. RightLegt=humm.Parent.Torso["Right Hip"]
  1038. 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"}
  1039. 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)])..""
  1040. coroutine.resume(coroutine.create(function()
  1041. while true do
  1042. wait()
  1043. Headt.C0=Headt.C0*CFrame.fromEulerAnglesXYZ(0,0,0.5)
  1044. LeftArmt.C0=LeftArmt.C0*CFrame.fromEulerAnglesXYZ(0,0,0.5)
  1045. RightArmt.C0=RightArmt.C0*CFrame.fromEulerAnglesXYZ(0,0,0.5)
  1046. LeftLegt.C0=LeftLegt.C0*CFrame.fromEulerAnglesXYZ(0,0,0.5)
  1047. RightLegt.C0=RightLegt.C0*CFrame.fromEulerAnglesXYZ(0,0,0.5)
  1048. humm.Parent.Humanoid.PlatformStand=true
  1049. humm.Parent.Torso.RotVelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1050. 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)])..""
  1051. game:GetService("Chat"):Chat(humm.Parent,pootisss,1)
  1052. end
  1053. end))
  1054. end))
  1055. end
  1056. elseif CurrentAmmo == "Troll" then
  1057.  
  1058. if humm.Parent:findFirstChild("Block") ~= nil then
  1059. if humm.Parent.Block.Value then
  1060. damagesplat(0,humm.Torso,false,true)
  1061. return
  1062. end
  1063. end
  1064. prcntdmg(0)
  1065. if critrandomizer ~= 1 then
  1066. local rndmdamage = math.random(mindamage,maxdamage)
  1067. damage(humm,rndmdamage,false)
  1068. elseif critrandomizer == 1 then
  1069. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1070. damage(humm,rndmdamage,true)
  1071. end
  1072. if humm.Parent:findFirstChild("Torso")~=nil then
  1073. coroutine.resume(coroutine.create(function()
  1074. c=humm.Parent:children()
  1075. for i=1,#c do
  1076. m=Instance.new("BlockMesh")
  1077. m.Parent=c[i]
  1078. m.Scale=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1079. coroutine.resume(coroutine.create(function(mesh)
  1080. while true do
  1081. wait()
  1082. mesh.Scale=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1083. end
  1084. end),m)
  1085. end
  1086. end))
  1087. end
  1088. elseif CurrentAmmo == "suparKnockback" then
  1089. if humm.Parent:findFirstChild("Block") ~= nil then
  1090. if humm.Parent.Block.Value then
  1091. damagesplat(0,humm.Torso,false,true)
  1092. return
  1093. end
  1094. end
  1095. prcntdmg(25)
  1096. if critrandomizer ~= 1 then
  1097. local rndmdamage = math.random(mindamage,maxdamage)
  1098. damage(humm,rndmdamage,false)
  1099. elseif critrandomizer == 1 then
  1100. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1101. damage(humm,rndmdamage,true)
  1102. end
  1103. local vel = Instance.new("BodyVelocity",humm.Torso)
  1104. vel.maxForce = Vector3.new(1,1,1) * math.huge
  1105. vel.P = vel.P * 5
  1106. vel.velocity = Vector3.new(0,1,0) + CFrame.new(Torso.Position,humm.Torso.Position).lookVector * 1000
  1107. coroutine.resume(coroutine.create(function()
  1108. wait() wait() wait() wait()
  1109. vel.Parent=nil
  1110. end))
  1111. elseif CurrentAmmo == "Knockback" then
  1112. if humm.Parent:findFirstChild("Block") ~= nil then
  1113. if humm.Parent.Block.Value then
  1114. damagesplat(0,humm.Torso,false,true)
  1115. return
  1116. end
  1117. end
  1118. prcntdmg(0)
  1119. if critrandomizer ~= 1 then
  1120. local rndmdamage = math.random(mindamage,maxdamage)
  1121. damage(humm,rndmdamage,false)
  1122. elseif critrandomizer == 1 then
  1123. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1124. damage(humm,rndmdamage,true)
  1125. end
  1126. local vel = Instance.new("BodyVelocity",humm.Torso)
  1127. vel.maxForce = Vector3.new(1,1,1) * math.huge
  1128. vel.P = vel.P * 5
  1129. vel.velocity = Vector3.new(0,1,0) + CFrame.new(Torso.Position,humm.Torso.Position).lookVector * 10
  1130. coroutine.resume(coroutine.create(function()
  1131. wait() wait() wait() wait()
  1132. vel.Parent=nil
  1133. end))
  1134. returndmg()
  1135. end
  1136. end
  1137.  
  1138. function OT(hit) --Normal Damage
  1139. if Hitdeb == 1 then return end
  1140. if hit.Parent == nil then return end
  1141. local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
  1142. if hum.Health <= 0 then return end
  1143. if hit.Parent:findFirstChild("Block") ~= nil then
  1144. if hit.Parent.Block.Value then
  1145. damagesplat(0,hum.Torso,false,true)
  1146. Hitdeb = 1
  1147. if hit.Parent.Block:findFirstChild("BlockPower") ~= nil then
  1148. if hit.Parent.Block.BlockPower.Value <= 1 then
  1149. hit.Parent.Block.Value = false
  1150. elseif hit.Parent.Block.BlockPower.Value > 1 then
  1151. local critrandomizer = math.random(crtrate)
  1152. if critrandomizer ~= 1 then
  1153. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker
  1154. elseif critrandomizer == 1 then
  1155. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker + 2
  1156. end
  1157. end
  1158. end
  1159. return end end
  1160. local critrandomizer = math.random(crtrate)
  1161. if critrandomizer ~= 1 then
  1162. local rndmdamage = math.random(mindamage,maxdamage)
  1163. damage(hum,rndmdamage,false)
  1164. elseif critrandomizer == 1 then
  1165. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1166. damage(hum,rndmdamage,true)
  1167. end
  1168. Hitdeb = 1
  1169. end
  1170. end
  1171.  
  1172.  
  1173. function AoE(p,magnitude)
  1174. local c = game.Workspace:GetChildren();
  1175. for i = 1, #c do
  1176. local hum = c[i]:findFirstChild("Humanoid")
  1177. if hum ~= nil and hum.Health ~= 0 then
  1178. local head = c[i]:findFirstChild("Head");
  1179. if head ~= nil then
  1180. local mag = (head.Position - p).magnitude;
  1181. if mag <= magnitude and c[i].Name ~= Character.Name then
  1182. local foundd = false
  1183. for ii = 1 , #AoETrue do
  1184. if AoETrue[ii] == c[i].Name then
  1185.  
  1186. foundd = true
  1187. end
  1188. end
  1189. if foundd then
  1190.  
  1191. end
  1192. --
  1193. if not foundd then
  1194. local critrandomizer = math.random(crtrate)
  1195. if critrandomizer ~= 1 then
  1196. local rndmdamage = math.random(mindamage,maxdamage)
  1197. damage(hum,rndmdamage,false)
  1198. elseif critrandomizer == 1 then
  1199. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1200. damage(hum,rndmdamage,true)
  1201. end
  1202. table.insert(AoETrue,c[i].Name)
  1203. end
  1204. end
  1205. end
  1206. end
  1207. end
  1208. for ii = 1 , #AoETrue do
  1209. table.remove(AoETrue,#AoETrue)
  1210. end
  1211. end
  1212.  
  1213. --
  1214.  
  1215.  
  1216. --
  1217.  
  1218. function effect(Color,Ref,LP,P1)
  1219. local effectsmsh = Instance.new("BlockMesh")
  1220. effectsmsh.Scale = Vector3.new(1,1,1)
  1221. effectsmsh.Name = "Mesh"
  1222. local effectsg = Instance.new("Part")
  1223. effectsg.formFactor = 3
  1224. effectsg.CanCollide = false
  1225. effectsg.Name = "Eff"
  1226. effectsg.Locked = true
  1227. effectsg.Anchored = true
  1228. effectsg.Size = Vector3.new(0.2,1,0.2)
  1229. effectsg.Parent = swordholder
  1230. effectsmsh.Parent = effectsg
  1231. effectsg.BrickColor = BrickColor.new(Color)
  1232. effectsg.Reflectance = Ref
  1233. local point1 = P1
  1234. local mg = (LP.p - point1.p).magnitude
  1235. effectsg.Size = Vector3.new(0.2,mg,0.2)
  1236. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1237. coroutine.resume(coroutine.create(function()
  1238. for i = 0 , 1 , 0.1 do
  1239. wait()
  1240. effectsg.Transparency = 1*i
  1241. effectsmsh.Scale = Vector3.new(1-1*i,1,1-1*i)
  1242. end
  1243. wait()
  1244. effectsg.Parent = nil
  1245. end))
  1246. end
  1247. --
  1248.  
  1249.  
  1250. con = nil
  1251.  
  1252.  
  1253. function dmgcnnct()
  1254. if con ~= nil then
  1255. con:disconnect()
  1256. Hitdeb = 0
  1257. end
  1258. con = prt11.Touched:connect(OT)
  1259. end
  1260.  
  1261. function dmgdc()
  1262. if con ~= nil then
  1263. con:disconnect()
  1264. Hitdeb = 0
  1265. end
  1266. end
  1267.  
  1268. function rptddmg(value,des,inc)
  1269. coroutine.resume(coroutine.create(function()
  1270. repeat
  1271. wait(inc)
  1272. Hitdeb = 0
  1273. until value == des
  1274. end))
  1275. end
  1276.  
  1277. function atktype(s,e)
  1278. coroutine.resume(coroutine.create(function ()
  1279. attacktype = e
  1280. wait(0.25)
  1281. attacktype = s
  1282. end))
  1283. end
  1284.  
  1285.  
  1286. function EVENMOARMAGIX2(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1287. local msh1 = Instance.new("SpecialMesh")
  1288. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  1289. msh1.MeshType = "Sphere"
  1290. S=Instance.new("Part")
  1291. S.Name="Effect"
  1292. S.formFactor=0
  1293. S.Size=Vector3.new(x1,y1,z1)
  1294. S.BrickColor=color
  1295. S.Reflectance = 0
  1296. S.TopSurface=0
  1297. S.BottomSurface=0
  1298. S.Transparency=0
  1299. S.Anchored=true
  1300. S.CanCollide=false
  1301. S.CFrame=part
  1302. S.Parent=workspace
  1303. msh1.Parent = S
  1304. 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)
  1305. end
  1306.  
  1307. function shoottrail(mouse)
  1308. local p1 = (prt5.CFrame * CFrame.new(0,-prt5.Size.y/2,0)).p
  1309. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread)) / 100) * (p1-mouse.Hit.p).magnitude/100
  1310. local dir = CFrame.new((p1+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  1311. local hit,pos = rayCast(p1,dir.lookVector,10,Character)
  1312. local rangepos = range
  1313. local function drawtrail(From,To)
  1314. local effectsmsh = Instance.new("CylinderMesh")
  1315. effectsmsh.Scale = Vector3.new(1,1,1)
  1316. effectsmsh.Name = "Mesh"
  1317. light = Instance.new("PointLight")
  1318. light.Brightness = .8
  1319. light.Color = Color3.new(255,255,255)
  1320. light.Range = 3
  1321. local effectsg = Instance.new("Part")
  1322. light.Parent = effectsg
  1323. effectsg.formFactor = 3
  1324. effectsg.CanCollide = false
  1325. effectsg.Name = "Eff"
  1326. effectsg.Locked = true
  1327. effectsg.Anchored = true
  1328. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1329. effectsg.Parent = swordholder
  1330. effectsmsh.Parent = effectsg
  1331. effectsg.BrickColor = ammotrail
  1332. effectsg.Reflectance = 0.25
  1333. local LP = From
  1334. local point1 = To
  1335. local mg = (LP - point1).magnitude
  1336. effectsmsh.Scale = Vector3.new(1,mg*5,1)
  1337. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1338. coroutine.resume(coroutine.create(function()
  1339. wait()
  1340. effectsg.Parent = nil
  1341. end))
  1342. end
  1343. local newpos = p1
  1344. local inc = rangepower
  1345. repeat
  1346. wait()
  1347. rangepos = rangepos - 10
  1348. dir = dir * CFrame.Angles(math.rad(-0.1),0,0)
  1349. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  1350. drawtrail(newpos,pos)
  1351. newpos = newpos + (dir.lookVector * inc)
  1352. if inc >= 20 then
  1353. inc = inc - 10
  1354. end
  1355. if hit ~= nil then
  1356. rangepos = 0
  1357. end
  1358. until rangepos <= 0
  1359. if CurrentAmmo=="Explosion" then
  1360. b=math.random(1,3)
  1361. if b==1 then
  1362. EVENMOARMAGIX2(CFrame.new(newpos),1,1,1,0,0,0,0,0,0,BrickColor.new("Bright red"))
  1363. local c = game.Workspace:GetChildren();
  1364. for i = 1, #c do
  1365. local hum = c[i]:findFirstChild("Humanoid")
  1366. if hum ~= nil and hum.Health ~= 0 then
  1367. local head = c[i]:findFirstChild("Head");
  1368. if head ~= nil then
  1369. local targ = head.Position - newpos;
  1370. local mag = targ.magnitude;
  1371. if mag <= 10 and c[i].Name ~= Player.Name then
  1372. attackdebounce=false
  1373. ADmg(hum,hit,pos)
  1374. end
  1375. end
  1376. end
  1377. end
  1378. end
  1379. end
  1380. if hit ~= nil then
  1381. hs(Head,1)
  1382. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1383. hum = hit.Parent.Humanoid
  1384. attackdebounce=false
  1385. ADmg(hum,hit,pos)
  1386. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1387. hum = hit.Parent.Parent.Humanoid
  1388. attackdebounce=false
  1389. ADmg(hum,hit,pos)
  1390. end
  1391. end
  1392. end
  1393.  
  1394. function shoottrail2(mouse)
  1395. local p1 = (newprt5.CFrame * CFrame.new(0,-newprt5.Size.y/2,0)).p
  1396. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread)) / 100) * (p1-mouse.Hit.p).magnitude/100
  1397. local dir = CFrame.new((p1+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  1398. local hit,pos = rayCast(p1,dir.lookVector,10,Character)
  1399. local rangepos = range
  1400. local function drawtrail(From,To)
  1401. local effectsmsh = Instance.new("CylinderMesh")
  1402. effectsmsh.Scale = Vector3.new(1,1,1)
  1403. effectsmsh.Name = "Mesh"
  1404. local effectsg = Instance.new("Part")
  1405. effectsg.formFactor = 3
  1406. effectsg.CanCollide = false
  1407. effectsg.Name = "Eff"
  1408. effectsg.Locked = true
  1409. effectsg.Anchored = true
  1410. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1411. effectsg.Parent = swordholder
  1412. effectsmsh.Parent = effectsg
  1413. effectsg.BrickColor = ammotrail
  1414. effectsg.Reflectance = 0.25
  1415. local LP = From
  1416. local point1 = To
  1417. local mg = (LP - point1).magnitude
  1418. effectsmsh.Scale = Vector3.new(1,mg*5,1)
  1419. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1420. coroutine.resume(coroutine.create(function()
  1421. wait()
  1422. effectsg.Parent = nil
  1423. end))
  1424. end
  1425. local newpos = p1
  1426. local inc = rangepower
  1427. repeat
  1428. wait()
  1429. rangepos = rangepos - 10
  1430. dir = dir * CFrame.Angles(math.rad(-0.1),0,0)
  1431. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  1432. drawtrail(newpos,pos)
  1433. newpos = newpos + (dir.lookVector * inc)
  1434. if inc >= 20 then
  1435. inc = inc - 10
  1436. end
  1437. if hit ~= nil then
  1438. rangepos = 0
  1439. end
  1440. until rangepos <= 0
  1441. if CurrentAmmo=="Explosion" then
  1442. b=math.random(1,3)
  1443. if b==1 then
  1444. EVENMOARMAGIX2(CFrame.new(newpos),1,1,1,0,0,0,0,0,0,BrickColor.new("Bright red"))
  1445. local c = game.Workspace:GetChildren();
  1446. for i = 1, #c do
  1447. local hum = c[i]:findFirstChild("Humanoid")
  1448. if hum ~= nil and hum.Health ~= 0 then
  1449. local head = c[i]:findFirstChild("Head");
  1450. if head ~= nil then
  1451. local targ = head.Position - newpos;
  1452. local mag = targ.magnitude;
  1453. if mag <= 10 and c[i].Name ~= Player.Name then
  1454. attackdebounce=false
  1455. ADmg(hum,hit,pos)
  1456. end
  1457. end
  1458. end
  1459. end
  1460. end
  1461. end
  1462. if hit ~= nil then
  1463. hs(Head,1)
  1464. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1465. hum = hit.Parent.Humanoid
  1466. attackdebounce=false
  1467. ADmg(hum,hit,pos)
  1468. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1469. hum = hit.Parent.Parent.Humanoid
  1470. attackdebounce=false
  1471. ADmg(hum,hit,pos)
  1472. end
  1473. end
  1474. end
  1475.  
  1476. function Melee()
  1477. attack=true
  1478. local wt,t = faketors()
  1479. w7.Part1 = t
  1480. w8.Part1 = t
  1481. w9.Part1 = t
  1482. for i = 0 , 1 , 0.1 do
  1483. wait()
  1484. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1485. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-15*i), 0, 0)
  1486. 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))
  1487. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1488. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1489. w1.Part1=LeftArm
  1490. w1.C0 = CFrame.Angles(math.rad(-80), math.rad(-55+145*i), math.rad(90)) * CFrame.new(-1.3, 1, 0)
  1491. wt.C0 = CFrame.Angles(0, math.rad(100*i), 0)
  1492. end
  1493. con1=prt5.Touched:connect(function(hit)
  1494. hum=hit.Parent:FindFirstChild("Humanoid")
  1495. if hum~=nil then
  1496. if attackdebounce == false then
  1497. attackdebounce = true
  1498. coroutine.resume(coroutine.create(function()
  1499. wait(0.1)
  1500. attackdebounce = false
  1501. end))
  1502. ADmg(hum,hit,pos)
  1503. end
  1504. end
  1505. end)
  1506. con2=prt5.Touched:connect(function(hit)
  1507. hum=hit.Parent:FindFirstChild("Humanoid")
  1508. if hum~=nil then
  1509. if attackdebounce == false then
  1510. attackdebounce = true
  1511. coroutine.resume(coroutine.create(function()
  1512. wait(0.1)
  1513. attackdebounce = false
  1514. end))
  1515. ADmg(hum,hit,pos)
  1516. end
  1517. end
  1518. end)
  1519. for i = 0 , 1 , 0.15 do
  1520. wait()
  1521. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+160*i))
  1522. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-15), 0, 0)
  1523. 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))
  1524. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1525. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1526. w1.Part1=LeftArm
  1527. 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)
  1528. wt.C0 = CFrame.Angles(0, math.rad(100-200*i), 0)
  1529. end
  1530. for i = 0 , 1 , 0.1 do
  1531. wait()
  1532. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+150))
  1533. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-15), 0, 0)
  1534. 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))
  1535. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1536. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1537. w1.Part1=LeftArm
  1538. w1.C0 = CFrame.Angles(math.rad(-80+80), math.rad(-55+145), math.rad(90)) * CFrame.new(-1.3+1, 1+1.5, 0)
  1539. wt.C0 = CFrame.Angles(0, math.rad(100-200-10*i), 0)
  1540. end
  1541. con1:disconnect()
  1542. con2:disconnect()
  1543. for i = 0 , 1 , 0.1 do
  1544. wait()
  1545. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+150-150*i))
  1546. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-15+15*i), 0, 0)
  1547. 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))
  1548. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1549. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1550. w1.Part1=LeftArm
  1551. 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)
  1552. wt.C0 = CFrame.Angles(0, math.rad(100-200-10+110*i), 0)
  1553. end
  1554. w1.Part1 = RAP
  1555. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1556. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  1557. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(25))
  1558. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1559. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1560. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1561. wt.C0 = CFrame.Angles(0, 0, 0)
  1562. w7.Part1 = Torso
  1563. w8.Part1 = Torso
  1564. w9.Part1 = Torso
  1565. RW.Part0 = Torso
  1566. LW.Part0 = Torso
  1567. Torso.Transparency = 0
  1568. RHL.Part0 = Torso
  1569. LHL.Part0 = Torso
  1570. t.Parent = nil
  1571. attack=false
  1572. end
  1573.  
  1574. function Ready(mouse)
  1575. if Ammo <= 0 then Reload() return end
  1576. attack = true
  1577. local wt,t = faketors()
  1578. w7.Part1 = t
  1579. w8.Part1 = t
  1580. w9.Part1 = t
  1581. Character.Humanoid.WalkSpeed = 5
  1582. for i = 0.2 , 1 , 0.2 do
  1583. wait(0)
  1584. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1585. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-15*i), 0, 0)
  1586. 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))
  1587. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1588. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1589. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1590. wt.C0 = CFrame.Angles(0, math.rad(50*i), 0)
  1591. end
  1592. for i = 0.2 , 1 , 0.2 do
  1593. wait(0)
  1594. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1595. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(10-10*i), 0, 0)
  1596. 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))
  1597. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1598. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1599. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1600. wt.C0 = CFrame.Angles(0, math.rad(50+10*i), 0)
  1601. end
  1602. wait() wait()
  1603. repeat
  1604. wait(0)
  1605. coroutine.resume(coroutine.create(function()
  1606. poisoncounter=math.random(1,5)
  1607. wait()
  1608. as(Head,1)
  1609. coroutine.resume(coroutine.create(function()
  1610. for z = 1 ,2 do
  1611. coroutine.resume(coroutine.create(function()
  1612. local meshb1 = Instance.new("BlockMesh")
  1613. meshb1.Scale = Vector3.new(1,1,1)
  1614. light = Instance.new("PointLight")
  1615. light.Brightness = .8
  1616. light.Color = Color3.new(100,50,0)
  1617. light.Range = 10
  1618. local shellb1 = Instance.new("Part")
  1619. light.Parent = shellb1
  1620. meshb1.Parent = shellb1
  1621. shellb1.Anchored = true
  1622. shellb1.formFactor = 3
  1623. shellb1.Size = Vector3.new(0.3,0.3,0.3) * (math.random(100,300)/100)
  1624. 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)
  1625. shellb1.Parent = Character
  1626. shellb1.Transparency = 0
  1627. if math.random(1,2) == 1 then
  1628. shellb1.BrickColor = BrickColor.new("Bright red")
  1629. else
  1630. shellb1.BrickColor = BrickColor.new("Bright orange")
  1631. end
  1632. shellb1.CanCollide = false
  1633. local incre = math.random(0,60)/100
  1634. for i = 0 , 1 , 0.5 do
  1635. wait()
  1636. print(light.Brightness)
  1637. light.Brightness = light.Brightness - .1
  1638. shellb1.CFrame = shellb1.CFrame + Torso.CFrame.lookVector*incre
  1639. shellb1.Transparency = 1*i
  1640. meshb1.Scale = Vector3.new(1+1*i,1+1*i,1+1*i)
  1641. end
  1642. shellb1.Parent=nil
  1643. end))
  1644. end
  1645. coroutine.resume(coroutine.create(function()
  1646. shoottrail(mouse)
  1647. end))
  1648. if twobullets==true then
  1649. shoottrail(mouse)
  1650. end
  1651. end))
  1652. Ammo = Ammo - 1
  1653. for i = 0.5 , 1 , 0.5*attackspeed do
  1654. wait(0)
  1655. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1656. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-5*i), 0, 0)
  1657. LW.C0 = CFrame.new(-1.5, 0.5, -0) * CFrame.Angles(math.rad(95+5*i),math.rad(0),math.rad(25))
  1658. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1659. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1660. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1661. wt.C0 = CFrame.Angles(0, math.rad(60), 0)
  1662. end
  1663. for i = 0.5 , 1 , 0.5*attackspeed do
  1664. wait(0)
  1665. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1666. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-5+5*i), 0, 0)
  1667. LW.C0 = CFrame.new(-1.5, 0.5, -0) * CFrame.Angles(math.rad(100-5*i),math.rad(0),math.rad(25))
  1668. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1669. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1670. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1671. wt.C0 = CFrame.Angles(0, math.rad(60), 0)
  1672. end
  1673. end))
  1674. until not keyhold or Ammo <= 0
  1675. if Ammo==0 then
  1676. Say("NoAmmo")
  1677. end
  1678. for i = 0.2 , 1 , 0.2 do
  1679. wait(0)
  1680. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1681. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15*i), 0, 0)
  1682. LW.C0 = CFrame.new(-1.5, 0.5, -0.25*i) * CFrame.Angles(math.rad(95-25*i),math.rad(0),math.rad(25))
  1683. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1684. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1685. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1686. wt.C0 = CFrame.Angles(0, math.rad(60-60*i), 0)
  1687. end
  1688. w7.Part1 = Torso
  1689. w8.Part1 = Torso
  1690. w9.Part1 = Torso
  1691. RW.Part0 = Torso
  1692. LW.Part0 = Torso
  1693. Torso.Transparency = 0
  1694. RHL.Part0 = Torso
  1695. LHL.Part0 = Torso
  1696. t.Parent = nil
  1697. Character.Humanoid.WalkSpeed = 14
  1698. for i = 0.2 , 1 , 0.2 do
  1699. wait(0)
  1700. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1701. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15+10*i), 0, 0)
  1702. 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))
  1703. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1704. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1705. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1706. end
  1707. wait(0.25)
  1708. attack = false
  1709. end
  1710.  
  1711. function GunzerkReady(mouse)
  1712. if Ammo <= 0 then Reload() return end
  1713. attack = true
  1714. Character.Humanoid.WalkSpeed = 5
  1715. for i = 0.2 , 1 , 0.2 do
  1716. wait(0)
  1717. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(50+30*i),math.rad(20),math.rad(-5+3*i))
  1718. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1719. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(50+30*i),math.rad(-20),math.rad(5-3*i))
  1720. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1721. end
  1722. for i = 0.2 , 1 , 0.2 do
  1723. wait(0)
  1724. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(50+30+10*i),math.rad(20),math.rad(-5+3+2*i))
  1725. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1726. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(50+30+10*i),math.rad(-20),math.rad(5-3-2*i))
  1727. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1728. end
  1729. wait() wait()
  1730. repeat
  1731. wait()
  1732. if math.random(1,20)==1 then
  1733. Say("Shooting")
  1734. end
  1735. coroutine.resume(coroutine.create(function()
  1736. if firingdebounce1==false then
  1737. firingdebounce1=true
  1738. poisoncounter=math.random(1,5)
  1739. wait()
  1740. as(Head,1)
  1741. coroutine.resume(coroutine.create(function()
  1742. for z = 1 ,2 do
  1743. coroutine.resume(coroutine.create(function()
  1744. local meshb1 = Instance.new("BlockMesh")
  1745. meshb1.Scale = Vector3.new(1,1,1)
  1746. light = Instance.new("PointLight")
  1747. light.Brightness = .8
  1748. light.Color = Color3.new(100,50,0)
  1749. light.Range = 6
  1750. local shellb1 = Instance.new("Part")
  1751. light.Parent = shellb1
  1752. meshb1.Parent = shellb1
  1753. shellb1.Anchored = true
  1754. shellb1.formFactor = 3
  1755. shellb1.Size = Vector3.new(0.3,0.3,0.3) * (math.random(100,300)/100)
  1756. 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)
  1757. shellb1.Parent = Character
  1758. shellb1.Transparency = 0
  1759. if math.random(1,2) == 1 then
  1760. shellb1.BrickColor = BrickColor.new("Bright red")
  1761. else
  1762. shellb1.BrickColor = BrickColor.new("Bright orange")
  1763. end
  1764. shellb1.CanCollide = false
  1765. local incre = math.random(0,60)/100
  1766. for i = 0 , 1 , 0.1 do
  1767. wait()
  1768. shellb1.CFrame = shellb1.CFrame + Torso.CFrame.lookVector*incre
  1769. shellb1.Transparency = 1*i
  1770. meshb1.Scale = Vector3.new(1+1*i,1+1*i,1+1*i)
  1771. end
  1772. shellb1.Parent=nil
  1773. end))
  1774. end
  1775. coroutine.resume(coroutine.create(function()
  1776. shoottrail(mouse)
  1777. end))
  1778. end))
  1779. for i = 0.5 , 1 , 0.5*attackspeed do
  1780. wait(0)
  1781. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90+10*i),math.rad(20),math.rad(0))
  1782. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1783. end
  1784. for i = 0.5 , 1 , 0.5*attackspeed do
  1785. wait(0)
  1786. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90+10-10*i),math.rad(20),math.rad(0))
  1787. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1788. end
  1789. firingdebounce1=false
  1790. end
  1791. end))
  1792. coroutine.resume(coroutine.create(function()
  1793. if firingdebounce2==false then
  1794. firingdebounce2=true
  1795. poisoncounter=math.random(1,5)
  1796. wait(0.1)
  1797. as(Head,1)
  1798. coroutine.resume(coroutine.create(function()
  1799. for z = 1 ,2 do
  1800. coroutine.resume(coroutine.create(function()
  1801. local meshb1 = Instance.new("BlockMesh")
  1802. meshb1.Scale = Vector3.new(1,1,1)
  1803. light = Instance.new("PointLight")
  1804. light.Brightness = .8
  1805. light.Color = Color3.new(100,50,0)
  1806. light.Range = 6
  1807. local shellb1 = Instance.new("Part")
  1808. light.Parent = shellb1
  1809. meshb1.Parent = shellb1
  1810. shellb1.Anchored = true
  1811. shellb1.formFactor = 3
  1812. shellb1.Size = Vector3.new(0.3,0.3,0.3) * (math.random(100,300)/100)
  1813. 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)
  1814. shellb1.Parent = Character
  1815. shellb1.Transparency = 0
  1816. if math.random(1,2) == 1 then
  1817. shellb1.BrickColor = BrickColor.new("Bright red")
  1818. else
  1819. shellb1.BrickColor = BrickColor.new("Bright orange")
  1820. end
  1821. shellb1.CanCollide = false
  1822. local incre = math.random(0,60)/100
  1823. for i = 0 , 1 , 0.1 do
  1824. wait()
  1825. shellb1.CFrame = shellb1.CFrame + Torso.CFrame.lookVector*incre
  1826. shellb1.Transparency = 1*i
  1827. meshb1.Scale = Vector3.new(1+1*i,1+1*i,1+1*i)
  1828. end
  1829. shellb1.Parent=nil
  1830. end))
  1831. end
  1832. coroutine.resume(coroutine.create(function()
  1833. shoottrail2(mouse)
  1834. end))
  1835. end))
  1836. for i = 0.5 , 1 , 0.5*attackspeed do
  1837. wait(0)
  1838. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90+10*i),math.rad(-20),math.rad(0))
  1839. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1840. end
  1841. for i = 0.5 , 1 , 0.5*attackspeed do
  1842. wait(0)
  1843. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90+10-10*i),math.rad(-20),math.rad(0))
  1844. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1845. end
  1846. firingdebounce2=false
  1847. end
  1848. end))
  1849. until not keyhold or Ammo <= 0 or GunzerkDuration==0
  1850. for i = 0.2 , 1 , 0.2 do
  1851. wait(0)
  1852. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90-30*i),math.rad(20),math.rad(-3*i))
  1853. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1854. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90-30*i),math.rad(-20),math.rad(3*i))
  1855. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1856. end
  1857. Character.Humanoid.WalkSpeed = 14
  1858. for i = 0.2 , 1 , 0.2 do
  1859. wait(0)
  1860. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90-30-10*i),math.rad(20),math.rad(-3-2*i))
  1861. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1862. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90-30-10*i),math.rad(-20),math.rad(3+2*i))
  1863. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1864. end
  1865. wait(0.25)
  1866. attack = false
  1867. end
  1868.  
  1869.  
  1870.  
  1871.  
  1872.  
  1873. function Reload()
  1874. attack = true
  1875. while buttonhold==true do
  1876. wait()
  1877. ars(Head,0.75)
  1878. for i = 0.1 , 1 , 0.1*reloadspeed do
  1879. wait()
  1880. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+20*i))
  1881. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-45*i), 0, 0)
  1882. 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))
  1883. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1884. w3.C0 = CFrame.Angles(math.rad(90+90*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1885. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10*i),0,math.rad(-20*i))
  1886. end
  1887. for i = 0.2 , 1 , 0.2*reloadspeed do
  1888. wait()
  1889. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40))
  1890. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-20+20*i), 0, 0)
  1891. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+40*i),math.rad(0),math.rad(10-10*i))
  1892. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1893. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1894. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10+20*i),0,math.rad(-20))
  1895. end
  1896. for i = 0.2 , 1 , 0.2*reloadspeed do
  1897. wait()
  1898. 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))
  1899. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(45*i), 0, 0)
  1900. 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))
  1901. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1902. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1903. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(10+10*i),0,math.rad(-20+10*i))
  1904. end
  1905. AddAmmo(Ammoregen)
  1906. for i = 0.2 , 1 , 0.2*reloadspeed do
  1907. wait()
  1908. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-45))
  1909. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(45+5*i), 0, 0)
  1910. LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(100-10*i),math.rad(0),math.rad(45))
  1911. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1912. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1913. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(20+5*i),0,math.rad(-10+5*i))
  1914. end
  1915. for i = 0.1 , 1 , 0.1*reloadspeed do
  1916. wait()
  1917. 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))
  1918. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(50-25*i), 0, 0)
  1919. 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))
  1920. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1921. w3.C0 = CFrame.Angles(math.rad(180-90*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1922. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(25-25*i),0,math.rad(-5+5*i))
  1923. end
  1924. Neck.C0 = neckcf0
  1925. end
  1926. attack = false
  1927. end
  1928.  
  1929. function Reload2()
  1930. attack=true
  1931. for i = 0.1 , 1 , 0.1 do
  1932. wait()
  1933. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10*i))
  1934. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-25*i), 0, 0)
  1935. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40+60*i),math.rad(0),math.rad(25))
  1936. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1937. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1938. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5*i),0,math.rad(20*i))
  1939. end
  1940. derp=prt6:Clone()
  1941. prt6.Transparency=1
  1942. prt6.CanCollide=false
  1943. derp.Parent=workspace
  1944. derp.CFrame=prt6.CFrame
  1945. derp.CanCollide=true
  1946. coroutine.resume(coroutine.create(function(Part)
  1947. wait(5)
  1948. Part.CanCollide=false
  1949. wait(3)
  1950. Part.Parent=nil
  1951. end),derp)
  1952. for i = 0.1 , 1 , 0.2 do
  1953. wait()
  1954. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  1955. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-25+5*i), 0, 0)
  1956. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40+60-30*i),math.rad(0),math.rad(25))
  1957. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1958. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1959. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5+5*i),0,math.rad(20))
  1960. end
  1961. for i = 0.1 , 1 , 0.1 do
  1962. wait()
  1963. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  1964. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-25+5), 0, 0)
  1965. 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))
  1966. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1967. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1968. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5+5+5*i),0,math.rad(20))
  1969. end
  1970. for i = 0.1 , 1 , 0.1 do
  1971. wait()
  1972. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  1973. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-25+5+10*i), 0, 0)
  1974. 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))
  1975. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1976. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1977. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5+5+5+10*i),0,math.rad(20+20*i))
  1978. end
  1979. derp2=prt6:Clone()
  1980. derp2.Parent=swordholder
  1981. derp2.Transparency=0
  1982. wldderp=Instance.new("Weld")
  1983. wldderp.Parent=derp
  1984. wldderp.Part0=derp2
  1985. wldderp.Part1=LeftArm
  1986. wldderp.C0=CFrame.Angles(math.rad(90),0,0)*CFrame.new(0,1,0)
  1987. for i = 0.1 , 1 , 0.1 do
  1988. wait()
  1989. wldderp.C0=CFrame.Angles(math.rad(90-5*i),0,0)*CFrame.new(0,1+0.1*i,0.2*i)
  1990. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  1991. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-25+5+10-10*i), 0, 0)
  1992. 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))
  1993. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1994. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1995. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5+5+5+10-10*i),0,math.rad(20+20-20*i))
  1996. end
  1997. derp2.Parent=nil
  1998. prt6.Transparency=0
  1999. prt6.CanCollide=false
  2000. for i = 0.1 , 1 , 0.1 do
  2001. wait()
  2002. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10-10*i))
  2003. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-25+5+10*i), 0, 0)
  2004. 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))
  2005. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2006. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(30*i), math.rad(0)) * CFrame.new(0, 0, 0)
  2007. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5+5+5),0,math.rad(20))
  2008. end
  2009. for i = 0.1 , 1 , 0.2 do
  2010. wait()
  2011. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90+30*i),math.rad(0),math.rad(-60+10-10))
  2012. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-25+5+10), 0, 0)
  2013. 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))
  2014. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2015. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(30), math.rad(0)) * CFrame.new(0, 0, 0)
  2016. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5+5+5-10*i),0,math.rad(20))
  2017. end
  2018. Ammo = MaxAmmo
  2019. for i = 0.1 , 1 , 0.1 do
  2020. wait()
  2021. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90+30-30*i),math.rad(0),math.rad(-60))
  2022. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15+10*i), 0, 0)
  2023. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(65-40*i),math.rad(0),math.rad(25))
  2024. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2025. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(30-30*i), math.rad(0)) * CFrame.new(0, 0, 0)
  2026. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5-5*i),0,math.rad(20-20*i))
  2027. end
  2028. attack=false
  2029. end
  2030.  
  2031. function Gunzerker()
  2032. attack=true
  2033. Gunzerkering=true
  2034. for i = 0.1 , 1 , 0.1 do
  2035. wait()
  2036. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+60*i))
  2037. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  2038. 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))
  2039. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2040. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5*i),0,0)
  2041. end
  2042. newgun.Parent=workspace
  2043. newprt3.BrickColor=prt3.BrickColor
  2044. neww1.Parent=newprt1
  2045. neww2.Parent=newprt2
  2046. neww3.Parent=newprt3
  2047. neww4.Parent=newprt4
  2048. neww5.Parent=newprt5
  2049. neww6.Parent=newprt6
  2050. neww1.Part0 = newprt1
  2051. neww1.Part1 = LeftArm
  2052. neww1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2053. neww1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 1, 0)
  2054. Say("Gunzerking")
  2055. for i = 0.1 , 1 , 0.15 do
  2056. wait()
  2057. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90+10*i),math.rad(0),math.rad(0))
  2058. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-25*i), 0, 0)
  2059. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(40-60+120*i),math.rad(0),math.rad(0))
  2060. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2061. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5-10*i),0,0)
  2062. end
  2063. for i = 0.1 , 1 , 0.2 do
  2064. wait()
  2065. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90+10+10*i),math.rad(0),math.rad(0))
  2066. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  2067. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(40-60+120+10*i),math.rad(0),math.rad(0))
  2068. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2069. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5-10-5*i),0,0)
  2070. end
  2071. for i = 0.1 , 1 , 0.15 do
  2072. wait()
  2073. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(110-60*i),math.rad(20*i),math.rad(-5*i))
  2074. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  2075. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(110-60*i),math.rad(-20*i),math.rad(5*i))
  2076. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2077. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5-10-5+10*i),0,0)
  2078. end
  2079. attack=false
  2080. end
  2081.  
  2082. function ChangeAmmoAnim(ammo,trail,derpcol)
  2083. for i = 0.1 , 1 , 0.1 do
  2084. wait()
  2085. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10*i))
  2086. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10*i), 0, 0)
  2087. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40+60*i),math.rad(0),math.rad(25))
  2088. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2089. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2090. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5*i),0,0)
  2091. end
  2092. for i = 0.1 , 1 , 0.15 do
  2093. wait()
  2094. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  2095. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+5*i), 0, 0)
  2096. 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))
  2097. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2098. w3.C0 = CFrame.Angles(math.rad(90+90*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2099. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+20*i),0,0)
  2100. end
  2101. for i = 0.1 , 1 , 0.1 do
  2102. wait()
  2103. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  2104. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+5+5*i), 0, 0)
  2105. 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))
  2106. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2107. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2108. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+20-10*i),0,0)
  2109. end
  2110. derpd=prt3:Clone()
  2111. derpd.Parent=swordholder
  2112. derpd.Transparency=0
  2113. derpdw=Instance.new("Weld")
  2114. derpdw.Parent=swordholder
  2115. derpdw.Part0=derpd
  2116. derpdw.Part1=LeftArm
  2117. derpdw.C0=CFrame.Angles(math.rad(90),math.rad(-30),0)*CFrame.new(-0.4,0.8,0)
  2118. prt3.Transparency=1
  2119. wait(0.1)
  2120. for i = 0.1 , 1 , 0.1 do
  2121. wait()
  2122. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  2123. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+5+5+5*i), 0, 0)
  2124. 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))
  2125. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2126. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2127. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+20-10-5*i),0,0)
  2128. 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)
  2129. end
  2130. for i = 0.1 , 1 , 0.2 do
  2131. wait()
  2132. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  2133. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+5+5+5), 0, 0)
  2134. 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))
  2135. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2136. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2137. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+20-10-5+30*i),0,math.rad(20*i))
  2138. derpdw.C0=CFrame.Angles(math.rad(90),math.rad(0),0)*CFrame.new(0,1,0)
  2139. end
  2140. CurrentAmmo = ammo
  2141. ammotrail = BrickColor.new(trail)
  2142. derpd.BrickColor=BrickColor.new(derpcol)
  2143. prt3.BrickColor=BrickColor.new(derpcol)
  2144. for i = 0.1 , 1 , 0.1 do
  2145. wait()
  2146. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  2147. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+5+5+5), 0, 0)
  2148. 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))
  2149. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2150. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2151. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+20-10-5+30-30*i),0,math.rad(20-20*i))
  2152. derpdw.C0=CFrame.Angles(math.rad(90),math.rad(0),0)*CFrame.new(0,1,0)
  2153. end
  2154. for i = 0.1 , 1 , 0.1 do
  2155. wait()
  2156. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  2157. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+5+5+5-5*i), 0, 0)
  2158. 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))
  2159. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2160. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2161. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+20-10-5+5*i),0,0)
  2162. derpdw.C0=CFrame.Angles(math.rad(90),math.rad(-30*i),0)*CFrame.new(-0.4*i,1-0.2*i,0)
  2163. end
  2164. prt3.Transparency=0
  2165. derpd.Parent=nil
  2166. for i = 0.1 , 1 , 0.1 do
  2167. wait()
  2168. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  2169. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+5+5+5-5-5*i), 0, 0)
  2170. 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))
  2171. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2172. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2173. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+20-10+10*i),0,0)
  2174. end
  2175. for i = 0.1 , 1 , 0.15 do
  2176. wait()
  2177. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10))
  2178. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+5+5+5-5-5-5*i), 0, 0)
  2179. 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))
  2180. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2181. w3.C0 = CFrame.Angles(math.rad(180-90*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2182. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+20-20*i),0,0)
  2183. end
  2184. for i = 0.1 , 1 , 0.1 do
  2185. wait()
  2186. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+10-10*i))
  2187. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10+10*i), 0, 0)
  2188. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40+60-60*i),math.rad(0),math.rad(25))
  2189. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2190. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2191. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+5*i),0,0)
  2192. end
  2193. end
  2194.  
  2195. function NormalAmmo()
  2196. attack = true
  2197. ChangeAmmoAnim("Normal","White","White")
  2198. attack = false
  2199. end
  2200.  
  2201. function PoisonAmmo()
  2202. attack = true
  2203. ChangeAmmoAnim("Poison","Bright violet","Bright violet")
  2204. attack = false
  2205. coroutine.resume(coroutine.create(function()
  2206. repeat
  2207. wait(0.25+0.75*math.random())
  2208. if Ammo ~= 0 then
  2209. local meshb1 = Instance.new("SpecialMesh")
  2210. meshb1.Scale = Vector3.new(1,1,1)
  2211. meshb1.MeshType = "Sphere"
  2212. local shellb1 = Instance.new("Part")
  2213. meshb1.Parent = shellb1
  2214. shellb1.Anchored = true
  2215. shellb1.formFactor = 3
  2216. shellb1.Size = Vector3.new(0.3,0.3,0.3)
  2217. shellb1.CFrame = CFrame.new((prt5.CFrame * CFrame.new(0,-prt5.Size.y/2,0)).p)
  2218. shellb1.Parent = swordholder
  2219. shellb1.Transparency = 0
  2220. shellb1.BrickColor = BrickColor.new("Alder")
  2221. shellb1.CanCollide = false
  2222. for i = 0 , 1 , 0.1 do
  2223. wait()
  2224. shellb1.CFrame = shellb1.CFrame + Vector3.new(0,-0.15,0)
  2225. shellb1.Transparency = 1*i
  2226. meshb1.Scale = Vector3.new(1,1+3*i,1)
  2227. end
  2228. shellb1.Parent=nil
  2229. end
  2230. until CurrentAmmo ~= "Poison"
  2231. end))
  2232. end
  2233.  
  2234. function KBAmmo()
  2235. attack = true
  2236. ChangeAmmoAnim("Knockback","Black","Black")
  2237. attack = false
  2238. end
  2239.  
  2240. function ExplodeAmmo()
  2241. attack = true
  2242. ChangeAmmoAnim("Explosion","Bright red","Bright red")
  2243. attack = false
  2244. end
  2245.  
  2246.  
  2247. function HerpAmmo()
  2248. attack = true
  2249. ChangeAmmoAnim("Herpity","White","Really red")
  2250. attack = false
  2251. coroutine.resume(coroutine.create(function()
  2252. repeat
  2253. wait()
  2254. ammotrail = BrickColor:random()
  2255. until CurrentAmmo ~= "Herpity"
  2256. end))
  2257. end
  2258.  
  2259. function suparKnockbackAmmo()
  2260. attack = true
  2261. ChangeAmmoAnim("suparKnockback","White","Really blue")
  2262. CurrentAmmo = "suparKnockback"
  2263. attack = false
  2264. coroutine.resume(coroutine.create(function()
  2265. repeat
  2266. wait()
  2267. ammotrail = BrickColor:random()
  2268. until CurrentAmmo ~= "suparKnockback"
  2269. end))
  2270. end
  2271.  
  2272. function BeesAmmo()
  2273. attack = true
  2274. ChangeAmmoAnim("Bees","White","New Yeller")
  2275. attack = false
  2276. coroutine.resume(coroutine.create(function()
  2277. repeat
  2278. wait()
  2279. ammotrail = BrickColor:random()
  2280. until CurrentAmmo ~= "Bees"
  2281. end))
  2282. end
  2283.  
  2284. function derpAmmo()
  2285. attack = true
  2286. ChangeAmmoAnim("derp","White","Bright green")
  2287. attack = false
  2288. coroutine.resume(coroutine.create(function()
  2289. repeat
  2290. wait()
  2291. ammotrail = BrickColor:random()
  2292. until CurrentAmmo ~= "derp"
  2293. end))
  2294. end
  2295.  
  2296. function TrollAmmo()
  2297. attack = true
  2298. ChangeAmmoAnim("Troll","White","Cyan")
  2299. attack = false
  2300. coroutine.resume(coroutine.create(function()
  2301. repeat
  2302. wait()
  2303. ammotrail = BrickColor:random()
  2304. until CurrentAmmo ~= "Troll"
  2305. end))
  2306. end
  2307.  
  2308.  
  2309. function AimedReady(mouse)
  2310. if Ammo <= 0 then Reload() return end
  2311. attack = true
  2312. local wt,t = faketors()
  2313. w7.Part1 = t
  2314. w8.Part1 = t
  2315. w9.Part1 = t
  2316. Character.Humanoid.WalkSpeed = 5
  2317. for i = 0.2 , 1 , 0.2 do
  2318. wait(0)
  2319. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  2320. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-15*i), 0, 0)
  2321. 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))
  2322. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2323. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2324. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  2325. wt.C0 = CFrame.Angles(0, math.rad(50*i), 0)
  2326. Neck.C0 = neckcf0 * CFrame.Angles(0,math.rad(-20*i),0)
  2327. end
  2328. for i = 0.2 , 1 , 0.2 do
  2329. wait(0)
  2330. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  2331. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(10-10*i), 0, 0)
  2332. 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))
  2333. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2334. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2335. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  2336. wt.C0 = CFrame.Angles(0, math.rad(50+10*i), 0)
  2337. end
  2338. wait() wait()
  2339. local orispread = spread
  2340. spread = 0
  2341. repeat
  2342. poisoncounter=math.random(1,5)
  2343. wait(0.2)
  2344. as(Head,1)
  2345. coroutine.resume(coroutine.create(function()
  2346. for z = 1 ,2 do
  2347. coroutine.resume(coroutine.create(function()
  2348. local meshb1 = Instance.new("BlockMesh")
  2349. meshb1.Scale = Vector3.new(1,1,1)
  2350. local shellb1 = Instance.new("Part")
  2351. meshb1.Parent = shellb1
  2352. shellb1.Anchored = true
  2353. shellb1.formFactor = 3
  2354. shellb1.Size = Vector3.new(0.3,0.3,0.3) * (math.random(100,300)/100)
  2355. 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)
  2356. shellb1.Parent = Character
  2357. shellb1.Transparency = 0
  2358. if math.random(1,2) == 1 then
  2359. shellb1.BrickColor = BrickColor.new("Bright red")
  2360. else
  2361. shellb1.BrickColor = BrickColor.new("Bright orange")
  2362. end
  2363. shellb1.CanCollide = false
  2364. local incre = math.random(0,60)/100
  2365. for i = 0 , 1 , 0.1 do
  2366. wait()
  2367. shellb1.CFrame = shellb1.CFrame + Torso.CFrame.lookVector*incre
  2368. shellb1.Transparency = 1*i
  2369. meshb1.Scale = Vector3.new(1+1*i,1+1*i,1+1*i)
  2370. end
  2371. shellb1.Parent=nil
  2372. end))
  2373. end
  2374. shoottrail(mouse)
  2375. end))
  2376. Ammo = Ammo - 1
  2377. for i = 0.5 , 1 , 0.5 do
  2378. wait(0)
  2379. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  2380. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-5*i), 0, 0)
  2381. LW.C0 = CFrame.new(-1.5, 0.5, -0) * CFrame.Angles(math.rad(95+5*i),math.rad(0),math.rad(25))
  2382. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2383. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2384. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  2385. wt.C0 = CFrame.Angles(0, math.rad(60), 0)
  2386. Neck.C0 = neckcf0 * CFrame.Angles(0,math.rad(-20+5*i),0)
  2387. end
  2388. for i = 0.5 , 1 , 0.5 do
  2389. wait(0)
  2390. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  2391. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-5+5*i), 0, 0)
  2392. LW.C0 = CFrame.new(-1.5, 0.5, -0) * CFrame.Angles(math.rad(100-5*i),math.rad(0),math.rad(25))
  2393. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2394. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2395. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  2396. wt.C0 = CFrame.Angles(0, math.rad(60), 0)
  2397. Neck.C0 = neckcf0 * CFrame.Angles(0,math.rad(-15-5*i),0)
  2398. end
  2399. until not buttonhold or Ammo <= 0
  2400. if Ammo==0 then
  2401. Say("NoAmmo")
  2402. end
  2403. spread = orispread
  2404. for i = 0.2 , 1 , 0.2 do
  2405. wait(0)
  2406. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  2407. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15*i), 0, 0)
  2408. LW.C0 = CFrame.new(-1.5, 0.5, -0.25*i) * CFrame.Angles(math.rad(95-25*i),math.rad(0),math.rad(25))
  2409. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2410. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2411. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  2412. wt.C0 = CFrame.Angles(0, math.rad(60-60*i), 0)
  2413. Neck.C0 = neckcf0 * CFrame.Angles(0,math.rad(-20+20*i),0)
  2414. end
  2415. w7.Part1 = Torso
  2416. w8.Part1 = Torso
  2417. w9.Part1 = Torso
  2418. RW.Part0 = Torso
  2419. LW.Part0 = Torso
  2420. Torso.Transparency = 0
  2421. RHL.Part0 = Torso
  2422. LHL.Part0 = Torso
  2423. t.Parent = nil
  2424. Character.Humanoid.WalkSpeed = 14
  2425. for i = 0.2 , 1 , 0.2 do
  2426. wait(0)
  2427. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  2428. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15+10*i), 0, 0)
  2429. 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))
  2430. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2431. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2432. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  2433. end
  2434. wait(0.25)
  2435. attack = false
  2436. end
  2437.  
  2438.  
  2439.  
  2440. function returnwelds()
  2441. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  2442. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  2443. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(25))
  2444. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2445. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  2446. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  2447. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
  2448. RWL.C1 = CFrame.new(0.5, 1, 0)
  2449. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
  2450. LWL.C1 = CFrame.new(-0.5, 1, 0)
  2451. Neck.C0 = neckcf0
  2452. end
  2453.  
  2454. keyhold = false
  2455. function ob1d(mouse)
  2456. hold = true
  2457. if attack then return end
  2458. keyhold = true
  2459. if Gunzerkering==true then
  2460. GunzerkReady(mouse)
  2461. else
  2462. Ready(mouse)
  2463. end
  2464. end
  2465.  
  2466. function ob1u(mouse)
  2467. keyhold = false
  2468. end
  2469.  
  2470. buttonhold = false
  2471.  
  2472. function key(key,mouse)
  2473. if attack then return end
  2474. if key=="h" and GunzerkDuration==1000 then
  2475. Gunzerker()
  2476. coroutine.resume(coroutine.create(function()
  2477. while GunzerkDuration~=0 do
  2478. wait(0)
  2479. GunzerkDuration=GunzerkDuration-2
  2480. end
  2481. Gunzerkering=false
  2482. while attack==true do
  2483. wait()
  2484. end
  2485. newgun.Parent=nil
  2486. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  2487. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  2488. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(25))
  2489. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  2490. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(0),0,0)
  2491. wait()
  2492. while GunzerkDuration~=1000 and Gunzerkering==false do
  2493. wait()
  2494. GunzerkDuration=GunzerkDuration+2
  2495. end
  2496. end))
  2497. end
  2498. if Gunzerkering~=true then
  2499. if key == "f" then
  2500. if Ammo~=MaxAmmo then
  2501. Reload2()
  2502. end
  2503. end
  2504. if key == "q" then
  2505. buttonhold = true
  2506. AimedReady(mouse)
  2507. end
  2508. if key == "g" then
  2509. Melee()
  2510. end
  2511. if key == "e" then
  2512. NormalAmmo()
  2513. end
  2514. if key == "r" then
  2515. PoisonAmmo()
  2516. end
  2517. if key == "t" then
  2518. KBAmmo()
  2519. end
  2520. if key == "y" then
  2521. ExplodeAmmo()
  2522. end
  2523. --[[DERP AMMO]]--
  2524.  
  2525. if key == "z" then
  2526. HerpAmmo()
  2527. end
  2528. if key == "x" then
  2529. suparKnockbackAmmo()
  2530. end
  2531. if key == "c" then
  2532. TrollAmmo()
  2533. end
  2534. if key == "v" then
  2535. derpAmmo()
  2536. end
  2537. if key=="b" then
  2538. BeesAmmo()
  2539. end
  2540.  
  2541. end
  2542. end
  2543.  
  2544.  
  2545. function key2(key)
  2546. if key == "f" or key == "q" then
  2547. buttonhold = false
  2548. end
  2549. end
  2550.  
  2551. function s(mouse)
  2552. repeat wait() until not attack
  2553. repeat wait() until not ev.Value
  2554.  
  2555. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2556. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2557. mouse.KeyDown:connect(function(ke) key(ke,mouse) end)
  2558. mouse.KeyUp:connect(key2)
  2559. equipanim()
  2560. ev.Value = true
  2561. end
  2562.  
  2563. function ds(mouse)
  2564. keyhold = false
  2565. repeat wait() until not attack
  2566. repeat wait() until ev.Value
  2567.  
  2568. hideanim()
  2569. wait(0.1)
  2570. ev.Value = false
  2571. end
  2572.  
  2573. Bin.Selected:connect(s)
  2574. Bin.Deselected:connect(ds)
  2575.  
  2576.  
  2577.  
  2578. if PlayerGui:findFirstChild("AmmoMeter") ~= nil then
  2579. PlayerGui:findFirstChild("AmmoMeter").Parent = nil
  2580. end
  2581.  
  2582.  
  2583. coroutine.resume(coroutine.create(function()
  2584. local SG = Instance.new("ScreenGui",PlayerGui)
  2585. SG.Name = "AmmoMeter"
  2586. local frame = Instance.new("Frame",SG)
  2587. frame.Size = UDim2.new(0.2,0,0.1,0)
  2588. frame.Position = UDim2.new(0.5-0.1,0,0.05,0)
  2589. frame.BackgroundColor3 = BrickColor.new("Brown").Color
  2590. local Ammotext = Instance.new("TextLabel",frame)
  2591. Ammotext.Size = UDim2.new(1,0,0.35,0)
  2592. Ammotext.BackgroundTransparency = 1
  2593. Ammotext.Text = "Ammo"
  2594. Ammotext.FontSize = "Size10"
  2595. Ammotext.TextColor3 = BrickColor.new("White").Color
  2596. local backing = Instance.new("ImageLabel",frame)
  2597. backing.Size = UDim2.new(0.8,0,0.2,0)
  2598. backing.Image = "http://www.roblox.com/asset/?id=48965808"
  2599. backing.Position = UDim2.new(0.1,0,0.3,0)
  2600. backing.BackgroundColor3 = BrickColor.new("Black").Color
  2601. local img = Instance.new("ImageLabel",backing)
  2602. img.Size = UDim2.new(1,0,1,0)
  2603. img.Image = "http://www.roblox.com/asset/?id=48965808"
  2604. img.Position = UDim2.new(0,0,0,0)
  2605. img.BackgroundColor3 = BrickColor.new("Brown").Color
  2606. local percent = Instance.new("TextLabel",backing)
  2607. percent.Size = UDim2.new(1,0,1,0)
  2608. percent.BackgroundTransparency = 1
  2609. percent.TextColor3 = BrickColor.new("White").Color
  2610. percent.Text = Ammo.."/".. MaxAmmo
  2611. percent.FontSize = "Size10"
  2612. local Gunzerktext = Instance.new("TextLabel",frame)
  2613. Gunzerktext.Size = UDim2.new(1,0,1.2,0)
  2614. Gunzerktext.BackgroundTransparency = 1
  2615. Gunzerktext.Text = "Gunzerk Duration"
  2616. Gunzerktext.FontSize = "Size10"
  2617. Gunzerktext.TextColor3 = BrickColor.new("White").Color
  2618. local Gunzerkbacking = Instance.new("ImageLabel",frame)
  2619. Gunzerkbacking.Size = UDim2.new(0.8,0,0.2,0)
  2620. Gunzerkbacking.Image = "http://www.roblox.com/asset/?id=48965808"
  2621. Gunzerkbacking.Position = UDim2.new(0.1,0,0.75,0)
  2622. Gunzerkbacking.BackgroundColor3 = BrickColor.new("Black").Color
  2623. local Gunzerkimg = Instance.new("ImageLabel",Gunzerkbacking)
  2624. Gunzerkimg.Size = UDim2.new(1,0,1,0)
  2625. Gunzerkimg.Image = "http://www.roblox.com/asset/?id=48965808"
  2626. Gunzerkimg.Position = UDim2.new(0,0,0,0)
  2627. Gunzerkimg.BackgroundColor3 = BrickColor.new("Brown").Color
  2628. local currentam = Instance.new("TextLabel",frame)
  2629. currentam.Size = UDim2.new(0.5,0,0.25,0)
  2630. currentam.Position = UDim2.new(0,0,1,0)
  2631. currentam.BackgroundTransparency = 0
  2632. currentam.BackgroundColor3 = BrickColor.new("Brown").Color
  2633. currentam.TextColor3 = BrickColor.new("White").Color
  2634. currentam.Text = CurrentAmmo
  2635. currentam.FontSize = "Size18"
  2636. repeat
  2637. wait()
  2638. pcall(function()
  2639. img.Size = UDim2.new(1*(Ammo/MaxAmmo),0,1,0)
  2640. percent.Text = Ammo.."/".. MaxAmmo
  2641. Gunzerkimg.Size = UDim2.new(1*(GunzerkDuration/1000),0,1,0)
  2642. currentam.Text = CurrentAmmo
  2643. end)
  2644. until SG.Parent == nil
  2645. end))
  2646.  
  2647. coroutine.resume(coroutine.create(function()
  2648. swordholder.Parent = workspace
  2649. for i=0,9999999999 do
  2650. wait()
  2651. if swordholder.Parent==nil then
  2652. wait(1)
  2653. swordholder.Parent = workspace
  2654. prt1.Parent = swordholder
  2655. prt2.Parent = swordholder
  2656. prt3.Parent = swordholder
  2657. prt4.Parent = swordholder
  2658. prt5.Parent = swordholder
  2659. prt6.Parent = swordholder
  2660. prt7.Parent = swordholder
  2661. --prt8.Parent = swordholder
  2662. prt9.Parent = swordholder
  2663. w1.Parent=prt1
  2664. w2.Parent=prt2
  2665. w3.Parent=prt3
  2666. w4.Parent=prt4
  2667. w5.Parent=prt5
  2668. w6.Parent=prt6
  2669. w7.Parent=prt7
  2670. w8.Parent=prt8
  2671. w9.Parent=prt9
  2672. if Gunzerkering==true then
  2673. newgun.Parent = workspace
  2674. newprt1.Parent = newgun
  2675. newprt2.Parent = newgun
  2676. newprt3.Parent = newgun
  2677. newprt4.Parent = newgun
  2678. newprt5.Parent = newgun
  2679. newprt6.Parent = newgun
  2680. neww1.Parent=newprt1
  2681. neww2.Parent=newprt2
  2682. neww3.Parent=newprt3
  2683. neww4.Parent=newprt4
  2684. neww5.Parent=newprt5
  2685. neww6.Parent=newprt6
  2686. end
  2687. end
  2688. end
  2689. end))
  2690. Character.Humanoid.WalkSpeed = 14
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement