Advertisement
BINO2002

Untitled

Apr 1st, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.51 KB | None | 0 0
  1. --MADE BY OneLegend (NOT THE SCRIPT) Thanks to TheRedAngel for letting me add. Feel free to take his model too. http://www.roblox.com/TheRedAngels-SB-Gift-NEW-SCRIPTS-item?id=88063410
  2. --REGULAR SCRIPT: Go down to line 4 and put your name where it says "BRICKER24"
  3.  
  4. Player = game:GetService("Players").BINO2002
  5. Character = Player.Character
  6. PlayerGui = Player.PlayerGui
  7. Backpack = Player.Backpack
  8. Torso = Character.Torso
  9. Head = Character.Head
  10. LeftArm = Character["Left Arm"]
  11. LeftLeg = Character["Left Leg"]
  12. RightArm = Character["Right Arm"]
  13. RightLeg = Character["Right Leg"]
  14. LS = Torso["Left Shoulder"]
  15. LH = Torso["Left Hip"]
  16. RS = Torso["Right Shoulder"]
  17. RH = Torso["Right Hip"]
  18. ModelName = "Weapon"
  19. attack = false
  20. attacktype = 1
  21. Hitdeb = 0
  22. Neck = Torso.Neck
  23. local neckcf0 = Neck.C0
  24. ----------------------------
  25. --Customize
  26. Ammo = 10000
  27. --if (string.match(Player.Unlocks.Value,"RasAlgethi Ammo+") ~= nil) then
  28. MaxAmmo = 10000000
  29. --else
  30. --MaxAmmo = 10000000
  31. --end
  32. mindamage = 12
  33. maxdamage = 30
  34. crtmaxdamage = 39
  35. omindamage = mindamage
  36. omaxdamage = maxdamage
  37. ocrtmaxdamage = crtmaxdamage
  38. crtrate = 100/5
  39. --100%/critpercentage
  40. oblkbrkr = 0
  41. blockbreaker = oblkbrkr
  42. spread = 2
  43. spread = spread*100
  44. Ammoregen = 20
  45. --if (string.match(Player.Unlocks.Value,"RasAlgethi Range+") ~= nil) then
  46. range = 700
  47. --else
  48. --range = 15000
  49. --end
  50. rangepower = 50
  51. CurrentAmmo = "Normal"
  52. handlecolor = BrickColor.new("Dark gray")
  53. bcolor = BrickColor.new("Pastel yellow")
  54. gemcolor = BrickColor.new("Black")
  55. ammotrail = BrickColor.new("Pastel brown")
  56. ToolName = "Ras Algethi"
  57. ---------------------------------------------------------------------------------------------------------------------------------------
  58. if Character:findFirstChild("EquippedVal",true) ~= nil then
  59. Character:findFirstChild("EquippedVal",true).Parent = nil
  60. end
  61. ev = Instance.new("BoolValue",Character)
  62. ev.Name = "EquippedVal"
  63. ev.Value = false
  64. if Character:findFirstChild("Block",true) ~= nil then
  65. Character:findFirstChild("Block",true).Parent = nil
  66. end
  67. --player
  68. player = nil
  69. --welds
  70. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  71. --what anim
  72. anim = "none"
  73. --other var
  74. player = Player
  75. ch = Character
  76. --save shoulders
  77. AoETrue = {}
  78. RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
  79. function RWFunc()
  80. RW.Part1 = ch["Right Arm"]
  81. RSH.Part1 = nil
  82. end
  83. function LWFunc()
  84. LW.Part1 = ch["Left Arm"]
  85. LSH.Part1 = nil
  86. end
  87. function RWLFunc()
  88. RWL.Part1 = ch["Right Leg"]
  89. RHL.Part1 = nil
  90. ch["Right Leg"].Name = "RightLeg"
  91. RightLeg.CanCollide = false
  92. end
  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. function RWLRem()
  100. RightLeg.Name = "Right Leg"
  101. RWL.Part1 = nil
  102. RHL.Part1 = ch["Right Leg"]
  103. RightLeg.CanCollide = false
  104. end
  105. function LWLRem()
  106. LeftLeg.Name = "Left Leg"
  107. LWL.Part1 = nil
  108. LHL.Part1 = ch["Left Leg"]
  109. LeftLeg.CanCollide = false
  110. end
  111. function RWRem()
  112. RW.Part1 = nil
  113. RSH.Part1 = ch["Right Arm"]
  114. end
  115. function LWRem()
  116. LW.Part1 = nil
  117. LSH.Part1 = ch["Left Arm"]
  118. end
  119. if Character:findFirstChild(ModelName,true) ~= nil then
  120. Character:findFirstChild(ModelName,true).Parent = nil
  121. RHL.Part1 = ch["Right Leg"]
  122. LHL.Part1 = ch["Left Leg"]
  123. RSH.Part1 = ch["Right Arm"]
  124. LSH.Part1 = ch["Left Arm"]
  125. end
  126. local swordholder = Instance.new("Model")
  127. swordholder.Name = ModelName
  128. swordholder.Parent = Character
  129. --derp
  130. RW.Part0 = ch.Torso
  131. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  132. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  133. RW.Parent = swordholder
  134. --
  135. LW.Part0 = ch.Torso
  136. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  137. LW.C1 = CFrame.new(0, 0.5, 0)
  138. LW.Parent = swordholder
  139. --
  140. RWL.Part0 = ch.Torso
  141. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
  142. RWL.C1 = CFrame.new(0.5, 1, 0)
  143. RWL.Parent = swordholder
  144. --
  145. LWL.Part0 = ch.Torso
  146. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
  147. LWL.C1 = CFrame.new(-0.5, 1, 0)
  148. LWL.Parent = swordholder
  149. local msh1 = Instance.new("CylinderMesh")
  150. msh1.Scale = Vector3.new(1,1,1)
  151. local msh2 = Instance.new("BlockMesh")
  152. msh2.Scale = Vector3.new(1,1,1)
  153. local msh3 = Instance.new("CylinderMesh")
  154. msh3.Scale = Vector3.new(1,1,1)
  155. local msh4 = Instance.new("CylinderMesh")
  156. msh4.Scale = Vector3.new(1,1,1)
  157. local msh5 = Instance.new("CylinderMesh")
  158. msh5.Scale = Vector3.new(1,1,1)
  159. local msh6 = Instance.new("BlockMesh")
  160. msh6.Scale = Vector3.new(1,1,1)
  161. local torsc = false
  162. for i,z in pairs(Character:GetChildren()) do
  163. if z.className == "CharacterMesh" then
  164. if z.BodyPart == Enum.BodyPart.Torso then
  165. torsc = true
  166. end
  167. end
  168. end
  169. if torsc then
  170. msh7 = Instance.new("SpecialMesh")
  171. msh7.MeshId = "http://www.roblox.com/asset/?id=3270017"
  172. msh7.Scale = Vector3.new(2.01,1,1.01)
  173. msh7.Scale = Vector3.new(2.01,1,1.01)
  174. else
  175. msh7 = Instance.new("BlockMesh")
  176. msh7.Scale = Vector3.new(2.01,0.1,1.01)
  177. end
  178. local msh8 = Instance.new("SpecialMesh")
  179. msh8.MeshId = "http://www.roblox.com/asset/?id=3270017"
  180. msh8.Scale = Vector3.new(0.5,0.5,7)
  181. msh8.Scale = Vector3.new(0.5,0.5,7)
  182. local msh9 = Instance.new("BlockMesh")
  183. msh9.Scale = Vector3.new(1,1,1)
  184. local prt1 = Instance.new("Part")
  185. prt1.formFactor = 3
  186. prt1.CanCollide = false
  187. prt1.Name = "Handle"
  188. prt1.Locked = true
  189. prt1.Size = Vector3.new(0.3,1,0.3)
  190. prt1.Parent = swordholder
  191. msh1.Parent = prt1
  192. prt1.BrickColor = handlecolor
  193. local prt2 = Instance.new("Part")
  194. prt2.formFactor = 3
  195. prt2.CanCollide = false
  196. prt2.Name = "Handle2"
  197. prt2.Locked = true
  198. prt2.Size = Vector3.new(0.5,0.2,1.5)
  199. prt2.Parent = swordholder
  200. msh2.Parent = prt2
  201. prt2.BrickColor = handlecolor
  202. local prt3 = Instance.new("Part")
  203. prt3.formFactor = 3
  204. prt3.CanCollide = false
  205. prt3.Name = "Handle3"
  206. prt3.Locked = true
  207. prt3.Size = Vector3.new(0.7,1.2,0.7)
  208. prt3.Parent = swordholder
  209. msh3.Parent = prt3
  210. prt3.BrickColor = bcolor
  211. local prt4 = Instance.new("Part")
  212. prt4.formFactor = 3
  213. prt4.CanCollide = false
  214. prt4.Name = "BackBarrel"
  215. prt4.Locked = true
  216. prt4.Size = Vector3.new(0.5,1.2,0.5)
  217. prt4.Parent = swordholder
  218. msh4.Parent = prt4
  219. prt4.BrickColor = handlecolor
  220. local prt5 = Instance.new("Part")
  221. prt5.formFactor = 3
  222. prt5.CanCollide = false
  223. prt5.Name = "Barrel"
  224. prt5.Locked = true
  225. prt5.Size = Vector3.new(0.4,2.5,0.4)
  226. prt5.Parent = swordholder
  227. msh5.Parent = prt5
  228. prt5.BrickColor = handlecolor
  229. local prt6 = Instance.new("Part")
  230. prt6.formFactor = 3
  231. prt6.CanCollide = false
  232. prt6.Name = "BarrelHandle"
  233. prt6.Locked = true
  234. prt6.Size = Vector3.new(0.3,1,0.3)
  235. prt6.Parent = swordholder
  236. msh6.Parent = prt6
  237. prt6.BrickColor = handlecolor
  238. local prt7 = Instance.new("Part")
  239. prt7.formFactor = 3
  240. prt7.CanCollide = false
  241. prt7.Name = "HolsterStrap"
  242. prt7.Locked = true
  243. prt7.Size = Vector3.new(1,1,1)
  244. prt7.Parent = swordholder
  245. msh7.Parent = prt7
  246. prt7.BrickColor = handlecolor
  247. local prt8 = Instance.new("Part")
  248. prt8.formFactor = 3
  249. prt8.CanCollide = false
  250. prt8.Name = "Holster"
  251. prt8.Locked = true
  252. prt8.Size = Vector3.new(1,1,1)
  253. prt8.Parent = swordholder
  254. msh8.Parent = prt8
  255. prt8.BrickColor = handlecolor
  256. local prt9 = Instance.new("Part")
  257. prt9.formFactor = 3
  258. prt9.CanCollide = false
  259. prt9.Name = "AmmoHolster"
  260. prt9.Locked = true
  261. prt9.Size = Vector3.new(0.2,1,0.7)
  262. prt9.Parent = swordholder
  263. msh9.Parent = prt9
  264. prt9.BrickColor = handlecolor
  265. local w1 = Instance.new("Weld")
  266. w1.Parent = prt1
  267. w1.Part0 = prt1
  268. local w2 = Instance.new("Weld")
  269. w2.Parent = prt2
  270. w2.Part0 = prt2
  271. w2.Part1 = prt1
  272. w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  273. w2.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0.6,0.5)
  274. local w3 = Instance.new("Weld")
  275. w3.Parent = prt3
  276. w3.Part0 = prt3
  277. w3.Part1 = prt2
  278. w3.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  279. w3.C0 = CFrame.Angles(math.rad(90+45), 0, 0) * CFrame.new(0, 0.25,-0.5)
  280. local w4 = Instance.new("Weld")
  281. w4.Parent = prt4
  282. w4.Part0 = prt4
  283. w4.Part1 = prt2
  284. w4.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  285. w4.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,0.5)
  286. local w5 = Instance.new("Weld")
  287. w5.Parent = prt5
  288. w5.Part0 = prt5
  289. w5.Part1 = prt3
  290. w5.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  291. w5.C0 = CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 1.5,0)
  292. local w6 = Instance.new("Weld")
  293. w6.Parent = prt6
  294. w6.Part0 = prt6
  295. w6.Part1 = prt3
  296. w6.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  297. w6.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 1.5,-0.5)
  298. local w7 = Instance.new("Weld")
  299. w7.Parent = prt7
  300. w7.Part0 = prt7
  301. w7.Part1 = Torso
  302. w7.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  303. if torsc then
  304. w7.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 1,0)
  305. else
  306. w7.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(0, 1,0)
  307. end
  308. local w8 = Instance.new("Weld")
  309. w8.Parent = prt8
  310. w8.Part0 = prt8
  311. w8.Part1 = Torso
  312. w8.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  313. w8.C0 = CFrame.Angles(math.rad(45), 0, 0) * CFrame.new(-1.1, 1-0.25,0)
  314. local w9 = Instance.new("Weld")
  315. w9.Parent = prt9
  316. w9.Part0 = prt9
  317. w9.Part1 = Torso
  318. w9.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  319. w9.C0 = CFrame.Angles(math.rad(45), 0, 0) * CFrame.new(1, 0.75,-0.5)
  320. local RAP = Instance.new("Part")
  321. RAP.formFactor = 0
  322. RAP.CanCollide = false
  323. RAP.Name = "RAPart"
  324. RAP.Locked = true
  325. RAP.Size = Vector3.new(1,1,1)
  326. RAP.Parent = swordholder
  327. RAP.Transparency = 1
  328. local w = Instance.new("Weld")
  329. w.Parent = RAP
  330. w.Part0 = RAP
  331. w.Part1 = RightArm
  332. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  333. w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0)
  334. function unequipweld()
  335. w1.Part1 = Torso
  336. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), math.rad(0)) * CFrame.new(0, 0,0)
  337. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180),math.rad(-0), math.rad(0)) * CFrame.new(-1.15, 1, -0.6)
  338. end
  339. unequipweld()
  340. function equipweld()
  341. w1.Part0 = prt1
  342. w1.Part1 = RAP
  343. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  344. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  345. end
  346. function ss(parent,p) --Slash
  347. local SlashSound = Instance.new("Sound")
  348. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  349. SlashSound.Parent = parent
  350. SlashSound.Volume = .7
  351. SlashSound.Pitch = p
  352. SlashSound.PlayOnRemove = true
  353. coroutine.resume(coroutine.create(function()
  354. wait()
  355. SlashSound.Parent = nil
  356. end))
  357. end
  358. function uss(parent,p) --unsheath
  359. local SlashSound = Instance.new("Sound")
  360. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  361. SlashSound.Parent = parent
  362. SlashSound.Volume = .7
  363. SlashSound.Pitch = p
  364. SlashSound.PlayOnRemove = true
  365. coroutine.resume(coroutine.create(function()
  366. wait()
  367. SlashSound.Parent = nil
  368. end))
  369. end
  370. function cs(parent,p) --Magic Charge
  371. local SlashSound = Instance.new("Sound")
  372. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  373. SlashSound.Parent = parent
  374. SlashSound.Parent = parent
  375. SlashSound.Volume = .7
  376. SlashSound.Pitch = p
  377. SlashSound.PlayOnRemove = true
  378. coroutine.resume(coroutine.create(function()
  379. wait()
  380. SlashSound.Parent = nil
  381. end))
  382. end
  383. function ls(parent,p) --Lazer Sound
  384. local SlashSound = Instance.new("Sound")
  385. SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158"
  386. SlashSound.Parent = parent
  387. SlashSound.Parent = parent
  388. SlashSound.Volume = .7
  389. SlashSound.Pitch = p
  390. SlashSound.PlayOnRemove = true
  391. coroutine.resume(coroutine.create(function()
  392. wait()
  393. SlashSound.Parent = nil
  394. end))
  395. end
  396. function ts(parent,p)
  397. local SlashSound = Instance.new("Sound")
  398. SlashSound.SoundId = "http://www.roblox.com/asset/?id=12222030"
  399. SlashSound.Parent = parent
  400. SlashSound.Parent = parent
  401. SlashSound.Volume = .7
  402. SlashSound.Pitch = p
  403. SlashSound.PlayOnRemove = true
  404. coroutine.resume(coroutine.create(function()
  405. wait()
  406. SlashSound.Parent = nil
  407. end))
  408. end
  409. function fs(parent,p) --Fire Sound
  410. local SlashSound = Instance.new("Sound")
  411. SlashSound.SoundId = "http://www.roblox.com/asset/?id=31758982"
  412. SlashSound.Parent = parent
  413. SlashSound.Parent = parent
  414. SlashSound.Volume = .7
  415. SlashSound.Pitch = p
  416. SlashSound.PlayOnRemove = true
  417. coroutine.resume(coroutine.create(function()
  418. wait()
  419. SlashSound.Parent = nil
  420. end))
  421. end
  422. function ms(parent,p) --Metal Cling Sound
  423. local SlashSound = Instance.new("Sound")
  424. SlashSound.SoundId = "rbxasset://sounds\\metal.ogg"
  425. SlashSound.Parent = parent
  426. SlashSound.Volume = 5
  427. SlashSound.Pitch = p
  428. SlashSound.PlayOnRemove = true
  429. coroutine.resume(coroutine.create(function()
  430. wait()
  431. SlashSound.Parent = nil
  432. end))
  433. end
  434. function bs(parent,p) --Berserk Sound
  435. local SlashSound = Instance.new("Sound")
  436. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2676305"
  437. SlashSound.Parent = parent
  438. SlashSound.Parent = parent
  439. SlashSound.Volume = 1
  440. SlashSound.Pitch = p
  441. SlashSound.PlayOnRemove = true
  442. coroutine.resume(coroutine.create(function()
  443. wait()
  444. SlashSound.Parent = nil
  445. end))
  446. end
  447. function hs(parent,p) --Ammo Hit Sound
  448. ms(parent,p)
  449. end
  450. function as(parent,p) --Gun Shoot Sound
  451. local SlashSound = Instance.new("Sound")
  452. SlashSound.SoundId = "http://roblox.com/asset/?id=10209257"
  453. SlashSound.Parent = parent
  454. SlashSound.Volume = 0.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 ars(parent,p) --Gun Reload Sound
  463. local SlashSound = Instance.new("Sound")
  464. SlashSound.SoundId = "http://roblox.com/asset/?id=10209869"
  465. SlashSound.Parent = parent
  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. --
  476. --
  477. function returndmg()
  478. mindamage = omindamage
  479. maxdamage = omaxdamage
  480. crtmaxdamage = ocrtmaxdamage
  481. end
  482. function subdmg(sub)
  483. mindamage = omindamage - sub
  484. maxdamage = omaxdamage - sub
  485. crtmaxdamage = ocrtmaxdamage - sub
  486. end
  487. function prcntdmg(sub)
  488. mindamage = math.floor(omindamage - (omindamage*(sub/100)))
  489. maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100)))
  490. crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100)))
  491. end
  492. function tagHumanoid(humanoid, player)
  493. local creator_tag = Instance.new("ObjectValue")
  494. creator_tag.Value = player
  495. creator_tag.Name = "creator"
  496. creator_tag.Parent = humanoid
  497. end
  498. function untagHumanoid(humanoid)
  499. if humanoid ~= nil then
  500. local tag = humanoid:findFirstChild("creator")
  501. if tag ~= nil then
  502. tag.Parent = nil
  503. end
  504. end
  505. end
  506. local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  507. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  508. end
  509. function hideanim()
  510. attack = true
  511. ars(Head,0.85)
  512. for i = 0.25 ,1 ,0.25 do
  513. wait()
  514. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  515. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-15*i), 0, 0)
  516. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(25+10*i))
  517. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  518. w3.C0 = CFrame.Angles(math.rad(90+25*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  519. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5*i),0,math.rad(0))
  520. end
  521. for i = 0.1 ,1 ,0.1 do
  522. wait()
  523. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  524. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(10-10*i), 0, 0)
  525. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(35+10*i))
  526. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  527. w3.C0 = CFrame.Angles(math.rad(115+20*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  528. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5-5*i),0,math.rad(0))
  529. end
  530. for i = 0.1 ,1 ,0.1 do
  531. wait()
  532. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90-130*i),math.rad(0),math.rad(-60+60*i))
  533. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  534. 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))
  535. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  536. w3.C0 = CFrame.Angles(math.rad(135), 0, 0) * CFrame.new(0, 0.25,-0.5)
  537. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10+40*i),0,math.rad(-30*i))
  538. end
  539. unequipweld()
  540. for i = 0.1 ,1 ,0.1 do
  541. wait()
  542. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+20*i),math.rad(0),math.rad(0))
  543. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  544. 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))
  545. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  546. w3.C0 = CFrame.Angles(math.rad(135), 0, 0) * CFrame.new(0, 0.25,-0.5)
  547. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(30-30*i),0,math.rad(-30+30*i))
  548. end
  549. Neck.C0 = neckcf0
  550. RWRem()
  551. LWRem()
  552. attack = false
  553. end
  554. function equipanim()
  555. attack = true
  556. RWFunc()
  557. w3.C0 = CFrame.Angles(math.rad(135), 0, 0) * CFrame.new(0, 0.25,-0.5)
  558. for i = 0.1 ,1 ,0.1 do
  559. wait()
  560. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20*i),math.rad(0),math.rad(0))
  561. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  562. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  563. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  564. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(30*i),0,math.rad(-30*i))
  565. end
  566. equipweld()
  567. ars(Head,1)
  568. for i = 0.1 ,1 ,0.1 do
  569. wait()
  570. RW.C0 = CFrame.new(1.5, 0.5, -0.25*i) * CFrame.Angles(math.rad(-20+130*i),math.rad(0),math.rad(0))
  571. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  572. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  573. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  574. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(30-35*i),0,math.rad(-30))
  575. end
  576. LWFunc()
  577. for i = 0.1 ,1 ,0.1 do
  578. wait()
  579. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(110-20*i),math.rad(0),math.rad(-60*i))
  580. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25*i), 0, 0)
  581. LW.C0 = CFrame.new(-1.5, 0.5, -0.5*i) * CFrame.Angles(math.rad(40*i),math.rad(0),math.rad(25*i))
  582. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  583. w3.C0 = CFrame.Angles(math.rad(135-45*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  584. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+5*i),0,math.rad(-30+30*i))
  585. end
  586. Neck.C0 = neckcf0
  587. attack = false
  588. end
  589. function faketors()
  590. local T = Instance.new("Part")
  591. T.formFactor = 0
  592. T.CanCollide = false
  593. T.Name = "FakeTorso"
  594. T.Locked = true
  595. T.Size = Torso.Size
  596. T.Parent = swordholder
  597. T.Transparency = 1
  598. T.BrickColor = Torso.BrickColor
  599. for i,z in pairs(Character:GetChildren()) do
  600. if z.className == "CharacterMesh" then
  601. if z.BodyPart == Enum.BodyPart.Torso then
  602. local SM = Instance.new("SpecialMesh",T)
  603. SM.MeshId = "http://www.roblox.com/asset/?id=" .. z.MeshId
  604. if z.BaseTextureId ~= 0 then
  605. SM.TextureId = z.BaseTextureId
  606. elseif z.OverlayTextureId ~= 0 then
  607. SM.TextureId = z.OverlayTextureId
  608. else
  609. SM.TextureId = ""
  610. end
  611. end
  612. end
  613. end
  614. local wt = Instance.new("Weld")
  615. wt.Parent = T
  616. wt.Part0 = T
  617. wt.Part1 = Torso
  618. RW.Part0 = T
  619. LW.Part0 = T
  620. T.Transparency = 0
  621. Torso.Transparency = 1
  622. RHL.Part0 = T
  623. LHL.Part0 = T
  624. return wt,T
  625. end
  626. if (script.Parent.className ~= "HopperBin") then
  627. Tool = Instance.new("HopperBin")
  628. Tool.Parent = Backpack
  629. Tool.Name = ToolName
  630. script.Parent = Tool
  631. end
  632. Bin = script.Parent
  633. function damagesplat(dmg,hit,crit,blocked)
  634. local mo = Instance.new("Model")
  635. mo.Name = dmg
  636. local pa = Instance.new("Part",mo)
  637. pa.formFactor = 3
  638. pa.Size = Vector3.new(0.8,0.3,0.8)
  639. if crit then
  640. pa.BrickColor = BrickColor.new("Bright yellow")
  641. elseif not crit then
  642. pa.BrickColor = BrickColor.new("Bright red")
  643. end
  644. if blocked then pa.BrickColor = BrickColor.new("Bright blue") end
  645. pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0)
  646. pa.Name = "Head"
  647. local hah = Instance.new("Humanoid")
  648. hah.Parent = mo
  649. hah.MaxHealth = 0
  650. hah.Health = 0
  651. local bp = Instance.new("BodyPosition")
  652. bp.P = 14000
  653. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  654. bp.position = hit.Position + Vector3.new(0, 5, 0)
  655. coroutine.resume(coroutine.create(function()
  656. wait()
  657. mo.Parent = workspace
  658. bp.Parent = pa
  659. wait(1.4)
  660. mo:remove()
  661. end))
  662. return pa
  663. end
  664. function damage(hum,dmg,critornot)
  665. local pa = damagesplat(dmg,hum.Torso,critornot)
  666. hum:TakeDamage(dmg)
  667. coroutine.resume(coroutine.create(function()
  668. tagHumanoid(hum,Player)
  669. wait(1)
  670. untagHumanoid(hum)
  671. end))
  672. return pa
  673. end
  674. function AddAmmo(add)
  675. Ammo = Ammo + add
  676. if Ammo > MaxAmmo then
  677. Ammo = MaxAmmo
  678. end
  679. end
  680. function ADmg(humm,hit,pos)
  681. if CurrentAmmo == "Normal" then
  682. if humm.Parent:findFirstChild("Block") ~= nil then
  683. if humm.Parent.Block.Value then
  684. damagesplat(0,humm.Torso,false,true)
  685. return
  686. end
  687. end
  688. prcntdmg(0)
  689. if critrandomizer ~= 1 then
  690. local rndmdamage = math.random(mindamage,maxdamage)
  691. damage(humm,rndmdamage,false)
  692. elseif critrandomizer == 1 then
  693. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  694. damage(humm,rndmdamage,true)
  695. end
  696. elseif CurrentAmmo == "Poison" then
  697. if humm.Parent:findFirstChild("Block") ~= nil then
  698. if humm.Parent.Block.Value then
  699. damagesplat(0,humm.Torso,false,true)
  700. return
  701. end
  702. end
  703. prcntdmg(25)
  704. if critrandomizer ~= 1 then
  705. local rndmdamage = math.random(mindamage,maxdamage)
  706. damage(humm,rndmdamage,false)
  707. elseif critrandomizer == 1 then
  708. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  709. damage(humm,rndmdamage,true)
  710. end
  711. if math.random(1,5) == 1 then
  712. local poisoncount = math.random(2,10)
  713. coroutine.resume(coroutine.create(function()
  714. repeat
  715. wait(1.5)
  716. poisoncount = poisoncount - 1
  717. local rndmdamage = math.floor(math.random(1,5)/2)
  718. local pa = damage(humm,rndmdamage,false)
  719. pa.BrickColor = BrickColor.new("Alder")
  720. until poisoncount <= 0
  721. end))
  722. end
  723. elseif CurrentAmmo == "Knockback" then
  724. if humm.Parent:findFirstChild("Block") ~= nil then
  725. if humm.Parent.Block.Value then
  726. damagesplat(0,humm.Torso,false,true)
  727. return
  728. end
  729. end
  730. prcntdmg(25)
  731. if critrandomizer ~= 1 then
  732. local rndmdamage = math.random(mindamage,maxdamage)
  733. damage(humm,rndmdamage,false)
  734. elseif critrandomizer == 1 then
  735. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  736. damage(humm,rndmdamage,true)
  737. end
  738. local vel = Instance.new("BodyVelocity",humm.Torso)
  739. vel.maxForce = Vector3.new(1,1,1) * math.huge
  740. vel.P = vel.P * 5
  741. vel.velocity = Vector3.new(0,1,0) + CFrame.new(Torso.Position,humm.Torso.Position).lookVector * 10
  742. coroutine.resume(coroutine.create(function()
  743. wait() wait() wait() wait()
  744. vel.Parent=nil
  745. end))
  746. returndmg()
  747. end
  748. end
  749. function OT(hit) --Normal Damage
  750. if Hitdeb == 1 then return end
  751. if hit.Parent == nil then return end
  752. local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
  753. if hum.Health <= 0 then return end
  754. if hit.Parent:findFirstChild("Block") ~= nil then
  755. if hit.Parent.Block.Value then
  756. damagesplat(0,hum.Torso,false,true)
  757. Hitdeb = 1
  758. if hit.Parent.Block:findFirstChild("BlockPower") ~= nil then
  759. if hit.Parent.Block.BlockPower.Value <= 1 then
  760. hit.Parent.Block.Value = false
  761. elseif hit.Parent.Block.BlockPower.Value > 1 then
  762. local critrandomizer = math.random(crtrate)
  763. if critrandomizer ~= 1 then
  764. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker
  765. elseif critrandomizer == 1 then
  766. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker + 2
  767. end
  768. end
  769. end
  770. return end end
  771. local critrandomizer = math.random(crtrate)
  772. if critrandomizer ~= 1 then
  773. local rndmdamage = math.random(mindamage,maxdamage)
  774. damage(hum,rndmdamage,false)
  775. elseif critrandomizer == 1 then
  776. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  777. damage(hum,rndmdamage,true)
  778. end
  779. Hitdeb = 1
  780. end
  781. end
  782. function AoE(p,magnitude)
  783. local c = game.Workspace:GetChildren();
  784. for i = 1, #c do
  785. local hum = c[i]:findFirstChild("Humanoid")
  786. if hum ~= nil and hum.Health ~= 0 then
  787. local head = c[i]:findFirstChild("Head");
  788. if head ~= nil then
  789. local mag = (head.Position - p).magnitude;
  790. if mag <= magnitude and c[i].Name ~= Character.Name then
  791. local foundd = false
  792. for ii = 1 , #AoETrue do
  793. if AoETrue[ii] == c[i].Name then
  794. foundd = true
  795. end
  796. end
  797. if foundd then
  798. end
  799. --
  800. if not foundd then
  801. local critrandomizer = math.random(crtrate)
  802. if critrandomizer ~= 1 then
  803. local rndmdamage = math.random(mindamage,maxdamage)
  804. damage(hum,rndmdamage,false)
  805. elseif critrandomizer == 1 then
  806. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  807. damage(hum,rndmdamage,true)
  808. end
  809. table.insert(AoETrue,c[i].Name)
  810. end
  811. end
  812. end
  813. end
  814. end
  815. for ii = 1 , #AoETrue do
  816. table.remove(AoETrue,#AoETrue)
  817. end
  818. end
  819. --
  820. --
  821. function effect(Color,Ref,LP,P1)
  822. local effectsmsh = Instance.new("BlockMesh")
  823. effectsmsh.Scale = Vector3.new(1,1,1)
  824. effectsmsh.Name = "Mesh"
  825. local effectsg = Instance.new("Part")
  826. effectsg.formFactor = 3
  827. effectsg.CanCollide = false
  828. effectsg.Name = "Eff"
  829. effectsg.Locked = true
  830. effectsg.Anchored = true
  831. effectsg.Size = Vector3.new(0.2,1,0.2)
  832. effectsg.Parent = swordholder
  833. effectsmsh.Parent = effectsg
  834. effectsg.BrickColor = BrickColor.new(Color)
  835. effectsg.Reflectance = Ref
  836. local point1 = P1
  837. local mg = (LP.p - point1.p).magnitude
  838. effectsg.Size = Vector3.new(0.2,mg,0.2)
  839. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  840. coroutine.resume(coroutine.create(function()
  841. for i = 0 , 1 , 0.1 do
  842. wait()
  843. effectsg.Transparency = 1*i
  844. effectsmsh.Scale = Vector3.new(1-1*i,1,1-1*i)
  845. end
  846. wait()
  847. effectsg.Parent = nil
  848. end))
  849. end
  850. --
  851. con = nil
  852. function dmgcnnct()
  853. if con ~= nil then
  854. con:disconnect()
  855. Hitdeb = 0
  856. end
  857. con = prt11.Touched:connect(OT)
  858. end
  859. function dmgdc()
  860. if con ~= nil then
  861. con:disconnect()
  862. Hitdeb = 0
  863. end
  864. end
  865. function rptddmg(value,des,inc)
  866. coroutine.resume(coroutine.create(function()
  867. repeat
  868. wait(inc)
  869. Hitdeb = 0
  870. until value == des
  871. end))
  872. end
  873. function atktype(s,e)
  874. coroutine.resume(coroutine.create(function ()
  875. attacktype = e
  876. wait(0.25)
  877. attacktype = s
  878. end))
  879. end
  880. function shoottrail(mouse)
  881. local p1 = (prt5.CFrame * CFrame.new(0,-prt5.Size.y/2,0)).p
  882. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread)) / 100) * (p1-mouse.Hit.p).magnitude/100
  883. local dir = CFrame.new((p1+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  884. local hit,pos = rayCast(p1,dir.lookVector,10,Character)
  885. local rangepos = range
  886. local function drawtrail(From,To)
  887. local effectsmsh = Instance.new("CylinderMesh")
  888. effectsmsh.Scale = Vector3.new(1,1,1)
  889. effectsmsh.Name = "Mesh"
  890. local effectsg = Instance.new("Part")
  891. effectsg.formFactor = 3
  892. effectsg.CanCollide = false
  893. effectsg.Name = "Eff"
  894. effectsg.Locked = true
  895. effectsg.Anchored = true
  896. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  897. effectsg.Parent = swordholder
  898. effectsmsh.Parent = effectsg
  899. effectsg.BrickColor = ammotrail
  900. effectsg.Reflectance = 0.25
  901. local LP = From
  902. local point1 = To
  903. local mg = (LP - point1).magnitude
  904. effectsmsh.Scale = Vector3.new(1,mg*5,1)
  905. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  906. coroutine.resume(coroutine.create(function()
  907. for i = 0 , 1 , 0.1 do
  908. wait()
  909. effectsg.Transparency = 1*i
  910. effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i)
  911. end
  912. effectsg.Parent = nil
  913. end))
  914. end
  915. local newpos = p1
  916. local inc = rangepower
  917. repeat
  918. wait()
  919. rangepos = rangepos - 10
  920. dir = dir * CFrame.Angles(math.rad(-0.1),0,0)
  921. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  922. drawtrail(newpos,pos)
  923. newpos = newpos + (dir.lookVector * inc)
  924. if inc >= 20 then
  925. inc = inc - 10
  926. end
  927. if hit ~= nil then
  928. rangepos = 0
  929. end
  930. until rangepos <= 0
  931. if hit ~= nil then
  932. hs(Head,1)
  933. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  934. hum = hit.Parent.Humanoid
  935. ADmg(hum,hit,pos)
  936. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  937. hum = hit.Parent.Parent.Humanoid
  938. ADmg(hum,hit,pos)
  939. end
  940. end
  941. end
  942. function Ready(mouse)
  943. if Ammo <= 0 then Reload() return end
  944. attack = true
  945. local wt,t = faketors()
  946. w7.Part1 = t
  947. w8.Part1 = t
  948. w9.Part1 = t
  949. Character.Humanoid.WalkSpeed = 5
  950. for i = 0.2 , 1 , 0.2 do
  951. wait()
  952. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  953. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-15*i), 0, 0)
  954. 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))
  955. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  956. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  957. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  958. wt.C0 = CFrame.Angles(0, math.rad(50*i), 0)
  959. end
  960. for i = 0.2 , 1 , 0.2 do
  961. wait()
  962. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  963. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(10-10*i), 0, 0)
  964. 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))
  965. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  966. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  967. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  968. wt.C0 = CFrame.Angles(0, math.rad(50+10*i), 0)
  969. end
  970. wait() wait()
  971. repeat
  972. wait()
  973. as(Head,1)
  974. coroutine.resume(coroutine.create(function()
  975. for z = 1 ,2 do
  976. coroutine.resume(coroutine.create(function()
  977. local meshb1 = Instance.new("BlockMesh")
  978. meshb1.Scale = Vector3.new(1,1,1)
  979. local shellb1 = Instance.new("Part")
  980. meshb1.Parent = shellb1
  981. shellb1.Anchored = true
  982. shellb1.formFactor = 3
  983. shellb1.Size = Vector3.new(0.3,0.3,0.3) * (math.random(100,300)/100)
  984. 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)
  985. shellb1.Parent = swordholder
  986. shellb1.Transparency = 0
  987. if math.random(1,2) == 1 then
  988. shellb1.BrickColor = BrickColor.new("Bright red")
  989. else
  990. shellb1.BrickColor = BrickColor.new("Bright orange")
  991. end
  992. shellb1.CanCollide = false
  993. local incre = math.random(0,60)/100
  994. for i = 0 , 1 , 0.1 do
  995. wait()
  996. shellb1.CFrame = shellb1.CFrame + Torso.CFrame.lookVector*incre
  997. shellb1.Transparency = 1*i
  998. meshb1.Scale = Vector3.new(1+1*i,1+1*i,1+1*i)
  999. end
  1000. shellb1.Parent=nil
  1001. end))
  1002. end
  1003. shoottrail(mouse)
  1004. end))
  1005. Ammo = Ammo - 1
  1006. for i = 0.5 , 1 , 0.5 do
  1007. wait()
  1008. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1009. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-5*i), 0, 0)
  1010. LW.C0 = CFrame.new(-1.5, 0.5, -0) * CFrame.Angles(math.rad(95+5*i),math.rad(0),math.rad(25))
  1011. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1012. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1013. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1014. wt.C0 = CFrame.Angles(0, math.rad(60), 0)
  1015. end
  1016. for i = 0.5 , 1 , 0.5 do
  1017. wait()
  1018. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1019. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-5+5*i), 0, 0)
  1020. LW.C0 = CFrame.new(-1.5, 0.5, -0) * CFrame.Angles(math.rad(100-5*i),math.rad(0),math.rad(25))
  1021. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1022. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1023. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1024. wt.C0 = CFrame.Angles(0, math.rad(60), 0)
  1025. end
  1026. until not keyhold or Ammo <= 0
  1027. for i = 0.2 , 1 , 0.2 do
  1028. wait()
  1029. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1030. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15*i), 0, 0)
  1031. LW.C0 = CFrame.new(-1.5, 0.5, -0.25*i) * CFrame.Angles(math.rad(95-25*i),math.rad(0),math.rad(25))
  1032. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1033. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1034. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1035. wt.C0 = CFrame.Angles(0, math.rad(60-60*i), 0)
  1036. end
  1037. w7.Part1 = Torso
  1038. w8.Part1 = Torso
  1039. w9.Part1 = Torso
  1040. RW.Part0 = Torso
  1041. LW.Part0 = Torso
  1042. Torso.Transparency = 0
  1043. RHL.Part0 = Torso
  1044. LHL.Part0 = Torso
  1045. t.Parent = nil
  1046. Character.Humanoid.WalkSpeed = 14
  1047. for i = 0.2 , 1 , 0.2 do
  1048. wait()
  1049. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1050. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15+10*i), 0, 0)
  1051. 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))
  1052. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1053. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1054. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1055. end
  1056. wait(0.25)
  1057. attack = false
  1058. end
  1059. function Reload()
  1060. attack = true
  1061. ars(Head,0.75)
  1062. for i = 0.1 , 1 , 0.1 do
  1063. wait()
  1064. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60+20*i))
  1065. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-45*i), 0, 0)
  1066. 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))
  1067. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1068. w3.C0 = CFrame.Angles(math.rad(90+90*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1069. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10*i),0,math.rad(-20*i))
  1070. end
  1071. for i = 0.2 , 1 , 0.2 do
  1072. wait()
  1073. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40))
  1074. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-20+20*i), 0, 0)
  1075. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+40*i),math.rad(0),math.rad(10-10*i))
  1076. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1077. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1078. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10+20*i),0,math.rad(-20))
  1079. end
  1080. for i = 0.2 , 1 , 0.2 do
  1081. wait()
  1082. 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))
  1083. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(45*i), 0, 0)
  1084. 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))
  1085. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1086. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1087. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(10+10*i),0,math.rad(-20+10*i))
  1088. end
  1089. AddAmmo(Ammoregen)
  1090. for i = 0.2 , 1 , 0.2 do
  1091. wait()
  1092. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-45))
  1093. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(45+5*i), 0, 0)
  1094. LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(100-10*i),math.rad(0),math.rad(45))
  1095. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1096. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1097. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(20+5*i),0,math.rad(-10+5*i))
  1098. end
  1099. for i = 0.1 , 1 , 0.1 do
  1100. wait()
  1101. 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))
  1102. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(50-25*i), 0, 0)
  1103. 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))
  1104. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1105. w3.C0 = CFrame.Angles(math.rad(180-90*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1106. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(25-25*i),0,math.rad(-5+5*i))
  1107. end
  1108. Neck.C0 = neckcf0
  1109. attack = false
  1110. end
  1111. function NormalAmmo()
  1112. attack = true
  1113. for i = 0.1 , 1 , 0.1 do
  1114. wait()
  1115. 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))
  1116. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  1117. 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))
  1118. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1119. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1120. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5*i),0,0)
  1121. end
  1122. ars(Head,1)
  1123. for i = 0.2 , 1 , 0.2 do
  1124. wait()
  1125. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1126. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  1127. LW.C0 = CFrame.new(-1.5+0.25*i, 0.5, -0.5) * CFrame.Angles(math.rad(100),math.rad(0),math.rad(45))
  1128. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1129. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1130. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5-2.5*i),0,0)
  1131. end
  1132. for i = 0.1 , 1 , 0.2 do
  1133. wait()
  1134. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1135. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  1136. 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))
  1137. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1138. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1139. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(2.5+2.5*i),0,0)
  1140. end
  1141. for i = 0.1 , 1 , 0.2 do
  1142. wait()
  1143. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1144. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10*i), 0, 0)
  1145. 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))
  1146. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1147. w3.C0 = CFrame.Angles(math.rad(90+90*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1148. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5),0,0)
  1149. end
  1150. for i = 0.1 , 1 , 0.1 do
  1151. wait()
  1152. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1153. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15), 0, 0)
  1154. 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))
  1155. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1156. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1157. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5-10*i),0,0)
  1158. end
  1159. for i = 0.2 , 1 , 0.1 do
  1160. wait()
  1161. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1162. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15), 0, 0)
  1163. LW.C0 = CFrame.new(-1.5, 0.75, -0.5) * CFrame.Angles(math.rad(135-20*i),math.rad(0),math.rad(45))
  1164. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1165. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1166. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+2.5*i),0,0)
  1167. end
  1168. CurrentAmmo = "Normal"
  1169. ammotrail = BrickColor.new("White")
  1170. ars(Head,2)
  1171. for i = 0.2 , 1 , 0.1 do
  1172. wait()
  1173. 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))
  1174. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15-15*i), 0, 0)
  1175. 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))
  1176. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1177. w3.C0 = CFrame.Angles(math.rad(180-90*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1178. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-2.5+2.5*i),0,0)
  1179. end
  1180. for i = 0.2 , 1 , 0.1 do
  1181. wait()
  1182. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1183. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25*i), 0, 0)
  1184. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(25))
  1185. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1186. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1187. end
  1188. attack = false
  1189. end
  1190. function PoisonAmmo()
  1191. attack = true
  1192. for i = 0.1 , 1 , 0.1 do
  1193. wait()
  1194. 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))
  1195. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  1196. 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))
  1197. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1198. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1199. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5*i),0,0)
  1200. end
  1201. ars(Head,1)
  1202. for i = 0.2 , 1 , 0.2 do
  1203. wait()
  1204. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1205. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  1206. LW.C0 = CFrame.new(-1.5+0.25*i, 0.5, -0.5) * CFrame.Angles(math.rad(100),math.rad(0),math.rad(45))
  1207. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1208. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1209. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5-2.5*i),0,0)
  1210. end
  1211. for i = 0.1 , 1 , 0.2 do
  1212. wait()
  1213. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1214. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  1215. 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))
  1216. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1217. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1218. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(2.5+2.5*i),0,0)
  1219. end
  1220. for i = 0.1 , 1 , 0.2 do
  1221. wait()
  1222. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1223. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10*i), 0, 0)
  1224. 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))
  1225. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1226. w3.C0 = CFrame.Angles(math.rad(90+90*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1227. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5),0,0)
  1228. end
  1229. for i = 0.1 , 1 , 0.1 do
  1230. wait()
  1231. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1232. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15), 0, 0)
  1233. 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))
  1234. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1235. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1236. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5-10*i),0,0)
  1237. end
  1238. for i = 0.2 , 1 , 0.1 do
  1239. wait()
  1240. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1241. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15), 0, 0)
  1242. LW.C0 = CFrame.new(-1.5, 0.75, -0.5) * CFrame.Angles(math.rad(135-20*i),math.rad(0),math.rad(45))
  1243. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1244. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1245. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+2.5*i),0,0)
  1246. end
  1247. CurrentAmmo = "Poison"
  1248. ammotrail = BrickColor.new("Bright violet")
  1249. ars(Head,2)
  1250. for i = 0.2 , 1 , 0.1 do
  1251. wait()
  1252. 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))
  1253. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15-15*i), 0, 0)
  1254. 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))
  1255. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1256. w3.C0 = CFrame.Angles(math.rad(180-90*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1257. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-2.5+2.5*i),0,0)
  1258. end
  1259. for i = 0.2 , 1 , 0.1 do
  1260. wait()
  1261. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1262. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25*i), 0, 0)
  1263. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(25))
  1264. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1265. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1266. end
  1267. attack = false
  1268. coroutine.resume(coroutine.create(function()
  1269. repeat
  1270. wait(0.25+0.75*math.random())
  1271. if Ammo ~= 0 then
  1272. local meshb1 = Instance.new("SpecialMesh")
  1273. meshb1.Scale = Vector3.new(1,1,1)
  1274. meshb1.MeshType = "Sphere"
  1275. local shellb1 = Instance.new("Part")
  1276. meshb1.Parent = shellb1
  1277. shellb1.Anchored = true
  1278. shellb1.formFactor = 3
  1279. shellb1.Size = Vector3.new(0.3,0.3,0.3)
  1280. shellb1.CFrame = CFrame.new((prt5.CFrame * CFrame.new(0,-prt5.Size.y/2,0)).p)
  1281. shellb1.Parent = swordholder
  1282. shellb1.Transparency = 0
  1283. shellb1.BrickColor = BrickColor.new("Alder")
  1284. shellb1.CanCollide = false
  1285. for i = 0 , 1 , 0.1 do
  1286. wait()
  1287. shellb1.CFrame = shellb1.CFrame + Vector3.new(0,-0.15,0)
  1288. shellb1.Transparency = 1*i
  1289. meshb1.Scale = Vector3.new(1,1+3*i,1)
  1290. end
  1291. shellb1.Parent=nil
  1292. end
  1293. until CurrentAmmo ~= "Poison"
  1294. end))
  1295. end
  1296. function KBAmmo()
  1297. attack = true
  1298. for i = 0.1 , 1 , 0.1 do
  1299. wait()
  1300. 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))
  1301. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  1302. 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))
  1303. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1304. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1305. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5*i),0,0)
  1306. end
  1307. ars(Head,1)
  1308. for i = 0.2 , 1 , 0.2 do
  1309. wait()
  1310. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1311. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  1312. LW.C0 = CFrame.new(-1.5+0.25*i, 0.5, -0.5) * CFrame.Angles(math.rad(100),math.rad(0),math.rad(45))
  1313. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1314. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1315. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5-2.5*i),0,0)
  1316. end
  1317. for i = 0.1 , 1 , 0.2 do
  1318. wait()
  1319. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1320. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  1321. 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))
  1322. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1323. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1324. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(2.5+2.5*i),0,0)
  1325. end
  1326. for i = 0.1 , 1 , 0.2 do
  1327. wait()
  1328. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1329. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-10*i), 0, 0)
  1330. 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))
  1331. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1332. w3.C0 = CFrame.Angles(math.rad(90+90*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1333. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5),0,0)
  1334. end
  1335. for i = 0.1 , 1 , 0.1 do
  1336. wait()
  1337. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1338. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15), 0, 0)
  1339. 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))
  1340. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1341. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1342. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(5-10*i),0,0)
  1343. end
  1344. for i = 0.2 , 1 , 0.1 do
  1345. wait()
  1346. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1347. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15), 0, 0)
  1348. LW.C0 = CFrame.new(-1.5, 0.75, -0.5) * CFrame.Angles(math.rad(135-20*i),math.rad(0),math.rad(45))
  1349. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1350. w3.C0 = CFrame.Angles(math.rad(180), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1351. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5+2.5*i),0,0)
  1352. end
  1353. CurrentAmmo = "Knockback"
  1354. ammotrail = BrickColor.new("Black")
  1355. ars(Head,2)
  1356. for i = 0.2 , 1 , 0.1 do
  1357. wait()
  1358. 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))
  1359. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15-15*i), 0, 0)
  1360. 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))
  1361. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1362. w3.C0 = CFrame.Angles(math.rad(180-90*i), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1363. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-2.5+2.5*i),0,0)
  1364. end
  1365. for i = 0.2 , 1 , 0.1 do
  1366. wait()
  1367. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1368. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25*i), 0, 0)
  1369. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(25))
  1370. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1371. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1372. end
  1373. attack = false
  1374. end
  1375. function AimedReady(mouse)
  1376. if Ammo <= 0 then Reload() return end
  1377. attack = true
  1378. local wt,t = faketors()
  1379. w7.Part1 = t
  1380. w8.Part1 = t
  1381. w9.Part1 = t
  1382. Character.Humanoid.WalkSpeed = 5
  1383. for i = 0.2 , 1 , 0.2 do
  1384. wait()
  1385. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1386. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25-15*i), 0, 0)
  1387. 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))
  1388. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1389. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1390. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1391. wt.C0 = CFrame.Angles(0, math.rad(50*i), 0)
  1392. Neck.C0 = neckcf0 * CFrame.Angles(0,math.rad(-20*i),0)
  1393. end
  1394. for i = 0.2 , 1 , 0.2 do
  1395. wait()
  1396. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1397. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(10-10*i), 0, 0)
  1398. 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))
  1399. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1400. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1401. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1402. wt.C0 = CFrame.Angles(0, math.rad(50+10*i), 0)
  1403. end
  1404. wait() wait()
  1405. local orispread = spread
  1406. spread = 0
  1407. repeat
  1408. wait(0.15)
  1409. as(Head,1)
  1410. coroutine.resume(coroutine.create(function()
  1411. for z = 1 ,2 do
  1412. coroutine.resume(coroutine.create(function()
  1413. local meshb1 = Instance.new("BlockMesh")
  1414. meshb1.Scale = Vector3.new(1,1,1)
  1415. local shellb1 = Instance.new("Part")
  1416. meshb1.Parent = shellb1
  1417. shellb1.Anchored = true
  1418. shellb1.formFactor = 3
  1419. shellb1.Size = Vector3.new(0.3,0.3,0.3) * (math.random(100,300)/100)
  1420. 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)
  1421. shellb1.Parent = swordholder
  1422. shellb1.Transparency = 0
  1423. if math.random(1,2) == 1 then
  1424. shellb1.BrickColor = BrickColor.new("Bright red")
  1425. else
  1426. shellb1.BrickColor = BrickColor.new("Bright orange")
  1427. end
  1428. shellb1.CanCollide = false
  1429. local incre = math.random(0,60)/100
  1430. for i = 0 , 1 , 0.1 do
  1431. wait()
  1432. shellb1.CFrame = shellb1.CFrame + Torso.CFrame.lookVector*incre
  1433. shellb1.Transparency = 1*i
  1434. meshb1.Scale = Vector3.new(1+1*i,1+1*i,1+1*i)
  1435. end
  1436. shellb1.Parent=nil
  1437. end))
  1438. end
  1439. shoottrail(mouse)
  1440. end))
  1441. Ammo = Ammo - 1
  1442. for i = 0.5 , 1 , 0.5 do
  1443. wait()
  1444. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1445. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-5*i), 0, 0)
  1446. LW.C0 = CFrame.new(-1.5, 0.5, -0) * CFrame.Angles(math.rad(95+5*i),math.rad(0),math.rad(25))
  1447. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1448. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1449. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1450. wt.C0 = CFrame.Angles(0, math.rad(60), 0)
  1451. Neck.C0 = neckcf0 * CFrame.Angles(0,math.rad(-20+5*i),0)
  1452. end
  1453. for i = 0.5 , 1 , 0.5 do
  1454. wait()
  1455. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1456. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-5+5*i), 0, 0)
  1457. LW.C0 = CFrame.new(-1.5, 0.5, -0) * CFrame.Angles(math.rad(100-5*i),math.rad(0),math.rad(25))
  1458. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1459. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1460. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1461. wt.C0 = CFrame.Angles(0, math.rad(60), 0)
  1462. Neck.C0 = neckcf0 * CFrame.Angles(0,math.rad(-15-5*i),0)
  1463. end
  1464. until not buttonhold or Ammo <= 0
  1465. spread = orispread
  1466. for i = 0.2 , 1 , 0.2 do
  1467. wait()
  1468. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1469. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15*i), 0, 0)
  1470. LW.C0 = CFrame.new(-1.5, 0.5, -0.25*i) * CFrame.Angles(math.rad(95-25*i),math.rad(0),math.rad(25))
  1471. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1472. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1473. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1474. wt.C0 = CFrame.Angles(0, math.rad(60-60*i), 0)
  1475. Neck.C0 = neckcf0 * CFrame.Angles(0,math.rad(-20+20*i),0)
  1476. end
  1477. w7.Part1 = Torso
  1478. w8.Part1 = Torso
  1479. w9.Part1 = Torso
  1480. RW.Part0 = Torso
  1481. LW.Part0 = Torso
  1482. Torso.Transparency = 0
  1483. RHL.Part0 = Torso
  1484. LHL.Part0 = Torso
  1485. t.Parent = nil
  1486. Character.Humanoid.WalkSpeed = 14
  1487. for i = 0.2 , 1 , 0.2 do
  1488. wait()
  1489. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1490. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(15+10*i), 0, 0)
  1491. 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))
  1492. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1493. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1494. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1495. end
  1496. wait(0.25)
  1497. attack = false
  1498. end
  1499. function returnwelds()
  1500. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60))
  1501. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(25), 0, 0)
  1502. LW.C0 = CFrame.new(-1.5, 0.5, -0.5) * CFrame.Angles(math.rad(40),math.rad(0),math.rad(25))
  1503. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1504. w3.C0 = CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, 0.25,-0.5)
  1505. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, 0)
  1506. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
  1507. RWL.C1 = CFrame.new(0.5, 1, 0)
  1508. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
  1509. LWL.C1 = CFrame.new(-0.5, 1, 0)
  1510. Neck.C0 = neckcf0
  1511. end
  1512. keyhold = false
  1513. function ob1d(mouse)
  1514. hold = true
  1515. if attack then return end
  1516. keyhold = true
  1517. Ready(mouse)
  1518. end
  1519. function ob1u(mouse)
  1520. keyhold = false
  1521. end
  1522. buttonhold = false
  1523. function key(key,mouse)
  1524. if attack then return end
  1525. if key == "f" then
  1526. Reload()
  1527. end
  1528. if key == "q" then
  1529. buttonhold = true
  1530. AimedReady(mouse)
  1531. end
  1532. if key == "e" then
  1533. NormalAmmo()
  1534. end
  1535. if key == "r" then --and (string.match(Player.Unlocks.Value,"Poison Ammo") ~= nil) then
  1536. PoisonAmmo()
  1537. end
  1538. if key == "t" then --and (string.match(Player.Unlocks.Value,"Knockback ammo") ~= nil) then
  1539. KBAmmo()
  1540. end
  1541. end
  1542. function key2(key)
  1543. if key == "f" or key == "q" then
  1544. buttonhold = false
  1545. end
  1546. end
  1547. function s(mouse)
  1548. repeat wait() until not attack
  1549. repeat wait() until not ev.Value
  1550. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1551. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1552. mouse.KeyDown:connect(function(ke) key(ke,mouse) end)
  1553. mouse.KeyUp:connect(key2)
  1554. equipanim()
  1555. ev.Value = true
  1556. end
  1557. function ds(mouse)
  1558. keyhold = false
  1559. repeat wait() until not attack
  1560. repeat wait() until ev.Value
  1561. hideanim()
  1562. wait(0.1)
  1563. ev.Value = false
  1564. end
  1565. Bin.Selected:connect(s)
  1566. Bin.Deselected:connect(ds)
  1567. if PlayerGui:findFirstChild("AmmoMeter") ~= nil then
  1568. PlayerGui:findFirstChild("AmmoMeter").Parent = nil
  1569. end
  1570. coroutine.resume(coroutine.create(function()
  1571. local SG = Instance.new("ScreenGui",PlayerGui)
  1572. SG.Name = "AmmoMeter"
  1573. local frame = Instance.new("Frame",SG)
  1574. frame.Size = UDim2.new(0.2,0,0.1,0)
  1575. frame.Position = UDim2.new(0.5-0.1,0,0.05,0)
  1576. frame.BackgroundColor3 = BrickColor.new("Brown").Color
  1577. local Ammotext = Instance.new("TextLabel",frame)
  1578. Ammotext.Size = UDim2.new(1,0,0.35,0)
  1579. Ammotext.BackgroundTransparency = 1
  1580. Ammotext.Text = "Ammo"
  1581. Ammotext.FontSize = "Size18"
  1582. Ammotext.TextColor3 = BrickColor.new("White").Color
  1583. local backing = Instance.new("ImageLabel",frame)
  1584. backing.Size = UDim2.new(0.8,0,0.45,0)
  1585. backing.Image = "http://www.roblox.com/asset/?id=48965808"
  1586. backing.Position = UDim2.new(0.1,0,0.45,0)
  1587. backing.Position = UDim2.new(0.1,0,0.45,0)
  1588. backing.BackgroundColor3 = BrickColor.new("Black").Color
  1589. local img = Instance.new("ImageLabel",backing)
  1590. img.Size = UDim2.new(1,0,1,0)
  1591. img.Image = "http://www.roblox.com/asset/?id=48965808"
  1592. img.Position = UDim2.new(0,0,0,0)
  1593. img.Position = UDim2.new(0,0,0,0)
  1594. img.BackgroundColor3 = BrickColor.new("Brown").Color
  1595. local percent = Instance.new("TextLabel",backing)
  1596. percent.Size = UDim2.new(1,0,1,0)
  1597. percent.BackgroundTransparency = 1
  1598. percent.TextColor3 = BrickColor.new("White").Color
  1599. percent.Text = Ammo.."/".. MaxAmmo
  1600. percent.FontSize = "Size18"
  1601. local currentam = Instance.new("TextLabel",frame)
  1602. currentam.Size = UDim2.new(0.5,0,0.25,0)
  1603. currentam.Position = UDim2.new(0,0,1,0)
  1604. currentam.BackgroundTransparency = 0
  1605. currentam.BackgroundColor3 = BrickColor.new("Brown").Color
  1606. currentam.TextColor3 = BrickColor.new("White").Color
  1607. currentam.Text = CurrentAmmo
  1608. currentam.FontSize = "Size18"
  1609. repeat
  1610. wait()
  1611. pcall(function()
  1612. img.Size = UDim2.new(1*(Ammo/MaxAmmo),0,1,0)
  1613. percent.Text = Ammo.."/".. MaxAmmo
  1614. currentam.Text = CurrentAmmo
  1615. end)
  1616. until SG.Parent == nil
  1617. end))
  1618. Character.Humanoid.WalkSpeed = 50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement