WinslowMau

Untitled

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