memberhero

Untitled

Jul 28th, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 113.79 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. LeftArm = Character["Left Arm"]
  8. LeftLeg = Character["Left Leg"]
  9. RightArm = Character["Right Arm"]
  10. RightLeg = Character["Right Leg"]
  11. LS = Torso["Left Shoulder"]
  12. LH = Torso["Left Hip"]
  13. RS = Torso["Right Shoulder"]
  14. RH = Torso["Right Hip"]
  15. it=Instance.new
  16. vt=Vector3.new
  17. cf=CFrame.new
  18. euler=CFrame.fromEulerAnglesXYZ
  19. angles=CFrame.Angles
  20. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  21. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  22. ModelName = "Weapon"
  23. attack = false
  24. attacktype = 1
  25. Hitdeb = 0
  26. Neck = Torso.Neck
  27. local neckcf0 = Neck.C0
  28.  
  29. ----------------------------
  30. --Customize
  31. Ammo = 6
  32. MaxAmmo = 6
  33. mindamage = 30
  34. maxdamage = 40
  35. crtmaxdamage = 50
  36. reloadspeed=1
  37. attackspeed=1
  38. GunzerkDuration=1000
  39. twobullets=false
  40. omindamage = mindamage
  41. omaxdamage = maxdamage
  42. ocrtmaxdamage = crtmaxdamage
  43. crtrate = 100/5
  44. --100%/critpercentage
  45.  
  46. oblkbrkr = 1
  47. blockbreaker = oblkbrkr
  48. spread = 1
  49. spread = spread*100
  50. Ammoregen = 5
  51. range = 400
  52. rangepower = 100
  53. CurrentAmmo = "Normal"
  54. attackdebounce = false
  55. poisoncounter=0
  56. Gunzerkering=false
  57. firingdebounce1=false
  58. firingdebounce2=false
  59. aiming=false
  60. local LastPoint1 = nil
  61. local LastPoint2 = nil
  62. critical=false
  63. dodging=false
  64. holdforward=true
  65. resting=false
  66. hifiving=false
  67. blastcannonmode=false
  68. handlecolor = BrickColor.new("Navy blue")
  69. bcolor = BrickColor.new("White")
  70. gemcolor = BrickColor.new("Black")
  71. ammotrail = BrickColor.new("White")
  72. ToolName = "Romandan"
  73.  
  74. ---------------------------------------------------------------------------------------------------------------------------------------
  75. if Character:findFirstChild("EquippedVal",true) ~= nil then
  76. Character:findFirstChild("EquippedVal",true).Parent = nil
  77. end
  78. ev = it("BoolValue",Character)
  79. ev.Name = "EquippedVal"
  80. ev.Value = false
  81. if Character:findFirstChild("Block",true) ~= nil then
  82. Character:findFirstChild("Block",true).Parent = nil
  83. end
  84.  
  85.  
  86. --player
  87. player = nil
  88. --welds
  89. RW, LW , RWL, LWL = it("Weld"), it("Weld"), it("Weld"), it("Weld")
  90. --what anim
  91. anim = "none"
  92. --other var
  93. player = Player
  94. ch = Character
  95. --save shoulders
  96. AoETrue = {}
  97. RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
  98.  
  99.  
  100. function RWFunc()
  101. RW.Part1 = ch["Right Arm"]
  102. RSH.Part1 = nil
  103. end
  104. function LWFunc()
  105. LW.Part1 = ch["Left Arm"]
  106. LSH.Part1 = nil
  107. end
  108. function RWLFunc()
  109. RWL.Part1 = ch["Right Leg"]
  110. RHL.Part1 = nil
  111. ch["Right Leg"].Name = "RightLeg"
  112. RightLeg.CanCollide = true
  113. end
  114.  
  115. function LWLFunc()
  116. LWL.Part1 = ch["Left Leg"]
  117. LHL.Part1 = nil
  118. ch["Left Leg"].Name = "LeftLeg"
  119. LeftLeg.CanCollide = true
  120. end
  121.  
  122. function RWLRem()
  123. RightLeg.Name = "Right Leg"
  124. RWL.Part1 = nil
  125. RHL.Part1 = ch["Right Leg"]
  126. RightLeg.CanCollide = true
  127. end
  128. function LWLRem()
  129. LeftLeg.Name = "Left Leg"
  130. LWL.Part1 = nil
  131. LHL.Part1 = ch["Left Leg"]
  132. LeftLeg.CanCollide = true
  133. end
  134. function RWRem()
  135. RW.Part1 = nil
  136. RSH.Part1 = ch["Right Arm"]
  137. end
  138. function LWRem()
  139. LW.Part1 = nil
  140. LSH.Part1 = ch["Left Arm"]
  141. end
  142.  
  143.  
  144.  
  145.  
  146. if Character:findFirstChild(ModelName,true) ~= nil then
  147. Character:findFirstChild(ModelName,true).Parent = nil
  148. RHL.Part1 = ch["Right Leg"]
  149. LHL.Part1 = ch["Left Leg"]
  150. RSH.Part1 = ch["Right Arm"]
  151. LSH.Part1 = ch["Left Arm"]
  152. end
  153. if Character:findFirstChild("BlastCannon",true) ~= nil then
  154. Character:findFirstChild("BlastCannon",true).Parent = nil
  155. end
  156.  
  157. if Character:findFirstChild("HighFive",true) ~= nil then
  158. Character:findFirstChild("HighFive",true).Parent=nil
  159. end
  160.  
  161.  
  162.  
  163.  
  164.  
  165. local hifivevalue=it("BoolValue")
  166. hifivevalue.Parent=Character
  167. hifivevalue.Name="HighFive"
  168. hifivevalue.Value=false
  169. local swordholder = it("Model")
  170. swordholder.Name = ModelName
  171. swordholder.Parent = Character
  172.  
  173. --derp
  174. RW.Part0 = ch.Torso
  175. RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
  176. RW.C1 = cf(0, 0.5, 0) * euler(0, 0, 0)
  177. RW.Parent = swordholder
  178. --
  179. LW.Part0 = ch.Torso
  180. LW.C0 = cf(-1.5, 0.5, 0) --* euler(1.7, 0, 0.8)
  181. LW.C1 = cf(0, 0.5, 0)
  182. LW.Parent = swordholder
  183. --
  184. RWL.Part0 = ch.Torso
  185. RWL.C0 = cf(1, -1, 0) * angles(0, 0, 0)
  186. RWL.C1 = cf(0.5, 1, 0)
  187. RWL.Parent = swordholder
  188. --
  189. LWL.Part0 = ch.Torso
  190. LWL.C0 = cf(-1, -1, 0) * angles(0, 0, 0)
  191. LWL.C1 = cf(-0.5, 1, 0)
  192. LWL.Parent = swordholder
  193.  
  194.  
  195.  
  196. local msh1 = it("CylinderMesh")
  197. msh1.Scale = vt(0.2,1,0.2)
  198. local msh2 = it("CylinderMesh")
  199. msh2.Scale = vt(0.5,0.8,0.5)
  200. local msh3 = it("BlockMesh")
  201. msh3.Scale = vt(0.25,1,0.1)
  202. local msh4 = it("CylinderMesh")
  203. msh4.Scale = vt(0.2,1,0.2)
  204. local msh4b = it("CylinderMesh")
  205. msh4b.Scale = vt(0.15,1.01,0.15)
  206. local msh5 = it("CylinderMesh")
  207. msh5.Scale = vt(0.4,1,0.4)
  208. local msh6 = it("BlockMesh")
  209. msh6.Scale = vt(0.5,0.5,0.5)
  210. local msh7 = it("BlockMesh")
  211. msh7.Scale = vt(0.2,1.45,0.25)
  212. local msh8 = it("BlockMesh")
  213. msh8.Scale = vt(0.3,1,0.2)
  214.  
  215. local prt1 = it("Part")
  216. prt1.formFactor = 3
  217. prt1.CanCollide = true
  218. prt1.Name = "Handle"
  219. prt1.Locked = true
  220. prt1.Size = vt(1,1,1)
  221. prt1.Parent = swordholder
  222. msh1.Parent = prt1
  223. prt1.BrickColor = handlecolor
  224. local prt2 = it("Part")
  225. prt2.formFactor = 3
  226. prt2.CanCollide = true
  227. prt2.Name = "Barrel"
  228. prt2.Locked = true
  229. prt2.Size = vt(1,1,1)
  230. prt2.Parent = swordholder
  231. msh2.Parent = prt2
  232. prt2.BrickColor = bcolor
  233. local prt3 = it("Part")
  234. prt3.formFactor = 3
  235. prt3.CanCollide = true
  236. prt3.Name = "BarrelPlate"
  237. prt3.Locked = true
  238. prt3.Size = vt(1,1.5,1)
  239. prt3.Parent = swordholder
  240. msh3.Parent = prt3
  241. prt3.BrickColor = handlecolor
  242. local prt4 = it("Part")
  243. prt4.formFactor = 3
  244. prt4.CanCollide = true
  245. prt4.Name = "LongBarrel"
  246. prt4.Locked = true
  247. prt4.Size = vt(1,1.5,1)
  248. prt4.Parent = swordholder
  249. msh4.Parent = prt4
  250. prt4.BrickColor = handlecolor
  251. local prt4b = it("Part")
  252. prt4b.formFactor = 3
  253. prt4b.CanCollide = true
  254. prt4b.Name = "LongBarrel2"
  255. prt4b.Locked = true
  256. prt4b.Size = vt(1,1.5,1)
  257. prt4b.Parent = swordholder
  258. msh4b.Parent = prt4b
  259. prt4b.BrickColor = BrickColor.new("Really black")
  260. local prt5 = it("Part")
  261. prt5.formFactor = 3
  262. prt5.CanCollide = true
  263. prt5.Name = "RearLongBarrel"
  264. prt5.Locked = true
  265. prt5.Size = vt(1,1,1)
  266. prt5.Parent = swordholder
  267. msh5.Parent = prt5
  268. prt5.BrickColor = handlecolor
  269. local prt6 = it("Part")
  270. prt6.formFactor = 3
  271. prt6.CanCollide = false
  272. prt6.Name = "Aimer"
  273. prt6.Locked = true
  274. prt6.Size = vt(0.2,0.2,0.2)
  275. prt6.Parent = swordholder
  276. msh6.Parent = prt6
  277. prt6.BrickColor = handlecolor
  278. local prt7 = it("Part")
  279. prt7.formFactor = 3
  280. prt7.CanCollide = false
  281. prt7.Name = "BottomBarrel"
  282. prt7.Locked = true
  283. prt7.Size = vt(1,1,1)
  284. prt7.Parent = swordholder
  285. msh7.Parent = prt7
  286. prt7.BrickColor = handlecolor
  287. local prt8 = it("Part")
  288. prt8.formFactor = 3
  289. prt8.CanCollide = false
  290. prt8.Name = "BarrelTop"
  291. prt8.Locked = true
  292. prt8.Size = vt(1,1,1)
  293. prt8.Parent = swordholder
  294. msh8.Parent = prt8
  295. prt8.BrickColor = handlecolor
  296.  
  297. local w1 = it("Weld")
  298. w1.Parent = prt1
  299. w1.Part0 = prt1
  300. w1.C1 = euler(0, 0, 0) * cf(0, 0,0)
  301. w1.C0 = euler(math.rad(90),math.rad(0), 0) * cf(-1, 1, -0.25)
  302. local w2 = it("Weld")
  303. w2.Parent = prt2
  304. w2.Part0 = prt2
  305. w2.Part1 = prt1
  306. w2.C1 = euler(0, 0, 0) * cf(0, -0.16, 0)
  307. w2.C0 = euler(math.rad(180), 0,0) * cf(0, -0.75, 0.25)
  308. local w3 = it("Weld")
  309. w3.Parent = prt3
  310. w3.Part0 = prt3
  311. w3.Part1 = prt1
  312. w3.C1 = euler(0, 0, 0) * cf(0, 0, 0)
  313. w3.C0 = euler(math.rad(90), 0,0) * cf(0, -0.5, -0.25)
  314. local w4 = it("Weld")
  315. w4.Parent = prt4
  316. w4.Part0 = prt4
  317. w4.Part1 = prt2
  318. w4.C1 = euler(0, 0, 0) * cf(0, 0, 0.16)
  319. w4.C0 = euler(0, 0,0) * cf(0, -1, 0)
  320. local w4b = it("Weld")
  321. w4b.Parent = prt4b
  322. w4b.Part0 = prt4b
  323. w4b.Part1 = prt4
  324. w4b.C1 = euler(0,0,0) * cf(0, 0, 0)
  325. w4b.C0 = euler(0,0,0) * cf(0, 0, 0)
  326. local w5 = it("Weld")
  327. w5.Parent = prt5
  328. w5.Part0 = prt5
  329. w5.Part1 = prt1
  330. w5.C1 = euler(0, 0, 0) * cf(0, 0, 0)
  331. w5.C0 = euler(math.rad(90), 0,0) * cf(0, -0.65, -0.1)
  332. local w6 = it("Weld")
  333. w6.Parent = prt6
  334. w6.Part0 = prt6
  335. w6.Part1 = prt4
  336. w6.C1 = euler(0, 0, 0) * cf(0, 0, 0.14)
  337. --w6.C0 = euler(0, math.rad(45),math.rad(0)) * cf(0, -1.65, -0.09)
  338. w6.C0 = euler(0, math.rad(45),math.rad(0)) * cf(0, -.65, 0.05)
  339. local w7 = it("Weld")
  340. w7.Parent = prt7
  341. w7.Part0 = prt7
  342. w7.Part1 = prt4
  343. w7.C1 = euler(0, 0, 0) * cf(0, 0, 0)
  344. w7.C0 = euler(0, 0,0) * cf(0, 0, 0.08)
  345. local w10 = it("Weld")
  346. w10.Parent = prt8
  347. w10.Part0 = prt8
  348. w10.Part1 = prt5
  349. w10.C1 = euler(0, 0, 0) * cf(0, -0.8, 0)
  350. w10.C0 = euler(0, 0,0) * cf(0, -0.3, -0.2)
  351. numb=0
  352. for i=0,5 do
  353. local msha = it("CylinderMesh")
  354. msha.Scale = vt(0.15,0.51,0.15)
  355. local prta = it("Part")
  356. prta.formFactor = 3
  357. prta.CanCollide = true
  358. prta.Name = "Ammo"
  359. prta.Locked = true
  360. prta.Size = vt(1,1,1)
  361. prta.Parent = prt2
  362. msha.Parent = prta
  363. prta.BrickColor = BrickColor.new("Black")
  364. local wa = it("Weld")
  365. wa.Parent = prta
  366. wa.Part0 = prta
  367. wa.Part1 = prt2
  368. wa.C1 = euler(0, 0, 0) * cf(0, 0, 0)
  369. wa.C0 = cf(0, -0.15, 0.19) * euler(0, numb, 0)
  370. numb=numb+1.046666667
  371. coroutine.resume(coroutine.create(function(Part)
  372. while prt2.Parent~=nil do
  373. wait()
  374. Part.Transparency=prt2.Transparency
  375. end
  376. end),prta)
  377. end
  378.  
  379. newgun=swordholder:Clone()
  380. newgun.Name="WeaponClone"
  381. local newmsh1 = it("CylinderMesh")
  382. newmsh1.Scale = vt(1,1,1)
  383. local newmsh2 = it("BlockMesh")
  384. newmsh2.Scale = vt(1,1,1)
  385. local newmsh3 = it("CylinderMesh")
  386. newmsh3.Scale = vt(1,1,1)
  387. local newmsh4 = it("CylinderMesh")
  388. newmsh4.Scale = vt(1,1,1)
  389. local newmsh5 = it("CylinderMesh")
  390. newmsh5.Scale = vt(1,1,1)
  391. local newmsh6 = it("BlockMesh")
  392. newmsh6.Scale = vt(1,1,1)
  393.  
  394. local newprt1 = it("Part")
  395. newprt1.formFactor = 3
  396. newprt1.CanCollide = true
  397. newprt1.Name = "Handle"
  398. newprt1.Locked = true
  399. newprt1.Size = vt(0.3,1,0.3)
  400. newprt1.Parent = newgun
  401. newmsh1.Parent = newprt1
  402. newprt1.BrickColor = handlecolor
  403. local newprt2 = it("Part")
  404. newprt2.formFactor = 3
  405. newprt2.CanCollide = true
  406. newprt2.Name = "Handle2"
  407. newprt2.Locked = true
  408. newprt2.Size = vt(0.5,0.2,1.5)
  409. newprt2.Parent = newgun
  410. newmsh2.Parent = newprt2
  411. newprt2.BrickColor = handlecolor
  412. local newprt3 = it("Part")
  413. newprt3.formFactor = 3
  414. newprt3.CanCollide = false
  415. newprt3.Name = "Handle3"
  416. newprt3.Locked = true
  417. newprt3.Size = vt(0.7,1.2,0.7)
  418. newprt3.Parent = newgun
  419. newmsh3.Parent = newprt3
  420. newprt3.BrickColor = BrickColor.new("White")
  421. local newprt4 = it("Part")
  422. newprt4.formFactor = 3
  423. newprt4.CanCollide = true
  424. newprt4.Name = "BackBarrel"
  425. newprt4.Locked = true
  426. newprt4.Size = vt(0.5,1.2,0.5)
  427. newprt4.Parent = newgun
  428. newmsh4.Parent = newprt4
  429. newprt4.BrickColor = handlecolor
  430. local newprt5 = it("Part")
  431. newprt5.formFactor = 3
  432. newprt5.CanCollide = true
  433. newprt5.Name = "Barrel"
  434. newprt5.Locked = true
  435. newprt5.Size = vt(0.4,2.5,0.4)
  436. newprt5.Parent = newgun
  437. newmsh5.Parent = newprt5
  438. newprt5.BrickColor = handlecolor
  439. local newprt6 = it("Part")
  440. newprt6.formFactor = 3
  441. newprt6.CanCollide = false
  442. newprt6.Name = "BarrelHandle"
  443. newprt6.Locked = true
  444. newprt6.Size = vt(0.3,1,0.3)
  445. newprt6.Parent = newgun
  446. newmsh6.Parent = newprt6
  447. newprt6.BrickColor = handlecolor
  448.  
  449. local neww1 = it("Weld")
  450. neww1.Parent = newprt1
  451. neww1.Part0 = newprt1
  452. neww1.Name = "Weld1"
  453. local neww2 = it("Weld")
  454. neww2.Parent = newprt2
  455. neww2.Part0 = newprt2
  456. neww2.Part1 = newprt1
  457. neww2.Name = "Weld2"
  458. neww2.C1 = cf(0, 0,0) * angles(0, 0, 0)
  459. neww2.C0 = angles(math.rad(0), 0, 0) * cf(0, 0.6,0.5)
  460. local neww3 = it("Weld")
  461. neww3.Parent = newprt3
  462. neww3.Part0 = newprt3
  463. neww3.Part1 = newprt2
  464. neww3.C1 = cf(0, 0,0) * angles(0, 0, 0)
  465. neww3.C0 = angles(math.rad(90), 0, 0) * cf(0, 0.25,-0.5)
  466. local neww4 = it("Weld")
  467. neww4.Parent = newprt4
  468. neww4.Part0 = newprt4
  469. neww4.Part1 = newprt2
  470. neww4.C1 = cf(0, 0,0) * angles(0, 0, 0)
  471. neww4.C0 = angles(math.rad(90), 0, 0) * cf(0, 0.25,0.5)
  472. local neww5 = it("Weld")
  473. neww5.Parent = newprt5
  474. neww5.Part0 = newprt5
  475. neww5.Part1 = newprt3
  476. neww5.C1 = cf(0, 0,0) * angles(0, 0, 0)
  477. neww5.C0 = angles(math.rad(0), 0, 0) * cf(0, 1.5,0)
  478. local neww6 = it("Weld")
  479. neww6.Parent = newprt6
  480. neww6.Part0 = newprt6
  481. neww6.Part1 = newprt3
  482. neww6.C1 = cf(0, 0,0) * angles(0, 0, 0)
  483. neww6.C0 = angles(math.rad(90), 0, 0) * cf(0, 1.5,-0.5)
  484.  
  485. if torsc then
  486. holstermsh1 = it("SpecialMesh")
  487. holstermsh1.MeshId = "http://www.roblox.com/asset/?id=3270017"
  488. holstermsh1.Scale = vt(2.01,1,1.01)
  489. else
  490. holstermsh1 = it("BlockMesh")
  491. holstermsh1.Scale = vt(2.01,0.1,1.01)
  492. end
  493. local holstermsh2 = it("SpecialMesh")
  494. holstermsh2.MeshId = "http://www.roblox.com/asset/?id=3270017"
  495. holstermsh2.Scale = vt(0.5,0.5,7)
  496. local holstermsh3 = it("BlockMesh")
  497. holstermsh3.Scale = vt(1,1,1)
  498. local holster1 = it("Part")
  499. holster1.formFactor = 3
  500. holster1.CanCollide = false
  501. holster1.Name = "HolsterStrap"
  502. holster1.Locked = true
  503. holster1.Size = vt(1,1,1)
  504. holster1.Parent = swordholder
  505. holstermsh1.Parent = holster1
  506. holster1.BrickColor = handlecolor
  507. local holster2 = it("Part")
  508. holster2.formFactor = 3
  509. holster2.CanCollide = false
  510. holster2.Name = "Holster"
  511. holster2.Locked = true
  512. holster2.Size = vt(1,1,1)
  513. --holster2.Parent = swordholder
  514. holstermsh2.Parent = holster2
  515. holster2.BrickColor = handlecolor
  516. local holster3 = it("Part")
  517. holster3.formFactor = 3
  518. holster3.CanCollide = false
  519. holster3.Name = "AmmoHolster"
  520. holster3.Locked = true
  521. holster3.Size = vt(0.2,1,0.7)
  522. holster3.Parent = swordholder
  523. holstermsh3.Parent = holster3
  524. holster3.BrickColor = handlecolor
  525. local w7 = it("Weld")
  526. w7.Parent = holster1
  527. w7.Part0 = holster1
  528. w7.Part1 = Torso
  529. w7.C1 = cf(0, 0,0) * angles(0, 0, 0)
  530. if torsc then
  531. w7.C0 = angles(math.rad(90), 0, 0) * cf(0, 1,0)
  532. else
  533. w7.C0 = angles(0, 0, 0) * cf(0, 1,0)
  534. end
  535. local w8 = it("Weld")
  536. w8.Parent = holster2
  537. w8.Part0 = holster2
  538. w8.Part1 = Torso
  539. w8.C1 = cf(0, 0,0) * angles(0, 0, 0)
  540. w8.C0 = angles(math.rad(45), 0, 0) * cf(-1.1, 1-0.25,0)
  541. local w9 = it("Weld")
  542. w9.Parent = holster3
  543. w9.Part0 = holster3
  544. w9.Part1 = Torso
  545. w9.C1 = cf(0, 0,0) * angles(0, 0, 0)
  546. w9.C0 = angles(math.rad(45), 0, 0) * cf(1, 0.75,-0.5)
  547.  
  548. local model2 = it("Model")
  549. model2.Name = "BlastCannon"
  550. model2.Parent = Character
  551. local prt16 = it("Part")
  552. prt16.formFactor = 1
  553. prt16.Parent = model2
  554. prt16.Reflectance = 0.2
  555. prt16.CanCollide = false
  556. prt16.BrickColor = BrickColor.new("Black")
  557. prt16.Name = "CannonHandle1"
  558. prt16.Size = vt(1,2,1)
  559. prt16.Position = Torso.Position
  560. local prt17 = it("Part")
  561. prt17.formFactor = 1
  562. prt17.Parent = model2
  563. prt17.Reflectance = 0.2
  564. prt17.CanCollide = false
  565. prt17.BrickColor = BrickColor.new("Black")
  566. prt17.Name = "CannonHandle2"
  567. prt17.Size = vt(1,1,1)
  568. prt17.Position = Torso.Position
  569. local prt18 = it("Part")
  570. prt18.formFactor = 1
  571. prt18.Parent = model2
  572. prt18.Reflectance = 0.2
  573. prt18.CanCollide = false
  574. prt18.BrickColor = BrickColor.new("Black")
  575. prt18.Name = "CannonPart1"
  576. prt18.Size = vt(1,2,1)
  577. prt18.Position = Torso.Position
  578. local prt19 = it("Part")
  579. prt19.formFactor = 1
  580. prt19.Parent = model2
  581. prt19.Reflectance = 0.2
  582. prt19.CanCollide = false
  583. prt19.BrickColor = BrickColor.new("Black")
  584. prt19.Name = "CannonPart2"
  585. prt19.Size = vt(1,2,1)
  586. prt19.Position = Torso.Position
  587. local prt20 = it("Part")
  588. prt20.formFactor = 1
  589. prt20.Parent = model2
  590. prt20.Reflectance = 0.2
  591. prt20.CanCollide = false
  592. prt20.BrickColor = BrickColor.new("White")
  593. prt20.Name = "CannonHandle3"
  594. prt20.Size = vt(1,2,1)
  595. prt20.Position = Torso.Position
  596. local prt21 = it("Part")
  597. prt21.formFactor = 1
  598. prt21.Parent = model2
  599. prt21.Reflectance = 0.2
  600. prt21.CanCollide = false
  601. prt21.BrickColor = BrickColor.new("Black")
  602. prt21.Name = "CannonPart3"
  603. prt21.Size = vt(1,2,1)
  604. prt21.Position = Torso.Position
  605. local prt22 = it("Part")
  606. prt22.formFactor = 1
  607. prt22.Parent = model2
  608. prt22.Reflectance = 0.2
  609. prt22.CanCollide = false
  610. prt22.BrickColor = BrickColor.new("Black")
  611. prt22.Name = "CannonPart4"
  612. prt22.Size = vt(1,2,1)
  613. prt22.Position = Torso.Position
  614. local prt23 = it("Part")
  615. prt23.formFactor = 1
  616. prt23.Parent = model2
  617. prt23.Reflectance = 0.2
  618. prt23.CanCollide = false
  619. prt23.BrickColor = BrickColor.new("Medium stone grey")
  620. prt23.Name = "CannonPart5"
  621. prt23.Size = vt(1,1,1)
  622. prt23.Position = Torso.Position
  623. local prt24 = it("Part")
  624. prt24.formFactor = 1
  625. prt24.Parent = model2
  626. prt24.Reflectance = 0
  627. prt24.CanCollide = false
  628. prt24.BrickColor = BrickColor.new("Black")
  629. prt24.Name = "CannonPart6"
  630. prt24.Size = vt(1,1,1)
  631. prt24.Position = Torso.Position
  632. local prt25 = it("Part")
  633. prt25.formFactor = 1
  634. prt25.Parent = model2
  635. prt25.Reflectance = 0.2
  636. prt25.CanCollide = false
  637. prt25.BrickColor = BrickColor.new("Medium stone grey")
  638. prt25.Name = "CannonPart7"
  639. prt25.Size = vt(1,2,1)
  640. prt25.Position = Torso.Position
  641. local prt26 = it("Part")
  642. prt26.formFactor = 1
  643. prt26.Parent = model2
  644. prt26.Reflectance = 0.2
  645. prt26.CanCollide = false
  646. prt26.BrickColor = BrickColor.new("Medium stone grey")
  647. prt26.Name = "CannonPart8"
  648. prt26.Size = vt(1,1,1)
  649. prt26.Position = Torso.Position
  650. local prt27 = it("Part")
  651. prt27.formFactor = 1
  652. prt27.Parent = model2
  653. prt27.Reflectance = 0
  654. prt27.CanCollide = false
  655. prt27.BrickColor = BrickColor.new("Black")
  656. prt27.Name = "CannonPart9"
  657. prt27.Size = vt(1,1,1)
  658. prt27.Position = Torso.Position
  659. local prt28 = it("Part")
  660. prt28.formFactor = 1
  661. prt28.Parent = model2
  662. prt28.Reflectance = 0
  663. prt28.CanCollide = false
  664. prt28.BrickColor = BrickColor.new("Black")
  665. prt28.Name = "CannonPart10"
  666. prt28.Size = vt(1,1,1)
  667. prt28.Position = Torso.Position
  668. local prt29 = it("Part")
  669. prt29.formFactor = 1
  670. prt29.Parent = model2
  671. prt29.Reflectance = 0.2
  672. prt29.CanCollide = false
  673. prt29.BrickColor = BrickColor.new("Black")
  674. prt29.Name = "CannonPart11"
  675. prt29.Size = vt(1,2,1)
  676. prt29.Position = Torso.Position
  677. local prt30 = it("Part")
  678. prt30.formFactor = 1
  679. prt30.Parent = model2
  680. prt30.Reflectance = 0
  681. prt30.CanCollide = false
  682. prt30.BrickColor = BrickColor.new("Bright blue")
  683. prt30.Name = "CannonPart12"
  684. prt30.Size = vt(1,2,1)
  685. prt30.Position = Torso.Position
  686. local prt31 = it("Part")
  687. prt31.formFactor = 1
  688. prt31.Parent = model2
  689. prt31.Reflectance = 0
  690. prt31.CanCollide = false
  691. prt31.BrickColor = BrickColor.new("Black")
  692. prt31.Name = "CannonPart13"
  693. prt31.Size = vt(1,2,1)
  694. prt31.Position = Torso.Position
  695.  
  696. local msh16 = it("BlockMesh")
  697. msh16.Parent = prt16
  698. msh16.Scale = vt(0.5,0.6,0.5)
  699. local msh17 = it("BlockMesh")
  700. msh17.Parent = prt17
  701. msh17.Scale = vt(0.6,0.3,0.6)
  702. local msh18 = it("BlockMesh")
  703. msh18.Parent = prt18
  704. msh18.Scale = vt(0.7,0.5,0.7)
  705. local msh19 = it("BlockMesh")
  706. msh19.Parent = prt19
  707. msh19.Scale = vt(0.7,0.8,0.8)
  708. local msh20 = it("BlockMesh")
  709. msh20.Parent = prt20
  710. msh20.Scale = vt(0.59,0.79,0.69)
  711. msh20.Scale = vt(0.69,0.79,0.69)
  712. local msh21 = it("BlockMesh")
  713. msh21.Parent = prt21
  714. msh21.Scale = vt(0.7,0.65,0.7)
  715. local msh22 = it("BlockMesh")
  716. msh22.Parent = prt22
  717. msh22.Scale = vt(0.7,1.2,0.7)
  718. local msh23 = it("CylinderMesh")
  719. msh23.Parent = prt23
  720. msh23.Scale = vt(0.5,0.5,0.5)
  721. local msh24 = it("CylinderMesh")
  722. msh24.Parent = prt24
  723. msh24.Scale = vt(0.4,0.51,0.4)
  724. local msh25 = it("CylinderMesh")
  725. msh25.Parent = prt25
  726. msh25.Scale = vt(0.5,0.9,0.5)
  727. local msh26 = it("CylinderMesh")
  728. msh26.Parent = prt26
  729. msh26.Scale = vt(0.4,0.5,0.4)
  730. local msh27 = it("CylinderMesh")
  731. msh27.Parent = prt27
  732. msh27.Scale = vt(0.3,0.51,0.3)
  733. local msh28 = it("CylinderMesh")
  734. msh28.Parent = prt28
  735. msh28.Scale = vt(0.6,0.51,0.6)
  736. local msh29 = it("BlockMesh")
  737. msh29.Parent = prt29
  738. msh29.Scale = vt(0.7,0.65,1)
  739. local msh30 = it("CylinderMesh")
  740. msh30.Parent = prt30
  741. msh30.Scale = vt(1,0.65,1.2)
  742. local msh31 = it("BlockMesh")
  743. msh31.Parent = prt31
  744. msh31.Scale = vt(0.9,0.9,0.5)
  745.  
  746. local wld16 = it("Weld")
  747. wld16.Parent = prt16
  748. wld16.Part0 = prt16
  749. wld16.Part1 = Torso
  750. wld16.C0 = euler(math.rad(90),0,0) * cf(0.6,-0.5,-2.2)
  751. local wld17 = it("Weld")
  752. wld17.Parent = prt17
  753. wld17.Part0 = prt17
  754. wld17.Part1 = prt16
  755. wld17.C0 = euler(0,0,0) * cf(0,0.45,0)
  756. local wld18 = it("Weld")
  757. wld18.Parent = prt18
  758. wld18.Part0 = prt18
  759. wld18.Part1 = prt16
  760. wld18.C0 = euler(0,0,0) * cf(0,-1,0)
  761. local wld19 = it("Weld")
  762. wld19.Parent = prt19
  763. wld19.Part0 = prt19
  764. wld19.Part1 = prt18
  765. wld19.C0 = euler(math.rad(90),0,0) * cf(0,-0.4,-0.45)
  766. local wld20 = it("Weld")
  767. wld20.Parent = prt20
  768. wld20.Part0 = prt20
  769. wld20.Part1 = prt19
  770. wld20.C0 = euler(0,0,0) * cf(0,0,0.5)
  771. local wld21 = it("Weld")
  772. wld21.Parent = prt21
  773. wld21.Part0 = prt21
  774. wld21.Part1 = prt19
  775. wld21.C0 = euler(math.rad(90),0,0) * cf(0,1.1,0.25)
  776. local wld22 = it("Weld")
  777. wld22.Parent = prt22
  778. wld22.Part0 = prt22
  779. wld22.Part1 = prt18
  780. wld22.C0 = euler(math.rad(90),0,0) * cf(0,-0.4,1.1)
  781. local wld23 = it("Weld")
  782. wld23.Parent = prt23
  783. wld23.Part0 = prt23
  784. wld23.Part1 = prt22
  785. wld23.C0 = euler(0,0,0) * cf(0,-1.3,0)
  786. local wld24 = it("Weld")
  787. wld24.Parent = prt24
  788. wld24.Part0 = prt24
  789. wld24.Part1 = prt23
  790. wld24.C0 = euler(0,0,0) * cf(0,0,0)
  791. local wld25 = it("Weld")
  792. wld25.Parent = prt25
  793. wld25.Part0 = prt25
  794. wld25.Part1 = prt18
  795. wld25.C0 = euler(math.rad(90),0,0) * cf(0,0.3,1.1)
  796. local wld26 = it("Weld")
  797. wld26.Parent = prt26
  798. wld26.Part0 = prt26
  799. wld26.Part1 = prt25
  800. wld26.C0 = euler(0,0,0) * cf(0,-1,0)
  801. local wld27 = it("Weld")
  802. wld27.Parent = prt27
  803. wld27.Part0 = prt27
  804. wld27.Part1 = prt26
  805. wld27.C0 = euler(0,0,0) * cf(0,0,0)
  806. local wld28 = it("Weld")
  807. wld28.Parent = prt28
  808. wld28.Part0 = prt28
  809. wld28.Part1 = prt25
  810. wld28.C0 = euler(0,0,0) * cf(0,0,0)
  811. local wld29 = it("Weld")
  812. wld29.Parent = prt29
  813. wld29.Part0 = prt29
  814. wld29.Part1 = prt21
  815. wld29.C0 = euler(0,0,0) * cf(0,0,0.8)
  816. local wld30 = it("Weld")
  817. wld30.Parent = prt30
  818. wld30.Part0 = prt30
  819. wld30.Part1 = prt29
  820. wld30.C0 = euler(math.rad(90),0,0) * cf(0,0,-0.2)
  821. local wld31 = it("Weld")
  822. wld31.Parent = prt31
  823. wld31.Part0 = prt31
  824. wld31.Part1 = prt18
  825. wld31.C0 = euler(math.rad(90),0,0) * cf(0,-0.4,0.5)
  826.  
  827. local RAP = it("Part")
  828. RAP.formFactor = 0
  829. RAP.CanCollide = false
  830. RAP.Name = "RAPart"
  831. RAP.Locked = true
  832. RAP.Size = vt(1,1,1)
  833. RAP.Parent = swordholder
  834. RAP.Transparency = 1
  835. local w = it("Weld")
  836. w.Parent = RAP
  837. w.Part0 = RAP
  838. w.Part1 = RightArm
  839. w.C1 = euler(0, 0, 0) * cf(0, 0,0)
  840. w.C0 = euler(math.rad(0), 0, 0) * cf(0, 1, 0)
  841.  
  842.  
  843. saydebounce=false
  844. function Say(type)
  845. --[[if saydebounce==false then
  846. saydebounce=true
  847. if type=="Gunzerking" then
  848. Sayings={"TIME TO OVERCOMPENSATE!","DUAL WIELD, BABY!","DOUBLE THE FUN!","THIS IS RIDICULOUS!","AHAHAHAH, YOU'RE ALL GONNA DIE!"}
  849. elseif type=="KilledGunzerk" then
  850. Sayings={"THIS IS RIDICULOUS!","GET OFF MY PLANE!","Smile, son of a...!","WAHAHAHAHAH!","DIE, BITCHES!"}
  851. elseif type=="NoAmmo" then
  852. Sayings={"Bullets schmullets.","I need more gun!","Damn! Out of ammo!"}
  853. elseif type=="Killed" then
  854. Sayings={"Hell yeah!","It's been revoked!","Scream for me!","Get off my plane!"}
  855. elseif type=="Shooting" then
  856. Sayings={"BULLETS FOR EVERYONE!","NEVER ENDING FIRE!","AHAHAHAHAH!","DIE ALREADY!","NOT ENOUGH BULLETS!"}
  857. elseif type=="FacepalmTaunt" then
  858. Sayings={"Ugh.","You've gotta be kidding me.","Pathetic."}
  859. end
  860. if math.random(1,3)==1 then
  861. game:GetService("Chat"):Chat(Character,Sayings[math.random(1,#Sayings)],2)
  862. end
  863. coroutine.resume(coroutine.create(function()
  864. wait(1)
  865. saydebounce=false
  866. end))
  867. end]]
  868. end
  869.  
  870. function unequipweld()
  871. w1.Part1 = Torso
  872. w1.C1 = euler(0, 0, 0) * cf(0, 0,0)
  873. w1.C0 = euler(math.rad(90),math.rad(0), 0) * cf(-1, 1, -0.25)
  874. end
  875.  
  876. unequipweld()
  877.  
  878.  
  879.  
  880. function equipweld()
  881. w1.Part0 = prt1
  882. w1.Part1 = RAP
  883. w1.C1 = euler(0, 0, 0) * cf(0, 0,0)
  884. w1.C0 = angles(math.rad(90), math.rad(0), math.rad(0)) * cf(0, 0, 0)
  885. end
  886.  
  887.  
  888. so = function(id,par,vol,pit)
  889. coroutine.resume(coroutine.create(function()
  890. local sou = it("Sound",par or workspace)
  891. sou.Volume=vol
  892. sou.Pitch=pit or 1
  893. sou.SoundId=id
  894. wait()
  895. sou:play()
  896. wait(6)
  897. sou:Remove()
  898. end))
  899. end
  900.  
  901. function ss(parent,p) --Slash
  902. so("rbxasset://sounds\\swordslash.wav",parent,.7,p)
  903. --[[local SlashSound = it("Sound")
  904. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  905. SlashSound.Parent = parent
  906. SlashSound.Volume = .7
  907. SlashSound.Pitch = p
  908. SlashSound.PlayOnRemove = true
  909. coroutine.resume(coroutine.create(function()
  910. wait()
  911. SlashSound.Parent = nil
  912. end))]]
  913. end
  914. function uss(parent,p) --unsheath
  915. so("rbxasset://sounds\\unsheath.wav",parent,.7,p)
  916. --[[local SlashSound = it("Sound")
  917. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  918. SlashSound.Parent = parent
  919. SlashSound.Volume = .7
  920. SlashSound.Pitch = p
  921. SlashSound.PlayOnRemove = true
  922. coroutine.resume(coroutine.create(function()
  923. wait()
  924. SlashSound.Parent = nil
  925. end))]]
  926. end
  927. function cs(parent,p) --Magic Charge
  928. so("http://www.roblox.com/asset/?id=2101137",parent,.7,p)
  929. --[[local SlashSound = it("Sound")
  930. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  931. SlashSound.Parent = parent
  932. SlashSound.Volume = .7
  933. SlashSound.Pitch = p
  934. SlashSound.PlayOnRemove = true
  935. coroutine.resume(coroutine.create(function()
  936. wait()
  937. SlashSound.Parent = nil
  938. end))]]
  939. end
  940. function ls(parent,p) --Lazer Sound
  941. so("http://www.roblox.com/asset?id=1369158",parent,.7,p)
  942. --[[local SlashSound = it("Sound")
  943. SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158"
  944. SlashSound.Parent = parent
  945. SlashSound.Volume = .7
  946. SlashSound.Pitch = p
  947. SlashSound.PlayOnRemove = true
  948. coroutine.resume(coroutine.create(function()
  949. wait()
  950. SlashSound.Parent = nil
  951. end))]]
  952. end
  953. function ts(parent,p)
  954. so("http://www.roblox.com/asset/?id=12222030",parent,.7,p)
  955. --[[local SlashSound = it("Sound")
  956. SlashSound.SoundId = "http://www.roblox.com/asset/?id=12222030"
  957. SlashSound.Parent = parent
  958. SlashSound.Volume = .7
  959. SlashSound.Pitch = p
  960. SlashSound.PlayOnRemove = true
  961. coroutine.resume(coroutine.create(function()
  962. wait()
  963. SlashSound.Parent = nil
  964. end))]]
  965. end
  966. function fs(parent,p) --Fire Sound
  967. so("http://www.roblox.com/asset/?id=2697431",parent,.7,p)
  968. --[[local SlashSound = it("Sound")
  969. SlashSound.SoundId = "http://www.roblox.com/asset/?id=31758982"
  970. SlashSound.Parent = parent
  971. SlashSound.Volume = .7
  972. SlashSound.Pitch = p
  973. SlashSound.PlayOnRemove = true
  974. coroutine.resume(coroutine.create(function()
  975. wait()
  976. SlashSound.Parent = nil
  977. end))]]
  978. end
  979. function ms(parent,p) --Metal Cling Sound
  980. so("rbxasset://sounds\\metal.ogg",parent,1,p)
  981. --[[local SlashSound = it("Sound")
  982. SlashSound.SoundId = "rbxasset://sounds\\metal.ogg"
  983. SlashSound.Parent = parent
  984. SlashSound.Volume = 5
  985. SlashSound.Pitch = p
  986. SlashSound.PlayOnRemove = true
  987. coroutine.resume(coroutine.create(function()
  988. wait()
  989. SlashSound.Parent = nil
  990. end))]]
  991. end
  992. function bs(parent,p) --Berserk Sound
  993. so("http://www.roblox.com/asset/?id=2676305",parent,1,p)
  994. --[[local SlashSound = it("Sound")
  995. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2676305"
  996. SlashSound.Parent = parent
  997. SlashSound.Volume = 1
  998. SlashSound.Pitch = p
  999. SlashSound.PlayOnRemove = true
  1000. coroutine.resume(coroutine.create(function()
  1001. wait()
  1002. SlashSound.Parent = nil
  1003. end))]]
  1004. end
  1005. function hs(parent,p) --Ammo Hit Sound
  1006. --ms(parent,p)
  1007. end
  1008. function as(parent,p) --Gun Shoot Sound
  1009. so("http://roblox.com/asset/?id=10209257",parent,0.5,p)
  1010. --[[local SlashSound = it("Sound")
  1011. SlashSound.SoundId = "http://roblox.com/asset/?id=10209257"
  1012. SlashSound.Parent = parent
  1013. SlashSound.Volume = 0.5
  1014. SlashSound.Pitch = p
  1015. SlashSound.PlayOnRemove = true
  1016. coroutine.resume(coroutine.create(function()
  1017. wait()
  1018. SlashSound.Parent = nil
  1019. end))]]
  1020. end
  1021. function as2(parent,p) --Gun Shoot Sound 2
  1022. so("http://roblox.com/asset/?id=97848313",parent,0.7,p)
  1023. --[[local SlashSound = it("Sound")
  1024. SlashSound.SoundId = "http://roblox.com/asset/?id=97848313"
  1025. SlashSound.Parent = parent
  1026. SlashSound.Volume = 0.7
  1027. SlashSound.Pitch = p
  1028. SlashSound.PlayOnRemove = true
  1029. coroutine.resume(coroutine.create(function()
  1030. wait()
  1031. SlashSound.Parent = nil
  1032. end))]]
  1033. end
  1034. function ars(parent,p) --Gun Reload Sound
  1035. so("http://roblox.com/asset/?id=10209869",parent,1,p)
  1036. --[[local SlashSound = it("Sound")
  1037. SlashSound.SoundId = "http://roblox.com/asset/?id=10209869"
  1038. SlashSound.Parent = parent
  1039. SlashSound.Volume = 1
  1040. SlashSound.Pitch = p
  1041. SlashSound.PlayOnRemove = true
  1042. coroutine.resume(coroutine.create(function()
  1043. wait()
  1044. SlashSound.Parent = nil
  1045. end))]]
  1046. end
  1047. --
  1048. --
  1049.  
  1050. function returndmg()
  1051. mindamage = omindamage
  1052. maxdamage = omaxdamage
  1053. crtmaxdamage = ocrtmaxdamage
  1054. end
  1055.  
  1056. function subdmg(sub)
  1057. mindamage = omindamage - sub
  1058. maxdamage = omaxdamage - sub
  1059. crtmaxdamage = ocrtmaxdamage - sub
  1060. end
  1061.  
  1062. function prcntdmg(sub)
  1063. mindamage = math.floor(omindamage - (omindamage*(sub/100)))
  1064. maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100)))
  1065. crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100)))
  1066. end
  1067.  
  1068. function tagHumanoid(humanoid, player)
  1069. local creator_tag = it("ObjectValue")
  1070. creator_tag.Value = player
  1071. creator_tag.Name = "creator"
  1072. creator_tag.Parent = humanoid
  1073. end
  1074.  
  1075. function untagHumanoid(humanoid)
  1076. if humanoid ~= nil then
  1077. local tag = humanoid:findFirstChild("creator")
  1078. if tag ~= nil then
  1079. tag.Parent = nil
  1080. end
  1081. end
  1082. end
  1083.  
  1084. local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1085. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1086. end
  1087.  
  1088.  
  1089.  
  1090. function hideanim()
  1091. attack = true
  1092. ars(Head,0.85)
  1093. for i = 0.25 ,1 ,0.25 do
  1094. wait()
  1095. w10.C1 = euler(0, 0, 0) * cf(0, -0.8*i, 0)
  1096. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60+60*i))
  1097. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25+25*i), 0, 0)
  1098. Neck.C0 = neckcf0 * angles(math.rad(5*i),0,math.rad(-30*i))
  1099. end
  1100. for i = 0.1 ,1 ,0.2 do
  1101. wait()
  1102. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(0))
  1103. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(50-70*i), 0, 0)
  1104. w2.C0 = euler(math.rad(90+90*i), 0,0) * cf(0, -0.75, 0.25)
  1105. Neck.C0 = neckcf0 * angles(math.rad(5-10*i),0,math.rad(-30))
  1106. end
  1107. for i = 0.1 ,1 ,0.1 do
  1108. wait()
  1109. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(0))
  1110. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(50-70-10*i), 0, 0)
  1111. w2.C0 = euler(math.rad(90+90), 0,0) * cf(0, -0.75, 0.25)
  1112. Neck.C0 = neckcf0 * angles(math.rad(5-10-5*i),0,math.rad(-30))
  1113. end
  1114. for i = 0.1 ,1 ,0.1 do
  1115. wait()
  1116. RW.C0 = cf(1.5, 0.5, -0.25+0.25*i) * angles(math.rad(90-110*i),math.rad(0),math.rad(0))
  1117. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(-30+30*i), 0, 0)
  1118. Neck.C0 = neckcf0 * angles(math.rad(-10+40*i),0,math.rad(-30))
  1119. end
  1120. unequipweld()
  1121. for i = 0.1 ,1 ,0.1 do
  1122. wait()
  1123. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(-20+20*i),math.rad(0),math.rad(0))
  1124. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(0), 0, 0)
  1125. Neck.C0 = neckcf0 * angles(math.rad(30-30*i),0,math.rad(-30+30*i))
  1126. end
  1127. Neck.C0 = neckcf0
  1128. RWRem()
  1129. LWRem()
  1130. attack = false
  1131. end
  1132.  
  1133.  
  1134. function equipanim()
  1135. attack = true
  1136. RWFunc()
  1137. for i = 0.1 ,1 ,0.1 do
  1138. wait()
  1139. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(-20*i),math.rad(0),math.rad(0))
  1140. RW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  1141. Neck.C0 = neckcf0 * angles(math.rad(30*i),0,math.rad(-30*i))
  1142. end
  1143. equipweld()
  1144. ars(Head,1)
  1145. for i = 0.1 ,1 ,0.1 do
  1146. wait()
  1147. RW.C0 = cf(1.5, 0.5, -0.25*i) * angles(math.rad(-20+130*i),math.rad(0),math.rad(0))
  1148. RW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  1149. w2.C0 = euler(math.rad(180-90*i), 0,0) * cf(0, -0.75, 0.25)
  1150. Neck.C0 = neckcf0 * angles(math.rad(30-35*i),0,math.rad(-30))
  1151. end
  1152. --LWFunc()
  1153. for i = 0.1 ,1 ,0.1 do
  1154. wait()
  1155. w10.C1 = euler(0, 0, 0) * cf(0, -0.8+0.8*i, 0)
  1156. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(110-20*i),math.rad(0),math.rad(-60*i))
  1157. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25*i), 0, 0)
  1158. Neck.C0 = neckcf0 * angles(math.rad(-5+5*i),0,math.rad(-30+30*i))
  1159. end
  1160. Neck.C0 = neckcf0
  1161. attack = false
  1162. end
  1163.  
  1164.  
  1165. function faketors()
  1166. local T = it("Part")
  1167. T.formFactor = 0
  1168. T.CanCollide = false
  1169. T.Name = "FakeTorso"
  1170. T.Locked = true
  1171. T.Size = Torso.Size
  1172. T.Parent = swordholder
  1173. T.Transparency = 1
  1174. T.BrickColor = Torso.BrickColor
  1175. for i,z in pairs(Character:GetChildren()) do
  1176. if z.className == "CharacterMesh" then
  1177. if z.BodyPart == Enum.BodyPart.Torso then
  1178. local SM = it("SpecialMesh",T)
  1179. SM.MeshId = "http://www.roblox.com/asset/?id=" .. z.MeshId
  1180. if z.BaseTextureId ~= 0 then
  1181. SM.TextureId = z.BaseTextureId
  1182. elseif z.OverlayTextureId ~= 0 then
  1183. SM.TextureId = z.OverlayTextureId
  1184. else
  1185. SM.TextureId = ""
  1186. end
  1187. end
  1188. end
  1189. end
  1190. local wt = it("Weld")
  1191. wt.Parent = T
  1192. wt.Part0 = T
  1193. wt.Part1 = Torso
  1194. RW.Part0 = T
  1195. LW.Part0 = T
  1196. T.Transparency = 0
  1197. Torso.Transparency = 1
  1198. RHL.Part0 = T
  1199. LHL.Part0 = T
  1200. return wt,T
  1201. end
  1202.  
  1203.  
  1204. if (script.Parent.className ~= "HopperBin") then
  1205. Tool = it("HopperBin")
  1206. Tool.Parent = Backpack
  1207. Tool.Name = ToolName
  1208. script.Parent = Tool
  1209. end
  1210. Bin = script.Parent
  1211.  
  1212. function damagesplat(dmg,hit,crit,blocked)
  1213. local mo = it("Model")
  1214. mo.Name = dmg
  1215. local pa = it("Part",mo)
  1216. pa.formFactor = 3
  1217. if critical==false then
  1218. pa.Size = vt(0.8,0.3,0.8)
  1219. else
  1220. pa.Size = vt(0.8*1.5,0.3*2,0.8*1.5)
  1221. end
  1222. if critical==true then
  1223. pa.BrickColor = BrickColor.new("Really red")
  1224. elseif critical==false then
  1225. pa.BrickColor = BrickColor.new("Bright red")
  1226. end
  1227. if blocked then pa.BrickColor = BrickColor.new("Bright blue") end
  1228. pa.CFrame = cf(hit.Position) * cf(0, 3, 0)
  1229. pa.Name = "Head"
  1230. local hah = it("Humanoid")
  1231. hah.Parent = mo
  1232. hah.MaxHealth = 0
  1233. hah.Health = 0
  1234. local bp = it("BodyPosition")
  1235. bp.P = 14000
  1236. bp.maxForce = vt(math.huge, math.huge, math.huge)
  1237. bp.position = hit.Position + vt(0, 5, 0)
  1238. coroutine.resume(coroutine.create(function()
  1239. wait()
  1240. mo.Parent = workspace
  1241. bp.Parent = pa
  1242. wait(1.4)
  1243. mo:remove()
  1244. end))
  1245. return pa
  1246. end
  1247.  
  1248. function damage(hum,dmg,critornot)
  1249. local pa = damagesplat(dmg,hum.Torso,critornot)
  1250. --hum:TakeDamage(dmg)
  1251. hum.Health=hum.Health-dmg
  1252. coroutine.resume(coroutine.create(function()
  1253. tagHumanoid(hum,Player)
  1254. wait(1)
  1255. untagHumanoid(hum)
  1256. end))
  1257. return pa
  1258. end
  1259.  
  1260. function AddAmmo(add)
  1261. Ammo = Ammo + add
  1262. if Ammo > MaxAmmo then
  1263. Ammo = MaxAmmo
  1264. end
  1265. end
  1266.  
  1267. Enemy=nil
  1268. function ADmg(humm,hit,pos)
  1269. if Enemy==nil then
  1270. Enemy=hit.Parent
  1271. end
  1272. coroutine.resume(coroutine.create(function()
  1273. wait(1)
  1274. print(Enemy.Humanoid.Health)
  1275. if Enemy.Humanoid.Health==0 then
  1276. if Gunzerkering==false then
  1277. Say("Killed")
  1278. else
  1279. Say("KilledGunzerk")
  1280. end
  1281. end
  1282. if attack==false and Enemy~=nil then
  1283. print("Did "..Did.." Damage")
  1284. Enemy=nil
  1285. HP=0
  1286. end
  1287. end))
  1288. if CurrentAmmo == "Normal" then
  1289. if humm.Parent:findFirstChild("Block") ~= nil then
  1290. if humm.Parent.Block.Value then
  1291. damagesplat(0,humm.Torso,false,true)
  1292. return
  1293. end
  1294. end
  1295. if guntype=="Revolver" then
  1296. if critical==true then
  1297. prcntdmg(-75)
  1298. else
  1299. prcntdmg(0)
  1300. end
  1301. elseif guntype=="Machine Gun" then
  1302. prcntdmg(60)
  1303. end
  1304. if critrandomizer ~= 1 then
  1305. local rndmdamage = math.random(mindamage,maxdamage)
  1306. damage(humm,rndmdamage,false)
  1307. elseif critrandomizer == 1 then
  1308. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1309. damage(humm,rndmdamage,true)
  1310. end
  1311. local vel = it("BodyVelocity",humm.Torso)
  1312. vel.maxForce = vt(1,1,1) * math.huge
  1313. vel.P = vel.P * 5
  1314. vel.velocity = vt(0,1,0) + cf(Torso.Position,humm.Torso.Position).lookVector * 10
  1315. coroutine.resume(coroutine.create(function()
  1316. wait() wait() wait() wait()
  1317. vel.Parent=nil
  1318. end))
  1319. end
  1320. end
  1321.  
  1322. function OT(hit) --Normal Damage
  1323. if Hitdeb == 1 then return end
  1324. if hit.Parent == nil then return end
  1325. local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
  1326. if hum.Health <= 0 then return end
  1327. if hit.Parent:findFirstChild("Block") ~= nil then
  1328. if hit.Parent.Block.Value then
  1329. damagesplat(0,hum.Torso,false,true)
  1330. Hitdeb = 1
  1331. if hit.Parent.Block:findFirstChild("BlockPower") ~= nil then
  1332. if hit.Parent.Block.BlockPower.Value <= 1 then
  1333. hit.Parent.Block.Value = false
  1334. elseif hit.Parent.Block.BlockPower.Value > 1 then
  1335. local critrandomizer = math.random(crtrate)
  1336. if critrandomizer ~= 1 then
  1337. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker
  1338. elseif critrandomizer == 1 then
  1339. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker + 2
  1340. end
  1341. end
  1342. end
  1343. return end end
  1344. local critrandomizer = math.random(crtrate)
  1345. if critrandomizer ~= 1 then
  1346. local rndmdamage = math.random(mindamage,maxdamage)
  1347. damage(hum,rndmdamage,false)
  1348. elseif critrandomizer == 1 then
  1349. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1350. damage(hum,rndmdamage,true)
  1351. end
  1352. Hitdeb = 1
  1353. end
  1354. end
  1355.  
  1356.  
  1357. function AoE(p,magnitude)
  1358. local c = game.Workspace:GetChildren();
  1359. for i = 1, #c do
  1360. local hum = c[i]:findFirstChild("Humanoid")
  1361. if hum ~= nil and hum.Health ~= 0 then
  1362. local head = c[i]:findFirstChild("Head");
  1363. if head ~= nil then
  1364. local mag = (head.Position - p).magnitude;
  1365. if mag <= magnitude and c[i].Name ~= Character.Name then
  1366. local foundd = false
  1367. for ii = 1 , #AoETrue do
  1368. if AoETrue[ii] == c[i].Name then
  1369.  
  1370. foundd = true
  1371. end
  1372. end
  1373. if foundd then
  1374.  
  1375. end
  1376. --
  1377. if not foundd then
  1378. local critrandomizer = math.random(crtrate)
  1379. if critrandomizer ~= 1 then
  1380. local rndmdamage = math.random(mindamage,maxdamage)
  1381. damage(hum,rndmdamage,false)
  1382. elseif critrandomizer == 1 then
  1383. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1384. damage(hum,rndmdamage,true)
  1385. end
  1386. table.insert(AoETrue,c[i].Name)
  1387. end
  1388. end
  1389. end
  1390. end
  1391. end
  1392. for ii = 1 , #AoETrue do
  1393. table.remove(AoETrue,#AoETrue)
  1394. end
  1395. end
  1396.  
  1397. --
  1398.  
  1399.  
  1400. --
  1401.  
  1402. function effect(Color,Ref,LP,P1)
  1403. local effectsmsh = it("BlockMesh")
  1404. effectsmsh.Scale = vt(1,1,1)
  1405. effectsmsh.Name = "Mesh"
  1406. local effectsg = it("Part")
  1407. effectsg.formFactor = 3
  1408. effectsg.CanCollide = false
  1409. effectsg.Name = "Eff"
  1410. effectsg.Locked = true
  1411. effectsg.Anchored = true
  1412. effectsg.Size = vt(0.2,1,0.2)
  1413. effectsg.Parent = swordholder
  1414. effectsmsh.Parent = effectsg
  1415. effectsg.BrickColor = BrickColor.new(Color)
  1416. effectsg.Reflectance = Ref
  1417. local point1 = P1
  1418. local mg = (LP.p - point1.p).magnitude
  1419. effectsg.Size = vt(0.2,mg,0.2)
  1420. effectsg.CFrame = cf((LP.p+point1.p)/2,point1.p) * angles(math.rad(90),0,0)
  1421. coroutine.resume(coroutine.create(function()
  1422. for i = 0 , 1 , 0.1 do
  1423. wait()
  1424. effectsg.Transparency = 1*i
  1425. effectsmsh.Scale = vt(0.5-0.5*i,1,0.5-0.5*i)
  1426. end
  1427. wait()
  1428. effectsg.Parent = nil
  1429. end))
  1430. end
  1431. --
  1432.  
  1433.  
  1434. con = nil
  1435.  
  1436.  
  1437. function dmgcnnct()
  1438. if con ~= nil then
  1439. con:disconnect()
  1440. Hitdeb = 0
  1441. end
  1442. con = prt11.Touched:connect(OT)
  1443. end
  1444.  
  1445. function dmgdc()
  1446. if con ~= nil then
  1447. con:disconnect()
  1448. Hitdeb = 0
  1449. end
  1450. end
  1451.  
  1452. function rptddmg(value,des,inc)
  1453. coroutine.resume(coroutine.create(function()
  1454. repeat
  1455. wait(inc)
  1456. Hitdeb = 0
  1457. until value == des
  1458. end))
  1459. end
  1460.  
  1461. function atktype(s,e)
  1462. coroutine.resume(coroutine.create(function ()
  1463. attacktype = e
  1464. wait(0.25)
  1465. attacktype = s
  1466. end))
  1467. end
  1468.  
  1469.  
  1470. function EVENMOARMAGIX2(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1471. local msh1 = it("SpecialMesh")
  1472. msh1.Scale = vt(0.5,0.5,0.5)
  1473. msh1.MeshType = "Sphere"
  1474. S=it("Part")
  1475. S.Name="Effect"
  1476. S.formFactor=0
  1477. S.Size=vt(x1,y1,z1)
  1478. S.BrickColor=color
  1479. S.Reflectance = 0
  1480. S.TopSurface=0
  1481. S.BottomSurface=0
  1482. S.Transparency=0
  1483. S.Anchored=true
  1484. S.CanCollide=false
  1485. S.CFrame=part
  1486. S.Parent=workspace
  1487. msh1.Parent = S
  1488. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 14 do Part.Mesh.Scale = Part.Mesh.Scale + vt(1,1,1) Part.Transparency=Part.Transparency+0.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1489. end
  1490.  
  1491. guntype="Revolver"
  1492. function shoottrail(mouse)
  1493. spread = 0
  1494. range = 400
  1495. rangepower = 100
  1496. --local p1 = (prt5.CFrame * cf(0,-prt5.Size.y/4,0)).p
  1497. local p1 = (prt4.CFrame * cf(0,prt4.Size.y/2,0)).p
  1498. local spreadvector = (vt(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread)) / 100) * (p1-mouse.Hit.p).magnitude/100
  1499. local dir = cf((p1+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  1500. local hit,pos = rayCast(p1,dir.lookVector,10,Character)
  1501. local rangepos = range
  1502. local function drawtrail(From,To)
  1503. local effectsmsh = it("CylinderMesh")
  1504. effectsmsh.Scale = vt(1,1,1)
  1505. effectsmsh.Name = "Mesh"
  1506. local effectsg = it("Part")
  1507. effectsg.formFactor = 3
  1508. effectsg.CanCollide = false
  1509. effectsg.Name = "Eff"
  1510. effectsg.Locked = true
  1511. effectsg.Anchored = true
  1512. effectsg.Size = vt(0.2,0.2,0.2)
  1513. effectsg.Parent = swordholder
  1514. effectsmsh.Parent = effectsg
  1515. effectsg.BrickColor = ammotrail
  1516. effectsg.Reflectance = 0.25
  1517. local LP = From
  1518. local point1 = To
  1519. local mg = (LP - point1).magnitude
  1520. effectsmsh.Scale = vt(1,mg*5,1)
  1521. effectsg.CFrame = cf((LP+point1)/2,point1) * angles(math.rad(90),0,0)
  1522. coroutine.resume(coroutine.create(function()
  1523. for i = 0 , 1 , 0.1 do
  1524. wait()
  1525. effectsg.Transparency = 1*i
  1526. effectsmsh.Scale = vt(1-1*i,mg*5,1-1*i)
  1527. end
  1528. effectsg.Parent = nil
  1529. end))
  1530. end
  1531. local newpos = p1
  1532. local inc = rangepower
  1533. repeat
  1534. wait()
  1535. rangepos = rangepos - 10
  1536. dir = dir * angles(math.rad(-0.1),0,0)
  1537. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  1538. drawtrail(newpos,pos)
  1539. newpos = newpos + (dir.lookVector * inc)
  1540. if inc >= 20 then
  1541. inc = inc - 10
  1542. end
  1543. if hit ~= nil then
  1544. rangepos = 0
  1545. end
  1546. until rangepos <= 0
  1547. if hit ~= nil then
  1548. hs(Head,1)
  1549. print(hit.Name)
  1550. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1551. critical=false
  1552. if hit.Name=="Head" then
  1553. coroutine.resume(coroutine.create(function(HeadPart)
  1554. for i=0,0.5,0.1 do
  1555. wait()
  1556. HeadPart.Velocity=vt(0,60,0)
  1557. end
  1558. end),hit)
  1559. print("CRITICAL")
  1560. critical=true
  1561. p=it("Part")
  1562. p.Parent=workspace
  1563. p.CanCollide=false
  1564. p.Transparency=1
  1565. p.CFrame=hit.CFrame
  1566. p.Anchored=true
  1567. local GUI = it("BillboardGui")
  1568. GUI.Adornee = p
  1569. GUI.Parent = p
  1570. GUI.Active = true
  1571. GUI.Enabled = true
  1572. GUI.Size = UDim2.new(1, 0, 1, 0)
  1573. GUI.StudsOffset = vt(0, 4, 0)
  1574. local Chat = it("TextLabel")
  1575. Chat.Parent = GUI
  1576. Chat.FontSize = "Size12"
  1577. Chat.Position = UDim2.new(0.599999964, 0, 0, 0)
  1578. Chat.Visible = true
  1579. Chat.Text = "Critical!"
  1580. coroutine.resume(coroutine.create(function(Part)
  1581. for i=0,4,0.1 do
  1582. wait()
  1583. Part.CFrame=Part.CFrame*cf(0,0.05,0)
  1584. end
  1585. Part.Parent=nil
  1586. end),p)
  1587. for i=0,7 do
  1588. Blood=it("Part")
  1589. Blood.Name="Blood"
  1590. Blood.TopSurface="Smooth"
  1591. Blood.BottomSurface="Smooth"
  1592. Blood.formFactor="Plate"
  1593. Blood.BrickColor=BrickColor:Red()
  1594. Blood.Size=vt(1,.4,1)
  1595. Blood.Velocity=vt(math.random(-4,4),math.random(5,25),math.random(-4,4))
  1596. Blood.CFrame=hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1597. Blood.Parent=workspace
  1598. Blood.Velocity=vt(math.random(-20,20),math.random(20,50),math.random(-20,20))
  1599. Blood.CanCollide=false
  1600. coroutine.resume(coroutine.create(function(blod)
  1601. wait(0.1)
  1602. blod.CanCollide=true
  1603. wait(5)
  1604. blod.Parent = nil
  1605. end),Blood)
  1606. end
  1607. end
  1608. hum = hit.Parent.Humanoid
  1609. attackdebounce=false
  1610. guntype="Revolver"
  1611. ADmg(hum,hit,pos)
  1612. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1613. if hit.Parent.className == "Hat" then
  1614. hatCF=hit.CFrame
  1615. coroutine.resume(coroutine.create(function(hat)
  1616. hat.Handle:BreakJoints()
  1617. hat.Handle.CFrame=hatCF
  1618. hat.Handle.CanCollide=true
  1619. hat.Handle.Velocity=vt(math.random(-10,10),40,math.random(-10,10))
  1620. wait(3)
  1621. hatCF=hat.Handle.CFrame
  1622. hat.Parent=workspace
  1623. for i=0,4,0.2 do
  1624. wait()
  1625. hat.Handle.CFrame=hatCF
  1626. hat.Handle.Velocity=vt(math.random(-5,5),20,math.random(-5,5))
  1627. end
  1628. end),hit.Parent)
  1629. --[[hit:BreakJoints()
  1630. hit.CFrame=CF
  1631. hit.Velocity = vt(math.random(-5,5),20,math.random(-5,5)) ]]
  1632. print("BREAKHAT")
  1633. else
  1634. hum = hit.Parent.Parent.Humanoid
  1635. attackdebounce=false
  1636. guntype="Revolver"
  1637. ADmg(hum,hit,pos)
  1638. end
  1639. critical=false
  1640. end
  1641. print(critical)
  1642. end
  1643. end
  1644.  
  1645. function shoottrail2(mouse)
  1646. spread = 1
  1647. spread = spread*100
  1648. range = 100
  1649. rangepower = 100
  1650. local p1 = (prt26.CFrame * cf(0,prt26.Size.y/4,0)).p
  1651. local spreadvector = (vt(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread)) / 100) * (p1-mouse.Hit.p).magnitude/100
  1652. local dir = cf((p1+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  1653. local hit,pos = rayCast(p1,dir.lookVector,10,Character)
  1654. local rangepos = range
  1655. local function drawtrail(From,To)
  1656. local effectsmsh = it("CylinderMesh")
  1657. effectsmsh.Scale = vt(1,1,1)
  1658. effectsmsh.Name = "Mesh"
  1659. local effectsg = it("Part")
  1660. effectsg.formFactor = 3
  1661. effectsg.CanCollide = false
  1662. effectsg.Name = "Eff"
  1663. effectsg.Locked = true
  1664. effectsg.Anchored = true
  1665. effectsg.Size = vt(0.2,0.2,0.2)
  1666. effectsg.Parent = swordholder
  1667. effectsmsh.Parent = effectsg
  1668. effectsg.BrickColor = ammotrail
  1669. effectsg.Reflectance = 0.25
  1670. local LP = From
  1671. local point1 = To
  1672. local mg = (LP - point1).magnitude
  1673. effectsmsh.Scale = vt(1,mg*5,1)
  1674. effectsg.CFrame = cf((LP+point1)/2,point1) * angles(math.rad(90),0,0)
  1675. coroutine.resume(coroutine.create(function()
  1676. for i = 0 , 1 , 0.1 do
  1677. wait()
  1678. effectsg.Transparency = 1*i
  1679. effectsmsh.Scale = vt(1-1*i,mg*5,1-1*i)
  1680. end
  1681. effectsg.Parent = nil
  1682. end))
  1683. end
  1684. local newpos = p1
  1685. local inc = rangepower
  1686. repeat
  1687. wait()
  1688. rangepos = rangepos - 10
  1689. dir = dir * angles(math.rad(-0.1),0,0)
  1690. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  1691. drawtrail(newpos,pos)
  1692. newpos = newpos + (dir.lookVector * inc)
  1693. if inc >= 20 then
  1694. inc = inc - 10
  1695. end
  1696. if hit ~= nil then
  1697. rangepos = 0
  1698. end
  1699. until rangepos <= 0
  1700. if CurrentAmmo=="Explosion" then
  1701. b=math.random(1,3)
  1702. if b==1 then
  1703. EVENMOARMAGIX2(cf(newpos),1,1,1,0,0,0,0,0,0,BrickColor.new("Bright red"))
  1704. local c = game.Workspace:GetChildren();
  1705. for i = 1, #c do
  1706. local hum = c[i]:findFirstChild("Humanoid")
  1707. if hum ~= nil and hum.Health ~= 0 then
  1708. local head = c[i]:findFirstChild("Head");
  1709. if head ~= nil then
  1710. local targ = head.Position - newpos;
  1711. local mag = targ.magnitude;
  1712. if mag <= 10 and c[i].Name ~= Player.Name then
  1713. attackdebounce=false
  1714. guntype="Machine Gun"
  1715. ADmg(hum,hit,pos)
  1716. end
  1717. end
  1718. end
  1719. end
  1720. end
  1721. end
  1722. if hit ~= nil then
  1723. hs(Head,1)
  1724. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1725. hum = hit.Parent.Humanoid
  1726. attackdebounce=false
  1727. guntype="Machine Gun"
  1728. ADmg(hum,hit,pos)
  1729. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1730. hum = hit.Parent.Parent.Humanoid
  1731. attackdebounce=false
  1732. guntype="Machine Gun"
  1733. ADmg(hum,hit,pos)
  1734. end
  1735. end
  1736. end
  1737.  
  1738. function shoottrail3(mouse)
  1739. spread = 1.5
  1740. spread = spread*100
  1741. range = 2000
  1742. rangepower = 10
  1743. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread)) / 100) * (prt24.Position-mouse.Hit.p).magnitude/100
  1744. local dir = CFrame.new((prt24.Position+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  1745. local hit,pos = rayCast(prt24.Position,dir.lookVector,10,Character)
  1746. local rangepos = range
  1747. local function drawtrail(From,To)
  1748. local effectsmsh = Instance.new("CylinderMesh")
  1749. effectsmsh.Scale = Vector3.new(1,1,1)
  1750. effectsmsh.Name = "Mesh"
  1751. local effectsg = Instance.new("Part")
  1752. effectsg.formFactor = 3
  1753. effectsg.CanCollide = false
  1754. effectsg.Name = "Eff"
  1755. effectsg.Locked = true
  1756. effectsg.Anchored = true
  1757. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1758. effectsg.Parent = swordholder
  1759. effectsmsh.Parent = effectsg
  1760. effectsg.BrickColor = BrickColor.new("White")
  1761. effectsg.Reflectance = 0.25
  1762. local LP = From
  1763. local point1 = To
  1764. local mg = (LP - point1).magnitude
  1765. effectsmsh.Scale = Vector3.new(5,mg*5,5)
  1766. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1767. coroutine.resume(coroutine.create(function()
  1768. for i = 0 , 1 , 0.1 do
  1769. wait()
  1770. effectsg.Transparency = 1*i
  1771. effectsmsh.Scale = Vector3.new(5-5*i,mg*5,5-5*i)
  1772. end
  1773. effectsg.Parent = nil
  1774. end))
  1775. end
  1776. local newpos = prt24.Position
  1777. local inc = rangepower
  1778. repeat
  1779. wait() wait()
  1780. rangepos = rangepos - 10
  1781. dir = dir * CFrame.Angles(math.rad(-2),0,0)
  1782. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  1783. drawtrail(newpos,pos)
  1784. newpos = newpos + (dir.lookVector * inc)
  1785. if inc >= 20 then
  1786. inc = inc - 10
  1787. end
  1788. if hit ~= nil then
  1789. rangepos = 0
  1790. end
  1791. until rangepos <= 0
  1792. EVENMOARMAGIX2(cf(newpos),5,5,5,0,0,0,0,0,0,BrickColor.new("White"))
  1793. WaveEffect2(cf(newpos),15,15,15,0,0,0,1,0,0,BrickColor.new("Bright blue"))
  1794. WaveEffect2(cf(newpos),15,15,15,0,0,0,-1,0,0,BrickColor.new("Bright blue"))
  1795. local c = game.Workspace:GetChildren();
  1796. for i = 1, #c do
  1797. local hum = c[i]:findFirstChild("Humanoid")
  1798. if hum ~= nil and hum.Health ~= 0 then
  1799. local head = c[i]:findFirstChild("Head");
  1800. if head ~= nil then
  1801. local targ = head.Position - newpos;
  1802. local mag = targ.magnitude;
  1803. if mag <= 15 and c[i].Name ~= Player.Name then
  1804. print("derp")
  1805. newpos2=newpos
  1806. Damagefunc2(head,30,0.1)
  1807. end
  1808. end
  1809. end
  1810. end
  1811. if hit ~= nil then
  1812. hs(Head,1)
  1813. local effectsmsh = Instance.new("SpecialMesh")
  1814. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  1815. effectsmsh.TextureId = "http://www.roblox.com/asset/?id=15886781"
  1816. effectsmsh.Scale = Vector3.new(1,1,2.5)
  1817. local effectsg = Instance.new("Part")
  1818. effectsg.formFactor = 3
  1819. effectsg.Transparency = 1
  1820. effectsg.CanCollide = false
  1821. effectsg.Name = "Arrow"
  1822. effectsg.Locked = true
  1823. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1824. effectsg.Parent = workspace
  1825. effectsmsh.Parent = effectsg
  1826. effectsg.CFrame = CFrame.new(newpos,pos) + CFrame.new(newpos,pos).lookVector*2.5*2
  1827. local weld = Instance.new("Weld")
  1828. weld.Part0 = effectsg
  1829. weld.Part1 = hit
  1830. local HitPos = effectsg.Position + CFrame.new(newpos,pos).lookVector*0.75
  1831. local CJ = CFrame.new(HitPos)
  1832. local C0 = effectsg.CFrame:inverse() * CJ
  1833. local C1 = hit.CFrame:inverse() * CJ
  1834. weld.C0 = C0
  1835. weld.C1 = C1
  1836. weld.Parent = effectsg
  1837. coroutine.resume(coroutine.create(function()
  1838. wait(15)
  1839. effectsg.Parent = nil
  1840. end))
  1841. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1842. --hum = hit.Parent.Humanoid
  1843. --tTorso=hit.Parent.Torso
  1844. --ADmg(hum,hit)
  1845. local critrandomizer = math.random(crtrate)
  1846. --damagesplat(critrandomizer,hit.Parent.Torso,false,true)
  1847. --_G.Damage(tTorso,game.Players.rigletto,math.huge,"Bow")
  1848. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1849. --hum = hit.Parent.Parent.Humanoid
  1850. --tTorso=hit.Parent.Parent.Torso
  1851. --ADmg(hum,hit)
  1852. --damagesplat(critrandomizer,hit.Parent.Parent.Torso,false,true)
  1853. --_G.Damage(tTorso,game.Players.rigletto,math.huge,"Bow")
  1854. end
  1855. end
  1856. end
  1857.  
  1858. function EVENMOARMAGIX2(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1859. local msh1 = it("SpecialMesh")
  1860. msh1.Scale = vt(0.5,0.5,0.5)
  1861. msh1.MeshType = "Sphere"
  1862. S=it("Part")
  1863. S.Name="Effect"
  1864. S.formFactor=0
  1865. S.Size=vt(x1,y1,z1)
  1866. S.BrickColor=color
  1867. S.Reflectance = 0
  1868. S.TopSurface=0
  1869. S.BottomSurface=0
  1870. S.Transparency=0
  1871. S.Anchored=true
  1872. S.CanCollide=false
  1873. S.CFrame=part
  1874. S.Parent=workspace
  1875. msh1.Parent = S
  1876. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 14 do Part.Mesh.Scale = Part.Mesh.Scale + vt(1,1,1) Part.Transparency=Part.Transparency+0.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1877. end
  1878.  
  1879. function WaveEffect2(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1880. local msh1 = it("SpecialMesh")
  1881. msh1.Scale = vt(x1,y1,z1)
  1882. msh1.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1883. S=it("Part")
  1884. S.Name="Effect"
  1885. S.formFactor=0
  1886. S.Size=vt(1,1,1)
  1887. S.BrickColor=color
  1888. S.Reflectance = 0
  1889. S.TopSurface=0
  1890. S.BottomSurface=0
  1891. S.Transparency=0
  1892. S.Anchored=true
  1893. S.CanCollide=false
  1894. S.CFrame=part*cf(x2,y2,z2)*euler(x3,y3,z3)
  1895. S.Parent=workspace
  1896. msh1.Parent = S
  1897. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 27 do Part.Mesh.Scale = Part.Mesh.Scale + vt(3,3,3) Part.Transparency=i*.05 wait() end Part.Parent=nil end),S,S.CFrame)
  1898. end
  1899.  
  1900. Damagefunc2=function(hit,Damage,Knockback)
  1901. --[[ if attackdebounce == false then
  1902. attackdebounce = true
  1903. coroutine.resume(coroutine.create(function()
  1904. wait(0.1)
  1905. attackdebounce = false
  1906. end)) ]]
  1907. if hit.Parent==nil then
  1908. return
  1909. end
  1910. CPlayer=Bin
  1911. blocked=false
  1912. h=hit.Parent:FindFirstChild("Humanoid")
  1913. if h~=nil and hit.Parent.Name~=game.workspace.CurrentCamera and hit.Parent:FindFirstChild("Torso")~=nil then
  1914. Damage=Damage
  1915. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1916. return
  1917. end]]
  1918. c=it("ObjectValue")
  1919. c.Name="creator"
  1920. c.Value=game.Players.LocalPlayer
  1921. c.Parent=h
  1922. game:GetService("Debris"):AddItem(c,.5)
  1923. -- print(c.Value)
  1924. Damage=Damage+math.random(0,10)
  1925. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1926. block=hit.Parent:findFirstChild("Block")
  1927. if block~=nil then
  1928. print("herp")
  1929. if block.Value>0 then
  1930. blocked=true
  1931. block.Value=block.Value-3
  1932. print(block.Value)
  1933. end
  1934. end
  1935. if blocked==false then
  1936. h:TakeDamage(Damage)
  1937. showDamage(hit.Parent,Damage,.5)
  1938. else
  1939. h:TakeDamage(1)
  1940. showDamage(hit.Parent,1,.5)
  1941. end
  1942. print(newpos2)
  1943. --if blocked==false then
  1944. local angle = (hit.Position-(newpos2+Vector3.new(0,-3,0))).unit
  1945. hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1946. rl=Instance.new("BodyAngularVelocity")
  1947. rl.P=3000
  1948. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1949. rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1950. rl.Parent=hit
  1951. coroutine.resume(coroutine.create(function(vel)
  1952. wait(1)
  1953. vel:Remove()
  1954. end),rl)
  1955. --end
  1956. local bodyVelocity=Instance.new("BodyVelocity")
  1957. bodyVelocity.velocity=angle*40+Vector3.new(0,35,0)
  1958. bodyVelocity.P=5000
  1959. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1960. bodyVelocity.Parent=hit
  1961. coroutine.resume(coroutine.create(function(Vel)
  1962. wait(0.7)
  1963. Vel:Remove()
  1964. end),bodyVelocity)
  1965. game:GetService("Debris"):AddItem(vp,1)
  1966. c=it("ObjectValue")
  1967. c.Name="creator"
  1968. c.Value=Player
  1969. c.Parent=h
  1970. game:GetService("Debris"):AddItem(c,.5)
  1971. CRIT=false
  1972. hitDeb=true
  1973. AttackPos=6
  1974. end
  1975. -- end
  1976. end
  1977.  
  1978. showDamage=function(Char,Dealt,du)
  1979. m=it("Model")
  1980. m.Name=tostring(Dealt)
  1981. h=it("Humanoid")
  1982. h.Health=0
  1983. h.MaxHealth=0
  1984. h.Parent=m
  1985. c=it("Part")
  1986. c.Transparency=0
  1987. c.BrickColor=BrickColor:Red()
  1988. if CRIT==true then
  1989. c.BrickColor=BrickColor.new("Really red")
  1990. end
  1991. if blocked==true then
  1992. c.BrickColor=BrickColor.new("Bright blue")
  1993. end
  1994. c.Name="Head"
  1995. c.TopSurface=0
  1996. c.BottomSurface=0
  1997. c.formFactor="Plate"
  1998. c.Size=vt(1,.4,1)
  1999. ms=it("CylinderMesh")
  2000. ms.Scale=vt(.8,.8,.8)
  2001. if CRIT==true then
  2002. ms.Scale=vt(1.25,1.5,1.25)
  2003. end
  2004. ms.Parent=c
  2005. c.Reflectance=0
  2006. it("BodyGyro").Parent=c
  2007. c.Parent=m
  2008. c.CFrame=cf(Char["Head"].CFrame.p+vt(0,1.5,0))
  2009. f=it("BodyPosition")
  2010. f.P=2000
  2011. f.D=100
  2012. f.maxForce=vt(math.huge,math.huge,math.huge)
  2013. f.position=c.Position+vt(0,3,0)
  2014. f.Parent=c
  2015. game:GetService("Debris"):AddItem(m,.5+du)
  2016. c.CanCollide=false
  2017. m.Parent=workspace
  2018. c.CanCollide=false
  2019. end
  2020.  
  2021. function Melee()
  2022. attack=true
  2023. guntype="Machine Gun"
  2024. for i = 0.1 ,1 ,0.1 do
  2025. wait()
  2026. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90+80*i),math.rad(0),math.rad(-60+80*i))
  2027. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  2028. Neck.C0 = neckcf0 * angles(math.rad(-20*i),0,math.rad(-10*i))
  2029. end
  2030. con1=RightArm.Touched:connect(function(hit)
  2031. hum=hit.Parent:FindFirstChild("Humanoid")
  2032. if hum~=nil then
  2033. if attackdebounce == false then
  2034. attackdebounce = true
  2035. coroutine.resume(coroutine.create(function()
  2036. wait(0.1)
  2037. attackdebounce = false
  2038. end))
  2039. ADmg(hum,hit,pos)
  2040. end
  2041. end
  2042. end)
  2043. con2=prt4.Touched:connect(function(hit)
  2044. hum=hit.Parent:FindFirstChild("Humanoid")
  2045. if hum~=nil then
  2046. if attackdebounce == false then
  2047. attackdebounce = true
  2048. coroutine.resume(coroutine.create(function()
  2049. wait(0.1)
  2050. attackdebounce = false
  2051. end))
  2052. ADmg(hum,hit,pos)
  2053. end
  2054. end
  2055. end)
  2056. for i = 0 ,1 ,0.2 do
  2057. wait()
  2058. RW.C0 = cf(1.5-0.5*i, 0.5, -0.25-0.25*i) * angles(math.rad(90+80-80*i),math.rad(0),math.rad(-60+80-60*i))
  2059. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), math.rad(30*i), 0)
  2060. Neck.C0 = neckcf0 * angles(math.rad(-20+40*i),0,math.rad(-10+20*i))
  2061. end
  2062. con1:disconnect()
  2063. con2:disconnect()
  2064. for i = 0 ,1 ,0.1 do
  2065. wait()
  2066. RW.C0 = cf(1.5-0.5+0.5*i, 0.5, -0.25-0.25+0.25*i) * angles(math.rad(90),math.rad(0),math.rad(-60+80-60-20*i))
  2067. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), math.rad(30-30*i), 0)
  2068. Neck.C0 = neckcf0 * angles(math.rad(-20+40-20*i),0,math.rad(-10+20-10*i))
  2069. end
  2070. guntype="Revolver"
  2071. attack=false
  2072. end
  2073.  
  2074. function Ready(mouse)
  2075. if Ammo <= 0 then Reload2() return end
  2076. attack = true
  2077. local wt,t = faketors()
  2078. LWFunc()
  2079. w7.Part1 = t
  2080. w8.Part1 = t
  2081. w9.Part1 = t
  2082. wld16.Part1 = t
  2083. Character.Humanoid.WalkSpeed = 5
  2084. for i = 0 , 1 , 0.3 do
  2085. wait(0)
  2086. RW.C0 = cf(1.5, 0.5, -0.25+0.25*i) * angles(math.rad(90),math.rad(0),math.rad(-60+150*i))
  2087. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-25*i), 0, 0)
  2088. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(10*i),math.rad(0),math.rad(-15*i))
  2089. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2090. wt.C0 = angles(0, math.rad(-90*i), 0)
  2091. end
  2092. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(90))
  2093. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(0), 0, 0)
  2094. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(10),math.rad(0),math.rad(-15))
  2095. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2096. wt.C0 = angles(0, math.rad(-90), 0)
  2097. wait() wait()
  2098. repeat
  2099. as2(Head,0.5+math.random())
  2100. coroutine.resume(coroutine.create(function()
  2101. for z = 1 ,2 do
  2102. coroutine.resume(coroutine.create(function()
  2103. local meshb1 = it("BlockMesh")
  2104. meshb1.Scale = vt(1,1,1)
  2105. local shellb1 = it("Part")
  2106. meshb1.Parent = shellb1
  2107. shellb1.Anchored = true
  2108. shellb1.formFactor = 3
  2109. shellb1.Size = vt(0.3,0.3,0.3) * (math.random(100,300)/100)
  2110. shellb1.CFrame = cf((prt6.CFrame * cf(0,-prt6.Size.y/2,0)).p) * angles(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  2111. shellb1.Parent = Character
  2112. shellb1.Transparency = 0
  2113. if math.random(1,2) == 1 then
  2114. shellb1.BrickColor = BrickColor.new("Bright red")
  2115. else
  2116. shellb1.BrickColor = BrickColor.new("Bright orange")
  2117. end
  2118. shellb1.CanCollide = false
  2119. local incre = math.random(0,60)/100
  2120. for i = 0 , 1 , 0.1 do
  2121. wait()
  2122. shellb1.CFrame = shellb1.CFrame + Torso.CFrame.lookVector*incre
  2123. shellb1.Transparency = 1*i
  2124. meshb1.Scale = vt(1+1*i,1+1*i,1+1*i)
  2125. end
  2126. shellb1.Parent=nil
  2127. end))
  2128. end
  2129. coroutine.resume(coroutine.create(function()
  2130. shoottrail(mouse)
  2131. end))
  2132. end))
  2133. Ammo = Ammo - 1
  2134. for i = 0.5 , 1 , 0.5*attackspeed do
  2135. wait(0)
  2136. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(90))
  2137. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(-20*i), 0, 0)
  2138. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(10),math.rad(0),math.rad(-15))
  2139. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2140. --wt.C0 = angles(0, math.rad(-90), 0)
  2141. end
  2142. for i = 0.5 , 1 , 0.5*attackspeed do
  2143. wait(0)
  2144. w2.C0 = euler(math.rad(90), 0,1.04667*i) * cf(0, -0.75, 0.25)
  2145. w4.C1 = euler(0, -1.04667*i, 0) * cf(0, 0, 0.14)
  2146. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(90))
  2147. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(-20+20*i), 0, 0)
  2148. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(10),math.rad(0),math.rad(-15))
  2149. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2150. --wt.C0 = angles(0, math.rad(-90), 0)
  2151. end
  2152. w2.C0 = euler(math.rad(90), 0,0) * cf(0, -0.75, 0.25)
  2153. w4.C1 = euler(0, 0, 0) * cf(0, 0, 0.14)
  2154. wait(0.3)
  2155. until not keyhold or Ammo <= 0
  2156. if Ammo==0 then
  2157. Say("NoAmmo")
  2158. end
  2159. for i = 0.2 , 1 , 0.2 do
  2160. wait(0)
  2161. RW.C0 = cf(1.5, 0.5, -0.25*i) * angles(math.rad(90),math.rad(0),math.rad(90-150*i))
  2162. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25*i), 0, 0)
  2163. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(10-10*i),math.rad(0),math.rad(-15+15*i))
  2164. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2165. wt.C0 = angles(0, math.rad(-90+90*i), 0)
  2166. end
  2167. LWRem()
  2168. w7.Part1 = Torso
  2169. w8.Part1 = Torso
  2170. w9.Part1 = Torso
  2171. wld16.Part1 = Torso
  2172. RW.Part0 = Torso
  2173. LW.Part0 = Torso
  2174. Torso.Transparency = 0
  2175. RHL.Part0 = Torso
  2176. LHL.Part0 = Torso
  2177. t.Parent = nil
  2178. Character.Humanoid.WalkSpeed = 14
  2179. wait(0.25)
  2180. attack = false
  2181. end
  2182.  
  2183. function GunzerkReady(mouse)
  2184. attack = true
  2185. Character.Humanoid.WalkSpeed = 5
  2186. for i = 0.2 , 1 , 0.2 do
  2187. wait(0)
  2188. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(50+30*i),math.rad(20),math.rad(-5+3*i))
  2189. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(0), 0, 0)
  2190. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(50+30*i),math.rad(-20),math.rad(5-3*i))
  2191. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2192. end
  2193. for i = 0.2 , 1 , 0.2 do
  2194. wait(0)
  2195. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(50+30+10*i),math.rad(20),math.rad(-5+3+2*i))
  2196. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(0), 0, 0)
  2197. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(50+30+10*i),math.rad(-20),math.rad(5-3-2*i))
  2198. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2199. end
  2200. wait() wait()
  2201. repeat
  2202. wait()
  2203. if math.random(1,20)==1 then
  2204. Say("Shooting")
  2205. end
  2206. coroutine.resume(coroutine.create(function()
  2207. if firingdebounce1==false then
  2208. firingdebounce1=true
  2209. wait()
  2210. as2(Head,1)
  2211. coroutine.resume(coroutine.create(function()
  2212. for z = 1 ,2 do
  2213. coroutine.resume(coroutine.create(function()
  2214. local meshb1 = it("BlockMesh")
  2215. meshb1.Scale = vt(1,1,1)
  2216. local shellb1 = it("Part")
  2217. meshb1.Parent = shellb1
  2218. shellb1.Anchored = true
  2219. shellb1.formFactor = 3
  2220. shellb1.Size = vt(0.3,0.3,0.3) * (math.random(100,300)/100)
  2221. shellb1.CFrame = cf((prt6.CFrame * cf(0,-prt6.Size.y/2,0)).p) * angles(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  2222. shellb1.Parent = Character
  2223. shellb1.Transparency = 0
  2224. if math.random(1,2) == 1 then
  2225. shellb1.BrickColor = BrickColor.new("Bright red")
  2226. else
  2227. shellb1.BrickColor = BrickColor.new("Bright orange")
  2228. end
  2229. shellb1.CanCollide = false
  2230. local incre = math.random(0,60)/100
  2231. for i = 0 , 1 , 0.1 do
  2232. wait()
  2233. shellb1.CFrame = shellb1.CFrame + Torso.CFrame.lookVector*incre
  2234. shellb1.Transparency = 1*i
  2235. meshb1.Scale = vt(1+1*i,1+1*i,1+1*i)
  2236. end
  2237. shellb1.Parent=nil
  2238. end))
  2239. end
  2240. coroutine.resume(coroutine.create(function()
  2241. shoottrail(mouse)
  2242. end))
  2243. end))
  2244. for i = 0.5 , 1 , 0.5*attackspeed do
  2245. wait(0)
  2246. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90+10*i),math.rad(20),math.rad(0))
  2247. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(0), 0, 0)
  2248. end
  2249. for i = 0.5 , 1 , 0.5*attackspeed do
  2250. wait(0)
  2251. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90+10-10*i),math.rad(20),math.rad(0))
  2252. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(0), 0, 0)
  2253. end
  2254. wait(0.3)
  2255. firingdebounce1=false
  2256. end
  2257. end))
  2258. coroutine.resume(coroutine.create(function()
  2259. if firingdebounce2==false then
  2260. firingdebounce2=true
  2261. poisoncounter=math.random(1,5)
  2262. wait()
  2263. as(Head,1)
  2264. coroutine.resume(coroutine.create(function()
  2265. for z = 1 ,2 do
  2266. coroutine.resume(coroutine.create(function()
  2267. local meshb1 = it("BlockMesh")
  2268. meshb1.Scale = vt(1,1,1)
  2269. local shellb1 = it("Part")
  2270. meshb1.Parent = shellb1
  2271. shellb1.Anchored = true
  2272. shellb1.formFactor = 3
  2273. shellb1.Size = vt(0.3,0.3,0.3) * (math.random(100,300)/100)
  2274. shellb1.CFrame = cf((newprt5.CFrame * cf(0,-newprt5.Size.y/2,0)).p) * angles(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  2275. shellb1.Parent = Character
  2276. shellb1.Transparency = 0
  2277. if math.random(1,2) == 1 then
  2278. shellb1.BrickColor = BrickColor.new("Bright red")
  2279. else
  2280. shellb1.BrickColor = BrickColor.new("Bright orange")
  2281. end
  2282. shellb1.CanCollide = false
  2283. local incre = math.random(0,60)/100
  2284. for i = 0 , 1 , 0.1 do
  2285. wait()
  2286. shellb1.CFrame = shellb1.CFrame + Torso.CFrame.lookVector*incre
  2287. shellb1.Transparency = 1*i
  2288. meshb1.Scale = vt(1+1*i,1+1*i,1+1*i)
  2289. end
  2290. shellb1.Parent=nil
  2291. end))
  2292. end
  2293. coroutine.resume(coroutine.create(function()
  2294. shoottrail2(mouse)
  2295. end))
  2296. end))
  2297. for i = 0.5 , 1 , 0.5*attackspeed do
  2298. wait(0)
  2299. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(90+10*i),math.rad(-20),math.rad(0))
  2300. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2301. end
  2302. for i = 0.5 , 1 , 0.5*attackspeed do
  2303. wait(0)
  2304. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(90+10-10*i),math.rad(-20),math.rad(0))
  2305. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2306. end
  2307. firingdebounce2=false
  2308. end
  2309. end))
  2310. until not keyhold or Ammo <= 0 or GunzerkDuration==0
  2311. for i = 0.2 , 1 , 0.2 do
  2312. wait(0)
  2313. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90-30*i),math.rad(20),math.rad(-3*i))
  2314. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(0), 0, 0)
  2315. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(90-30*i),math.rad(-20),math.rad(3*i))
  2316. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2317. end
  2318. Character.Humanoid.WalkSpeed = 14
  2319. for i = 0.2 , 1 , 0.2 do
  2320. wait(0)
  2321. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90-30-10*i),math.rad(20),math.rad(-3-2*i))
  2322. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(0), 0, 0)
  2323. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(90-30-10*i),math.rad(-20),math.rad(3+2*i))
  2324. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2325. end
  2326. wait(0.25)
  2327. attack = false
  2328. end
  2329.  
  2330.  
  2331.  
  2332.  
  2333.  
  2334. function Reload2()
  2335. attack=true
  2336. LWFunc()
  2337. for i = 0.2 , 1 , 0.3 do
  2338. wait(0)
  2339. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60+20*i))
  2340. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-30*i), 0, 0)
  2341. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(0),math.rad(0),math.rad(0))
  2342. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2343. w2.C0 = euler(math.rad(90+90*i), 0,0) * cf(0, -0.75, 0.25)
  2344. w10.C1 = euler(0, 0, 0) * cf(0, -0.8*i, 0)
  2345. Neck.C0 = neckcf0 * angles(math.rad(-5*i),0,math.rad(-10*i))
  2346. end
  2347. for i = 0.2 , 1 , 0.3 do
  2348. wait(0)
  2349. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60+20+10*i))
  2350. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-30-10*i), 0, 0)
  2351. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(0),math.rad(0),math.rad(0))
  2352. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2353. w2.C0 = euler(math.rad(180), 0,0) * cf(0, -0.75, 0.25)
  2354. Neck.C0 = neckcf0 * angles(math.rad(-5-5*i),0,math.rad(-10))
  2355. end
  2356. for i = 0.2 , 1 , 0.2 do
  2357. wait(0)
  2358. RW.C0 = cf(1.5-0.5*i, 0.5, -0.25-0.25*i) * angles(math.rad(90),math.rad(0),math.rad(-60+20+10-10*i))
  2359. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-30-10+40*i), 0, 0)
  2360. LW.C0 = cf(-1.5+0.5*i, 0.5, -0.5*i) * angles(math.rad(90*i),math.rad(0),math.rad(20*i))
  2361. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2362. w2.C0 = euler(math.rad(180), 0,0) * cf(0, -0.75, 0.25)
  2363. Neck.C0 = neckcf0 * angles(math.rad(-5-5+20*i),0,math.rad(-10+10*i))
  2364. end
  2365. derp1=prt2:Clone()
  2366. derp1.Parent=swordholder
  2367. derp1.Transparency=0
  2368. wldderp=it("Weld")
  2369. wldderp.Parent=derp1
  2370. wldderp.Part0=derp1
  2371. wldderp.Part1=LeftArm
  2372. wldderp.C0=angles(math.rad(100),math.rad(180-20),0)*cf(-0.2,1.2,0)
  2373. prt2.Transparency=1
  2374. for i = 0 , 1 , 0.2 do
  2375. wait(0)
  2376. RW.C0 = cf(1.5-0.5, 0.5, -0.5) * angles(math.rad(90),math.rad(0),math.rad(-60+20))
  2377. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-30-10+40+5*i), 0, 0)
  2378. LW.C0 = cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * angles(math.rad(90+10*i),math.rad(0),math.rad(20-40*i))
  2379. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2380. w2.C0 = euler(math.rad(180), 0,0) * cf(0, -0.75, 0.25)
  2381. wldderp.C0=angles(math.rad(100-10*i),math.rad(180-20+20*i),0)*cf(-0.2+0.2*i,1.2-0.2*i,0)
  2382. Neck.C0 = neckcf0 * angles(math.rad(-5-5+20-10*i),0,math.rad(-10+10+20*i))
  2383. end
  2384. for i = 0 , 1 , 0.2 do
  2385. wait(0)
  2386. RW.C0 = cf(1.5-0.5, 0.5, -0.5) * angles(math.rad(90),math.rad(0),math.rad(-60+20))
  2387. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-30-10+40+5+5*i), 0, 0)
  2388. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(100-120*i),math.rad(0),math.rad(-20+30*i))
  2389. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2390. w2.C0 = euler(math.rad(180), 0,0) * cf(0, -0.75, 0.25)
  2391. wldderp.C0=angles(math.rad(90),math.rad(180),0)*cf(0,1,0)
  2392. Neck.C0 = neckcf0 * angles(math.rad(-5-5+20-10+20*i),0,math.rad(-10+10+20))
  2393. end
  2394. for i = 0 , 1 , 0.2 do
  2395. wait(0)
  2396. RW.C0 = cf(1.5-0.5, 0.5, -0.5) * angles(math.rad(90),math.rad(0),math.rad(-60+20))
  2397. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-30-10+40+5+5-5*i), 0, 0)
  2398. LW.C0 = cf(-1.5+0.5*i, 0.5, -0.5*i) * angles(math.rad(100-120+150*i),math.rad(0),math.rad(-20+30+10*i))
  2399. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2400. w2.C0 = euler(math.rad(180), 0,0) * cf(0, -0.75, 0.25)
  2401. wldderp.C0=angles(math.rad(90+10*i),math.rad(180-20*i),0)*cf(-0.2*i,1+0.2*i,0)
  2402. Neck.C0 = neckcf0 * angles(math.rad(-5-5+20-10+20-30*i),0,math.rad(-10+10+20-20*i))
  2403. end
  2404. for i = 0 , 1 , 0.2 do
  2405. wait(0)
  2406. RW.C0 = cf(1.5-0.5, 0.5, -0.5) * angles(math.rad(90),math.rad(0),math.rad(-60+20))
  2407. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-30-10+40+5+5-5-5*i), 0, 0)
  2408. LW.C0 = cf(-1.5+0.5, 0.5, -0.5) * angles(math.rad(100-120+150-40*i),math.rad(0),math.rad(-20+30+10))
  2409. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2410. w2.C0 = euler(math.rad(180), 0,0) * cf(0, -0.75, 0.25)
  2411. Neck.C0 = neckcf0 * angles(math.rad(-5-5+20-10+20-30+20*i),0,math.rad(0))
  2412. end
  2413. Ammo = MaxAmmo
  2414. derp1.Parent=nil
  2415. prt2.Transparency=0
  2416. for i = 0 , 1 , 0.2 do
  2417. wait(0)
  2418. RW.C0 = cf(1.5-0.5, 0.5, -0.5) * angles(math.rad(90),math.rad(0),math.rad(-60+20))
  2419. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-50*i), 0, 0)
  2420. LW.C0 = cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * angles(math.rad(90-90*i),math.rad(0),math.rad(20-20*i))
  2421. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2422. w2.C0 = euler(math.rad(180-90*i), 0,0) * cf(0, -0.75, 0.25)
  2423. Neck.C0 = neckcf0 * angles(math.rad(-5-5+20-10+20-30+20-30*i),0,math.rad(0))
  2424. end
  2425. for i = 0 , 1 , 0.2 do
  2426. wait(0)
  2427. w10.C1 = euler(0, 0, 0) * cf(0, -0.8+0.8*i, 0)
  2428. RW.C0 = cf(1.5-0.5+0.5*i, 0.5, -0.5) * angles(math.rad(90),math.rad(0),math.rad(-60+20-20*i))
  2429. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-50+50*i), 0, 0)
  2430. Neck.C0 = neckcf0 * angles(math.rad(-5-5+20-10+20-30+20-30+20*i),0,math.rad(0))
  2431. end
  2432. Neck.C0 = neckcf0 * angles(math.rad(0),0,math.rad(0))
  2433. w2.C0 = euler(math.rad(90), 0,0) * cf(0, -0.75, 0.25)
  2434. LWRem()
  2435. attack=false
  2436. end
  2437.  
  2438. function BlasterMode()
  2439. attack=true
  2440. blastcannonmode=true
  2441. prt5.CanCollide=false
  2442. prt6.CanCollide=false
  2443. LWFunc()
  2444. for i=0,1,0.1 do
  2445. wait()
  2446. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90-90*i),math.rad(0),math.rad(-60+60*i))
  2447. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  2448. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(200*i),math.rad(0),math.rad(20*i))
  2449. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2450. Neck.C0 = neckcf0 * angles(math.rad(-20*i),0,math.rad(30*i))
  2451. end
  2452. unequipweld()
  2453. wld16.Part1 = LeftArm
  2454. wld16.C0 = euler(-1.3,0,0) * cf(-0.5,0.2,2)
  2455. wld16.C1 = euler(0,0,-0.3) * cf(0,0,0)
  2456. Character.Humanoid.WalkSpeed=12
  2457. for i=0,1,0.1 do
  2458. wait()
  2459. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90-90+25*i),math.rad(0),math.rad(-60+60+10*i))
  2460. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  2461. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(200-130*i),math.rad(0),math.rad(20-30*i))
  2462. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2463. Neck.C0 = neckcf0 * angles(math.rad(-20+20*i),0,math.rad(30-10*i))
  2464. wld16.C0 = euler(-1.3+2.87*i,0,0) * cf(-0.5+0.5*i,0.2+0.8*i,2-2*i)
  2465. wld16.C1 = euler(0,0,-0.3+0.3*i) * cf(0,0,0)
  2466. end
  2467. for i=0,1,0.1 do
  2468. wait()
  2469. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90-90+25),math.rad(0),math.rad(-60+60+10))
  2470. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  2471. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(200-130-10*i),math.rad(0),math.rad(20-30))
  2472. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2473. Neck.C0 = neckcf0 * angles(0,0,math.rad(30-10-20*i))
  2474. end
  2475. attack=false
  2476. end
  2477.  
  2478. function EndBlasterMode()
  2479. attack=true
  2480. blastcannonmode=false
  2481. for i=0,1,0.1 do
  2482. wait()
  2483. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90-90+25-25*i),math.rad(0),math.rad(-60+60+10-10*i))
  2484. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  2485. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(200-140+140*i),math.rad(0),math.rad(-10+40*i))
  2486. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2487. Neck.C0 = neckcf0 * angles(math.rad(-20*i),0,math.rad(30*i))
  2488. wld16.C0 = euler(1.57-2.87*i,0,0) * cf(-0.5*i,1-0.8*i,2*i)
  2489. wld16.C1 = euler(0,0,-0.3*i) * cf(0,0,0)
  2490. end
  2491. equipweld()
  2492. wld16.Part1 = Torso
  2493. wld16.C0 = euler(math.rad(90),0,0) * cf(0.6,-0.5,-2.2)
  2494. wld16.C1 = euler(0,0,0) * cf(0,0,0)
  2495. Character.Humanoid.WalkSpeed=14
  2496. for i=0,1,0.1 do
  2497. wait()
  2498. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90-90+90*i),math.rad(0),math.rad(-60*i))
  2499. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  2500. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(200-200*i),math.rad(0),math.rad(30-30*i))
  2501. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2502. Neck.C0 = neckcf0 * angles(math.rad(-20+20*i),0,math.rad(30-30*i))
  2503. end
  2504. LWRem()
  2505. prt5.CanCollide=true
  2506. prt6.CanCollide=true
  2507. attack=false
  2508. end
  2509.  
  2510. function CannonShoot(mouse)
  2511. attack = true
  2512. readyblast=true
  2513. Character.Humanoid.WalkSpeed = 0.01
  2514. offset=(Torso.Position.y-mouse.Hit.p.y)/60
  2515. mag=(Torso.Position-mouse.Hit.p).magnitude/80
  2516. offset=offset/mag
  2517. for i = 0 , 1 , 0.1 do
  2518. wait(0)
  2519. RW.C0 = cf(1.5-1.4*i, 0.5, -0.25-0.45*i) * angles(math.rad(25+115*i),math.rad(0),math.rad(10-80*i))
  2520. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-25*i), math.rad(20*i), 0)
  2521. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(60+30*i),math.rad(0),math.rad(-10+10*i))
  2522. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2523. end
  2524. coroutine.resume(coroutine.create(function()
  2525. while readyblast==true do
  2526. wait()
  2527. offset=(Torso.Position.y-mouse.Hit.p.y)/60
  2528. mag=(Torso.Position-mouse.Hit.p).magnitude/80
  2529. offset=offset/mag
  2530. Torso.Neck.C1=necko2*euler(-offset,0,0)
  2531. RW.C0 = cf(0.1, 0.5, -0.7) * angles(math.rad(140),math.rad(0),math.rad(-70))
  2532. RW.C1 = cf(0, 0.5, 0) * angles(offset, math.rad(20), 0)
  2533. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(0))
  2534. LW.C1 = cf(0, 0.5, 0) * angles(offset, 0, 0)
  2535. end
  2536. end))
  2537. clone=prt31:Clone()
  2538. clone.Parent=prt31
  2539. prt31.Transparency=1
  2540. clonewld=Instance.new("Weld")
  2541. clonewld.Parent=clone
  2542. clonewld.Part0=clone
  2543. clonewld.Part1=prt31
  2544. clone2=prt30:Clone()
  2545. clone2.Parent=prt30
  2546. prt30.Transparency=1
  2547. clonewld2=Instance.new("Weld")
  2548. clonewld2.Parent=clone2
  2549. clonewld2.Part0=clone2
  2550. clonewld2.Part1=prt30
  2551. for i=0,1,0.1 do
  2552. wait(0.1)
  2553. clonewld2.C0 = euler(0,0,0) * cf(0,0.5*i,0)
  2554. end
  2555. for i=0,1,0.1 do
  2556. wait(0)
  2557. clonewld.C0 = euler(0,0,0) * cf(0,-0.7*i,0)
  2558. end
  2559. coroutine.resume(coroutine.create(function()
  2560. for z = 1 ,4 do
  2561. coroutine.resume(coroutine.create(function()
  2562. local meshb1 = it("BlockMesh")
  2563. meshb1.Scale = vt(1,1,1)
  2564. local shellb1 = it("Part")
  2565. meshb1.Parent = shellb1
  2566. shellb1.Anchored = true
  2567. shellb1.formFactor = 3
  2568. shellb1.Size = vt(0.3,0.3,0.3) * (math.random(100,300)/100)
  2569. shellb1.CFrame = cf((prt24.CFrame * cf(0,prt24.Size.y/2,0)).p) * angles(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  2570. shellb1.Parent = Character
  2571. shellb1.Transparency = 0
  2572. if math.random(1,2) == 1 then
  2573. shellb1.BrickColor = BrickColor.new("Bright red")
  2574. else
  2575. shellb1.BrickColor = BrickColor.new("Bright orange")
  2576. end
  2577. shellb1.CanCollide = false
  2578. local incre = math.random(0,60)/100
  2579. for i = 0 , 1 , 0.1 do
  2580. wait()
  2581. shellb1.CFrame = shellb1.CFrame + Torso.CFrame.lookVector*incre
  2582. shellb1.Transparency = 1*i
  2583. meshb1.Scale = vt(1+1*i,1+1*i,1+1*i)
  2584. end
  2585. shellb1.Parent=nil
  2586. end))
  2587. end
  2588. end))
  2589. readyblast=false
  2590. fs(Head,0.2)
  2591. as(Head,0.4)
  2592. coroutine.resume(coroutine.create(function()
  2593. shoottrail3(mouse)
  2594. end))
  2595. for i=0,1,0.2 do
  2596. wait()
  2597. clonewld2.C0 = euler(0,0,0) * cf(0,0.5-0.25*i,0)
  2598. clonewld.C0 = euler(0,0,0) * cf(0,-0.7+0.35*i,0)
  2599. Torso.Neck.C1=necko2*euler(-offset,0,0)
  2600. RW.C0 = cf(0.1, 0.5, -0.7) * angles(math.rad(140+20*i),math.rad(0),math.rad(-70))
  2601. RW.C1 = cf(0, 0.5, 0) * angles(offset, math.rad(20), 0)
  2602. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(90+20*i),math.rad(0),math.rad(0))
  2603. LW.C1 = cf(0, 0.5, 0) * angles(offset, 0, 0)
  2604. end
  2605. for i=0,1,0.2 do
  2606. wait()
  2607. clonewld2.C0 = euler(0,0,0) * cf(0,0.5-0.25-0.25*i,0)
  2608. clonewld.C0 = euler(0,0,0) * cf(0,-0.7+0.35+0.35*i,0)
  2609. Torso.Neck.C1=necko2*euler(-offset,0,0)
  2610. RW.C0 = cf(0.1, 0.5, -0.7) * angles(math.rad(140+20+10*i),math.rad(0),math.rad(-70))
  2611. RW.C1 = cf(0, 0.5, 0) * angles(offset, math.rad(20), 0)
  2612. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(90+20+10*i),math.rad(0),math.rad(0))
  2613. LW.C1 = cf(0, 0.5, 0) * angles(offset, 0, 0)
  2614. end
  2615. wait(0.1)
  2616. for i=0,1,0.05 do
  2617. wait()
  2618. Torso.Neck.C1=necko2*euler(-offset+offset*i,0,0)
  2619. RW.C0 = cf(0.1+1.4*i, 0.5, -0.7+0.45*i) * angles(math.rad(170-170*i),math.rad(0),math.rad(-70+80*i))
  2620. RW.C1 = cf(0, 0.5, 0) * angles(offset+(-offset+math.rad(25))*i, math.rad(20-20*i), 0)
  2621. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(120-60*i),math.rad(0),math.rad(-10*i))
  2622. LW.C1 = cf(0, 0.5, 0) * angles(offset-offset*i, 0, 0)
  2623. end
  2624. --[[local wt,t = faketors()
  2625. w7.Part1 = t
  2626. w8.Part1 = t
  2627. w9.Part1 = t
  2628. w1.Part1 = t
  2629. for i = 0 , 1 , 0.05 do
  2630. wait(0)
  2631. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(60+30*i),math.rad(0),math.rad(-10-30*i))
  2632. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2633. wt.C0 = angles(0, math.rad(40*i), 0)
  2634. end
  2635. --wait(1)
  2636. clone=prt20:Clone()
  2637. clone.Parent=prt20
  2638. prt20.Transparency=1
  2639. clonewld=Instance.new("Weld")
  2640. clonewld.Parent=clone
  2641. clonewld.Part0=clone
  2642. clonewld.Part1=prt20
  2643. for i=0,1,0.1 do
  2644. wait(0.1)
  2645. clonewld.C0 = euler(0,math.rad(90*i),0) * cf(0,-0.2*i,0.2*i)
  2646. end
  2647. wait() wait()
  2648. repeat
  2649. as(Head,0.5+math.random())
  2650. coroutine.resume(coroutine.create(function()
  2651. for z = 1 ,2 do
  2652. coroutine.resume(coroutine.create(function()
  2653. local meshb1 = it("BlockMesh")
  2654. meshb1.Scale = vt(1,1,1)
  2655. local shellb1 = it("Part")
  2656. meshb1.Parent = shellb1
  2657. shellb1.Anchored = true
  2658. shellb1.formFactor = 3
  2659. shellb1.Size = vt(0.3,0.3,0.3) * (math.random(100,300)/100)
  2660. shellb1.CFrame = cf((prt26.CFrame * cf(0,prt26.Size.y/2,0)).p) * angles(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  2661. shellb1.Parent = Character
  2662. shellb1.Transparency = 0
  2663. if math.random(1,2) == 1 then
  2664. shellb1.BrickColor = BrickColor.new("Bright red")
  2665. else
  2666. shellb1.BrickColor = BrickColor.new("Bright orange")
  2667. end
  2668. shellb1.CanCollide = false
  2669. local incre = math.random(0,60)/100
  2670. for i = 0 , 1 , 0.1 do
  2671. wait()
  2672. shellb1.CFrame = shellb1.CFrame + Torso.CFrame.lookVector*incre
  2673. shellb1.Transparency = 1*i
  2674. meshb1.Scale = vt(1+1*i,1+1*i,1+1*i)
  2675. end
  2676. shellb1.Parent=nil
  2677. end))
  2678. end
  2679. coroutine.resume(coroutine.create(function()
  2680. shoottrail2(mouse)
  2681. end))
  2682. end))
  2683. wait(0.2)
  2684. until not keyhold
  2685. for i = 0 , 1 , 0.05 do
  2686. wait(0)
  2687. clonewld.C0 = euler(0,math.rad(90-90*i),0) * cf(0,-0.2+0.2*i,0.2-0.2*i)
  2688. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(60+30-30*i),math.rad(0),math.rad(-10-30+30*i))
  2689. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2690. wt.C0 = angles(0, math.rad(40-40*i), 0)
  2691. end
  2692. clone.Parent=nil
  2693. prt20.Transparency=0
  2694. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(0),math.rad(0),math.rad(10))
  2695. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  2696. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(60),math.rad(0),math.rad(-10))
  2697. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2698. wt.C0 = angles(0, math.rad(0), 0)
  2699. w7.Part1 = Torso
  2700. w8.Part1 = Torso
  2701. w9.Part1 = Torso
  2702. w1.Part1 = Torso
  2703. RW.Part0 = Torso
  2704. LW.Part0 = Torso
  2705. Torso.Transparency = 0
  2706. RHL.Part0 = Torso
  2707. LHL.Part0 = Torso
  2708. t.Parent = nil
  2709. wait(0.25) ]]
  2710. Torso.Neck.C1=necko2
  2711. clone.Parent=nil
  2712. prt31.Transparency=0
  2713. clone2.Parent=nil
  2714. prt30.Transparency=0
  2715. Character.Humanoid.WalkSpeed = 12
  2716. attack = false
  2717. wait(0.2)
  2718. Torso.Neck.C1=necko2
  2719. end
  2720.  
  2721. function BlasterShoot(mouse)
  2722. attack = true
  2723. local wt,t = faketors()
  2724. w7.Part1 = t
  2725. w8.Part1 = t
  2726. w9.Part1 = t
  2727. w1.Part1 = t
  2728. Character.Humanoid.WalkSpeed = 0.01
  2729. for i = 0 , 1 , 0.05 do
  2730. wait(0)
  2731. RW.C0 = cf(1.5-1.5*i, 0.5, -0.25-0.45*i) * angles(math.rad(25+115*i),math.rad(0),math.rad(10-80*i))
  2732. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-25*i), math.rad(20*i), 0)
  2733. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(60+30*i),math.rad(0),math.rad(-10-30*i))
  2734. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2735. wt.C0 = angles(0, math.rad(40*i), 0)
  2736. end
  2737. --wait(1)
  2738. clone=prt20:Clone()
  2739. clone.Parent=prt20
  2740. prt20.Transparency=1
  2741. clonewld=Instance.new("Weld")
  2742. clonewld.Parent=clone
  2743. clonewld.Part0=clone
  2744. clonewld.Part1=prt20
  2745. for i=0,1,0.1 do
  2746. wait(0.1)
  2747. clonewld.C0 = euler(0,math.rad(90*i*i),0) * cf(0,-0.2*i,0.2*i)
  2748. end
  2749. --[[RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(90))
  2750. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(0), 0, 0)
  2751. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(10),math.rad(0),math.rad(-15))
  2752. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2753. wt.C0 = angles(0, math.rad(-90), 0) ]]
  2754. minigunspin=false
  2755. doingminigun=true
  2756. repeat
  2757. coroutine.resume(coroutine.create(function()
  2758. if minigunspin==false and doingminigun==true then
  2759. minigunspin=true
  2760. for i=0,1,0.02 do
  2761. if doingminigun==true then
  2762. wait()
  2763. clonewld.C0 = euler(0,math.rad(90+360*i),0) * cf(0,-0.2,0.2)
  2764. end
  2765. end
  2766. minigunspin=false
  2767. end
  2768. end))
  2769. as(Head,0.5+math.random())
  2770. coroutine.resume(coroutine.create(function()
  2771. for z = 1 ,2 do
  2772. coroutine.resume(coroutine.create(function()
  2773. local meshb1 = it("BlockMesh")
  2774. meshb1.Scale = vt(1,1,1)
  2775. local shellb1 = it("Part")
  2776. meshb1.Parent = shellb1
  2777. shellb1.Anchored = true
  2778. shellb1.formFactor = 3
  2779. shellb1.Size = vt(0.3,0.3,0.3) * (math.random(100,300)/100)
  2780. shellb1.CFrame = cf((prt26.CFrame * cf(0,prt26.Size.y/2,0)).p) * angles(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  2781. shellb1.Parent = Character
  2782. shellb1.Transparency = 0
  2783. if math.random(1,2) == 1 then
  2784. shellb1.BrickColor = BrickColor.new("Bright red")
  2785. else
  2786. shellb1.BrickColor = BrickColor.new("Bright orange")
  2787. end
  2788. shellb1.CanCollide = false
  2789. local incre = math.random(0,60)/100
  2790. for i = 0 , 1 , 0.1 do
  2791. wait()
  2792. shellb1.CFrame = shellb1.CFrame + Torso.CFrame.lookVector*incre
  2793. shellb1.Transparency = 1*i
  2794. meshb1.Scale = vt(1+1*i,1+1*i,1+1*i)
  2795. end
  2796. shellb1.Parent=nil
  2797. end))
  2798. end
  2799. coroutine.resume(coroutine.create(function()
  2800. shoottrail2(mouse)
  2801. end))
  2802. end))
  2803. --[[for i = 0.5 , 1 , 0.5*attackspeed do
  2804. wait(0)
  2805. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(90))
  2806. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(-20*i), 0, 0)
  2807. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(10),math.rad(0),math.rad(-15))
  2808. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2809. --wt.C0 = angles(0, math.rad(-90), 0)
  2810. end
  2811. for i = 0.5 , 1 , 0.5*attackspeed do
  2812. wait(0)
  2813. w2.C0 = euler(math.rad(90), 0,1.04667*i) * cf(0, -0.75, 0.25)
  2814. w4.C1 = euler(0, -1.04667*i, 0) * cf(0, 0, 0.14)
  2815. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(90))
  2816. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(-20+20*i), 0, 0)
  2817. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(10),math.rad(0),math.rad(-15))
  2818. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2819. --wt.C0 = angles(0, math.rad(-90), 0)
  2820. end
  2821. w2.C0 = euler(math.rad(90), 0,0) * cf(0, -0.75, 0.25)
  2822. w4.C1 = euler(0, 0, 0) * cf(0, 0, 0.14)]]
  2823. wait(0.2)
  2824. until not keyhold
  2825. doingminigun=false
  2826. --[[for i = 0.2 , 1 , 0.2 do
  2827. wait(0)
  2828. RW.C0 = cf(1.5, 0.5, -0.25*i) * angles(math.rad(90),math.rad(0),math.rad(90-150*i))
  2829. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25*i), 0, 0)
  2830. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(10-10*i),math.rad(0),math.rad(-15+15*i))
  2831. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2832. wt.C0 = angles(0, math.rad(-90+90*i), 0)
  2833. end
  2834. LWRem() ]]
  2835. for i = 0 , 1 , 0.05 do
  2836. wait(0)
  2837. clonewld.C0 = euler(0,math.rad(90+90*i),0) * cf(0,-0.2+0.2*i,0.2-0.2*i)
  2838. RW.C0 = cf(1.5-1.5+1.5*i, 0.5, -0.25-0.45+0.45*i) * angles(math.rad(25+115-115*i),math.rad(0),math.rad(10-80+80*i))
  2839. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25*i), math.rad(20-20*i), 0)
  2840. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(60+30-30*i),math.rad(0),math.rad(-10-30+30*i))
  2841. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2842. wt.C0 = angles(0, math.rad(40-40*i), 0)
  2843. end
  2844. clone.Parent=nil
  2845. prt20.Transparency=0
  2846. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(25),math.rad(0),math.rad(10))
  2847. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  2848. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(60),math.rad(0),math.rad(-10))
  2849. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2850. wt.C0 = angles(0, math.rad(0), 0)
  2851. w7.Part1 = Torso
  2852. w8.Part1 = Torso
  2853. w9.Part1 = Torso
  2854. w1.Part1 = Torso
  2855. RW.Part0 = Torso
  2856. LW.Part0 = Torso
  2857. Torso.Transparency = 0
  2858. RHL.Part0 = Torso
  2859. LHL.Part0 = Torso
  2860. t.Parent = nil
  2861. Character.Humanoid.WalkSpeed = 12
  2862. wait(0.25)
  2863. attack = false
  2864. end
  2865.  
  2866. function Gunzerker()
  2867. LWFunc()
  2868. attack=true
  2869. Gunzerkering=true
  2870. for i = 0.1 , 1 , 0.1 do
  2871. wait()
  2872. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(-60+60*i))
  2873. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  2874. LW.C0 = cf(-1.5, 0.5, -0.5+0.5*i) * angles(math.rad(40-60*i),math.rad(0),math.rad(25-25*i))
  2875. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2876. Neck.C0 = neckcf0 * angles(math.rad(5*i),0,0)
  2877. end
  2878. newgun.Parent=workspace
  2879. newprt3.BrickColor=BrickColor.new("White")
  2880. neww1.Parent=newprt1
  2881. neww2.Parent=newprt2
  2882. neww3.Parent=newprt3
  2883. neww4.Parent=newprt4
  2884. neww5.Parent=newprt5
  2885. neww6.Parent=newprt6
  2886. neww1.Part0 = newprt1
  2887. neww1.Part1 = LeftArm
  2888. neww1.C1 = euler(0, 0, 0) * cf(0, 0,0)
  2889. neww1.C0 = angles(math.rad(-90), math.rad(0), math.rad(0)) * cf(0, 1, 0)
  2890. Say("Gunzerking")
  2891. for i = 0.1 , 1 , 0.15 do
  2892. wait()
  2893. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90+10*i),math.rad(0),math.rad(0))
  2894. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-25*i), 0, 0)
  2895. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(40-60+120*i),math.rad(0),math.rad(0))
  2896. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2897. Neck.C0 = neckcf0 * angles(math.rad(5-10*i),0,0)
  2898. end
  2899. for i = 0.1 , 1 , 0.2 do
  2900. wait()
  2901. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90+10+10*i),math.rad(0),math.rad(0))
  2902. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(0), 0, 0)
  2903. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(40-60+120+10*i),math.rad(0),math.rad(0))
  2904. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2905. Neck.C0 = neckcf0 * angles(math.rad(5-10-5*i),0,0)
  2906. end
  2907. for i = 0.1 , 1 , 0.15 do
  2908. wait()
  2909. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(110-60*i),math.rad(20*i),math.rad(-5*i))
  2910. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(0), 0, 0)
  2911. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(110-60*i),math.rad(-20*i),math.rad(5*i))
  2912. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2913. Neck.C0 = neckcf0 * angles(math.rad(5-10-5+10*i),0,0)
  2914. end
  2915. attack=false
  2916. end
  2917.  
  2918. function ChangeAmmoAnim(ammo,trail,derpcol)
  2919. for i = 0.1 , 1 , 0.1 do
  2920. wait()
  2921. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(-60+10*i))
  2922. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-10*i), 0, 0)
  2923. LW.C0 = cf(-1.5, 0.5, -0.5) * angles(math.rad(40+60*i),math.rad(0),math.rad(25))
  2924. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2925. w3.C0 = angles(math.rad(90), 0, 0) * cf(0, 0.25,-0.5)
  2926. Neck.C0 = neckcf0 * angles(math.rad(-5*i),0,0)
  2927. end
  2928. for i = 0.1 , 1 , 0.15 do
  2929. wait()
  2930. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(-60+10))
  2931. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-10+5*i), 0, 0)
  2932. LW.C0 = cf(-1.5+0.5*i, 0.5, -0.5) * angles(math.rad(40+60-50*i),math.rad(0),math.rad(25+20*i))
  2933. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2934. w3.C0 = angles(math.rad(90+90*i), 0, 0) * cf(0, 0.25,-0.5)
  2935. Neck.C0 = neckcf0 * angles(math.rad(-5+20*i),0,0)
  2936. end
  2937. for i = 0.1 , 1 , 0.1 do
  2938. wait()
  2939. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(-60+10))
  2940. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-10+5+5*i), 0, 0)
  2941. LW.C0 = cf(-1.5+0.5, 0.5, -0.5) * angles(math.rad(40+60-50+50*i),math.rad(0),math.rad(25+20))
  2942. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2943. w3.C0 = angles(math.rad(180), 0, 0) * cf(0, 0.25,-0.5)
  2944. Neck.C0 = neckcf0 * angles(math.rad(-5+20-10*i),0,0)
  2945. end
  2946. derpd=prt3:Clone()
  2947. derpd.Parent=swordholder
  2948. derpd.Transparency=0
  2949. derpdw=it("Weld")
  2950. derpdw.Parent=swordholder
  2951. derpdw.Part0=derpd
  2952. derpdw.Part1=LeftArm
  2953. derpdw.C0=angles(math.rad(90),math.rad(-30),0)*cf(-0.4,0.8,0)
  2954. prt3.Transparency=1
  2955. wait(0.1)
  2956. for i = 0.1 , 1 , 0.1 do
  2957. wait()
  2958. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(-60+10))
  2959. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-10+5+5+5*i), 0, 0)
  2960. LW.C0 = cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * angles(math.rad(40+60-50+50+10*i),math.rad(0),math.rad(25+20-30*i))
  2961. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2962. w3.C0 = angles(math.rad(180), 0, 0) * cf(0, 0.25,-0.5)
  2963. Neck.C0 = neckcf0 * angles(math.rad(-5+20-10-5*i),0,0)
  2964. derpdw.C0=angles(math.rad(90),math.rad(-30+30*i),0)*cf(-0.4+0.4*i,0.8+0.2*i,0)
  2965. end
  2966. for i = 0.1 , 1 , 0.2 do
  2967. wait()
  2968. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(-60+10))
  2969. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-10+5+5+5), 0, 0)
  2970. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(40+60-50+50+10-140*i),math.rad(0),math.rad(25+20-30))
  2971. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2972. w3.C0 = angles(math.rad(180), 0, 0) * cf(0, 0.25,-0.5)
  2973. Neck.C0 = neckcf0 * angles(math.rad(-5+20-10-5+30*i),0,math.rad(20*i))
  2974. derpdw.C0=angles(math.rad(90),math.rad(0),0)*cf(0,1,0)
  2975. end
  2976. CurrentAmmo = ammo
  2977. ammotrail = BrickColor.new(trail)
  2978. derpd.BrickColor=BrickColor.new(derpcol)
  2979. prt3.BrickColor=BrickColor.new(derpcol)
  2980. for i = 0.1 , 1 , 0.1 do
  2981. wait()
  2982. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(-60+10))
  2983. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-10+5+5+5), 0, 0)
  2984. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(40+60-50+50+10-140+140*i),math.rad(0),math.rad(25+20-30+30*i))
  2985. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2986. w3.C0 = angles(math.rad(180), 0, 0) * cf(0, 0.25,-0.5)
  2987. Neck.C0 = neckcf0 * angles(math.rad(-5+20-10-5+30-30*i),0,math.rad(20-20*i))
  2988. derpdw.C0=angles(math.rad(90),math.rad(0),0)*cf(0,1,0)
  2989. end
  2990. for i = 0.1 , 1 , 0.1 do
  2991. wait()
  2992. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(-60+10))
  2993. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-10+5+5+5-5*i), 0, 0)
  2994. LW.C0 = cf(-1.5+0.5*i, 0.5, -0.5*i) * angles(math.rad(40+60-50+50+10-10*i),math.rad(0),math.rad(25+20))
  2995. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  2996. w3.C0 = angles(math.rad(180), 0, 0) * cf(0, 0.25,-0.5)
  2997. Neck.C0 = neckcf0 * angles(math.rad(-5+20-10-5+5*i),0,0)
  2998. derpdw.C0=angles(math.rad(90),math.rad(-30*i),0)*cf(-0.4*i,1-0.2*i,0)
  2999. end
  3000. prt3.Transparency=0
  3001. derpd.Parent=nil
  3002. for i = 0.1 , 1 , 0.1 do
  3003. wait()
  3004. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(-60+10))
  3005. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-10+5+5+5-5-5*i), 0, 0)
  3006. LW.C0 = cf(-1.5+0.5, 0.5, -0.5) * angles(math.rad(40+60-50+50-60*i),math.rad(0),math.rad(25+20))
  3007. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3008. w3.C0 = angles(math.rad(180), 0, 0) * cf(0, 0.25,-0.5)
  3009. Neck.C0 = neckcf0 * angles(math.rad(-5+20-10+10*i),0,0)
  3010. end
  3011. for i = 0.1 , 1 , 0.15 do
  3012. wait()
  3013. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(-60+10))
  3014. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-10+5+5+5-5-5-5*i), 0, 0)
  3015. LW.C0 = cf(-1.5+0.5-0.5*i, 0.5, -0.5) * angles(math.rad(40+60*i),math.rad(0),math.rad(25+20-20*i))
  3016. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3017. w3.C0 = angles(math.rad(180-90*i), 0, 0) * cf(0, 0.25,-0.5)
  3018. Neck.C0 = neckcf0 * angles(math.rad(-5+20-20*i),0,0)
  3019. end
  3020. for i = 0.1 , 1 , 0.1 do
  3021. wait()
  3022. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(-60+10-10*i))
  3023. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-10+10*i), 0, 0)
  3024. LW.C0 = cf(-1.5, 0.5, -0.5) * angles(math.rad(40+60-60*i),math.rad(0),math.rad(25))
  3025. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3026. w3.C0 = angles(math.rad(90), 0, 0) * cf(0, 0.25,-0.5)
  3027. Neck.C0 = neckcf0 * angles(math.rad(-5+5*i),0,0)
  3028. end
  3029. end
  3030.  
  3031. function DodgeBack()
  3032. attack=true
  3033. dodging=true
  3034. LWFunc()
  3035. vel = it("BodyVelocity")
  3036. vel.Parent = Head
  3037. vel.maxForce = vt(4e+005,4e+005,4e+005)*1
  3038. vel.velocity = Head.CFrame.lookVector * -60
  3039. vel2 = it("BodyGyro")
  3040. vel2.Parent = Head
  3041. vel2.maxTorque = vt(4e+005,4e+005,4e+005)*math.huge
  3042. vel2.P = 50e+003
  3043. vel2.cframe=Torso.CFrame
  3044. neckcf0=Neck.C0
  3045. for i = 0.1 , 1 , 0.2 do
  3046. wait()
  3047. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60+150*i))
  3048. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  3049. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(0),math.rad(-20*i),math.rad(-90*i))
  3050. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3051. Neck.C0 = neckcf0 * angles(0,0,math.rad(70*i))
  3052. end
  3053. wait(0.2)
  3054. dodging=false
  3055. vel.Parent=nil
  3056. for i = 0.1 , 1 , 0.1 do
  3057. wait()
  3058. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60+150-150*i))
  3059. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  3060. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(0),math.rad(-20+20*i),math.rad(-90+90*i))
  3061. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3062. Neck.C0 = neckcf0 * angles(0,0,math.rad(70-70*i))
  3063. end
  3064. LWRem()
  3065. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60))
  3066. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  3067. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(0),math.rad(0),math.rad(0))
  3068. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3069. Neck.C0 = neckcf0 * angles(0,0,math.rad(0))
  3070. vel2.Parent=nil
  3071. attack=false
  3072. end
  3073.  
  3074. function DodgeForward()
  3075. attack=true
  3076. dodging=true
  3077. LWFunc()
  3078. vel=it("BodyVelocity")
  3079. vel.Parent=Head
  3080. vel.maxForce=vt(4e+005,4e+005,4e+005)*1
  3081. vel.velocity=Head.CFrame.lookVector * 60
  3082. vel2=it("BodyGyro")
  3083. vel2.Parent=Head
  3084. vel2.maxTorque=vt(4e+005,4e+005,4e+005)*math.huge
  3085. vel2.P=50e+003
  3086. vel2.cframe=Torso.CFrame
  3087. neckcf0=Neck.C0
  3088. for i = 0.1 , 1 , 0.2 do
  3089. wait()
  3090. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90-120*i),math.rad(0),math.rad(-60+60*i))
  3091. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(-30*i),math.rad(0),math.rad(0))
  3092. Neck.C0 = neckcf0 * angles(0,0,math.rad(0))
  3093. end
  3094. wait(0.2)
  3095. if holdforward==true then
  3096. --vel.velocity = (Head.CFrame.lookVector+vt(0,1,0)) * 50
  3097. vel.velocity = (Head.CFrame.lookVector*90)+(vt(0,1,0)*50)
  3098. CF=Torso.CFrame
  3099. --RWLFunc()
  3100. --LWLFunc()
  3101. for i=0,1,0.1 do
  3102. wait()
  3103. vel2.cframe=CF*euler(math.rad(-360*i),0,0)
  3104. RWL.C0 = cf(1, -1, -1*i)*euler(-1.57*i,0,0)
  3105. LWL.C0 = cf(-1, -1+1*i, -1*i)*euler(0,0,0)
  3106. end
  3107. vel2.cframe=CF
  3108. vel.Parent=nil
  3109. for i=0,1,0.1 do
  3110. wait()
  3111. vel2.cframe=CF*euler(0,math.rad(180*i),0)
  3112. RWL.C0 = cf(1, -1, -1+1*i)*euler(-1.57+1.57*i,0,0)
  3113. LWL.C0 = cf(-1, -1+1-1*i, -1+1*i)*euler(0,0,0)
  3114. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90-120),math.rad(0),math.rad(90*i))
  3115. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(-30),math.rad(0),math.rad(-90*i))
  3116. end
  3117. RWL.C0 = cf(1, -1, 0) * angles(0, 0, 0)
  3118. RWL.C1 = cf(0.5, 1, 0)
  3119. RWLRem()
  3120. LWLRem()
  3121. vel2.Parent=nil
  3122. for i=0,1,0.1 do
  3123. wait()
  3124. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90-120+120*i),math.rad(0),math.rad(90-150*i))
  3125. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(-30+30*i),math.rad(0),math.rad(-90+90*i))
  3126. end
  3127. dodging=false
  3128. LWRem()
  3129. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60))
  3130. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  3131. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(0),math.rad(0),math.rad(0))
  3132. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3133. Neck.C0 = neckcf0 * angles(0,0,math.rad(0))
  3134. else
  3135. dodging=false
  3136. vel.Parent=nil
  3137. vel2.Parent=nil
  3138. for i = 0.1 , 1 , 0.2 do
  3139. wait()
  3140. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90-120+120*i),math.rad(0),math.rad(-60+60-60*i))
  3141. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(-30+30*i),math.rad(0),math.rad(0))
  3142. Neck.C0 = neckcf0 * angles(0,0,math.rad(0))
  3143. end
  3144. LWRem()
  3145. end
  3146. attack=false
  3147. end
  3148.  
  3149. function DodgeLeft()
  3150. attack=true
  3151. dodging=true
  3152. LWFunc()
  3153. CF=Head.CFrame*euler(0,1.57,0)
  3154. vel = it("BodyVelocity")
  3155. vel.Parent = Torso
  3156. vel.maxForce = vt(4e+005,4e+005,4e+005)*1
  3157. vel.velocity = CF.lookVector * 70
  3158. vel2 = it("BodyGyro")
  3159. vel2.Parent = Head
  3160. vel2.maxTorque = vt(4e+005,4e+005,4e+005)*math.huge
  3161. vel2.P = 50e+003
  3162. vel2.cframe=Torso.CFrame
  3163. CF2=Torso.CFrame
  3164. for i=0,1,0.1 do
  3165. wait()
  3166. CF=Torso.CFrame*euler(0,1.57,0)
  3167. vel.velocity = CF.lookVector * 60
  3168. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60+150*i))
  3169. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-25*i), 0, 0)
  3170. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(0),math.rad(0),math.rad(-90*i))
  3171. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3172. vel2.cframe=CF2*euler(0,-1.57*i,0)
  3173. end
  3174. vel.Parent=nil
  3175. for i=0,1,0.2 do
  3176. wait()
  3177. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60+150-150*i))
  3178. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-25+25*i), 0, 0)
  3179. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(0),math.rad(0),math.rad(-90+90*i))
  3180. end
  3181. vel2.Parent=nil
  3182. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60))
  3183. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  3184. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(0),math.rad(0),math.rad(0))
  3185. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3186. Neck.C0 = neckcf0 * angles(0,0,math.rad(0))
  3187. LWRem()
  3188. dodging=false
  3189. attack=false
  3190. end
  3191.  
  3192. function DodgeRight()
  3193. attack=true
  3194. dodging=true
  3195. LWFunc()
  3196. CF=Head.CFrame*euler(0,-1.57,0)
  3197. vel = it("BodyVelocity")
  3198. vel.Parent = Torso
  3199. vel.maxForce = vt(4e+005,4e+005,4e+005)*1
  3200. vel.velocity = CF.lookVector * 70
  3201. vel2 = it("BodyGyro")
  3202. vel2.Parent = Head
  3203. vel2.maxTorque = vt(4e+005,4e+005,4e+005)*math.huge
  3204. vel2.P = 50e+003
  3205. vel2.cframe=Torso.CFrame
  3206. CF2=Torso.CFrame
  3207. for i=0,1,0.1 do
  3208. wait()
  3209. CF=Torso.CFrame*euler(0,-1.57,0)
  3210. vel.velocity = CF.lookVector * 60
  3211. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60+150*i))
  3212. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-25*i), 0, 0)
  3213. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(0),math.rad(0),math.rad(-90*i))
  3214. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3215. vel2.cframe=CF2*euler(0,1.57*i,0)
  3216. end
  3217. vel.Parent=nil
  3218. vel2.Parent=nil
  3219. for i=0,1,0.2 do
  3220. wait()
  3221. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60+150-150*i))
  3222. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25-25+25*i), 0, 0)
  3223. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(0),math.rad(0),math.rad(-90+90*i))
  3224. end
  3225. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60))
  3226. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  3227. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(0),math.rad(0),math.rad(0))
  3228. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3229. Neck.C0 = neckcf0 * angles(0,0,math.rad(0))
  3230. LWRem()
  3231. dodging=false
  3232. attack=false
  3233. end
  3234.  
  3235. function Action1()
  3236. prt5.CanCollide=false
  3237. prt6.CanCollide=false
  3238. attack=true
  3239. LWFunc()
  3240. for i = 0 , 1 , 0.1 do
  3241. wait(0)
  3242. RW.C0 = cf(1.5, 0.5, -0.25+0.25*i) * angles(math.rad(90-60*i),math.rad(0),math.rad(-60+60*i))
  3243. LW.C0 = cf(-1.5+0.5*i, 0.5, 0) * angles(math.rad(130*i),math.rad(0),math.rad(40*i))
  3244. Neck.C0 = neckcf0 * angles(math.rad(20*i),0,math.rad(20*i))
  3245. end
  3246. Say("FacepalmTaunt")
  3247. for i = 0 , 1 , 0.2 do
  3248. wait(0)
  3249. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90-60-10*i),math.rad(0),math.rad(0))
  3250. LW.C0 = cf(-1.5+0.5, 0.5, 0) * angles(math.rad(130),math.rad(0),math.rad(40))
  3251. Neck.C0 = neckcf0 * angles(math.rad(20),0,math.rad(20+10*i))
  3252. end
  3253. for i = 0 , 1 , 0.2 do
  3254. wait(0)
  3255. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90-60-10-10*i),math.rad(0),math.rad(0))
  3256. LW.C0 = cf(-1.5+0.5, 0.5, 0) * angles(math.rad(130),math.rad(0),math.rad(40))
  3257. Neck.C0 = neckcf0 * angles(math.rad(20),0,math.rad(20+10-10*i))
  3258. end
  3259. for i = 0 , 1 , 0.2 do
  3260. wait(0)
  3261. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90-60-10-10+10*i),math.rad(0),math.rad(0))
  3262. LW.C0 = cf(-1.5+0.5, 0.5, 0) * angles(math.rad(130),math.rad(0),math.rad(40))
  3263. Neck.C0 = neckcf0 * angles(math.rad(20),0,math.rad(20+10*i))
  3264. end
  3265. for i = 0 , 1 , 0.2 do
  3266. wait(0)
  3267. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90-60-10-10+10+10*i),math.rad(0),math.rad(0))
  3268. LW.C0 = cf(-1.5+0.5, 0.5, 0) * angles(math.rad(130),math.rad(0),math.rad(40))
  3269. Neck.C0 = neckcf0 * angles(math.rad(20),0,math.rad(20+10-10*i))
  3270. end
  3271. for i = 0 , 1 , 0.1 do
  3272. wait(0)
  3273. RW.C0 = cf(1.5, 0.5, -0.25*i) * angles(math.rad(90-60+60*i),math.rad(0),math.rad(-60*i))
  3274. LW.C0 = cf(-1.5+0.5-0.5*i, 0.5, 0) * angles(math.rad(130-130*i),math.rad(0),math.rad(40-40*i))
  3275. Neck.C0 = neckcf0 * angles(math.rad(20-20*i),0,math.rad(20-20*i))
  3276. end
  3277. LWRem()
  3278. attack=false
  3279. prt5.CanCollide=true
  3280. prt6.CanCollide=true
  3281. end
  3282.  
  3283. function Action2()
  3284. Character.Humanoid.WalkSpeed=0
  3285. attack=true
  3286. LWFunc()
  3287. TorsCF=Torso.CFrame
  3288. for i = 0 , 1 , 0.1 do
  3289. wait(0)
  3290. Torso.CFrame=TorsCF*angles(0,math.rad(-90*i),0)
  3291. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60+150*i))
  3292. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(0),math.rad(0),math.rad(-180*i))
  3293. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, math.rad(0))
  3294. Neck.C0 = neckcf0 * angles(math.rad(0),0,math.rad(90*i))
  3295. end
  3296. for i = 0 , 1 , 0.2 do
  3297. wait(0)
  3298. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60+150))
  3299. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(30*i),math.rad(0),math.rad(-180+100*i))
  3300. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, math.rad(0))
  3301. Neck.C0 = neckcf0 * angles(math.rad(0),0,math.rad(90))
  3302. end
  3303. for i = 0 , 1 , 0.2 do
  3304. wait(0)
  3305. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60+150))
  3306. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(30),math.rad(0),math.rad(-180+100+10*i))
  3307. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, math.rad(0))
  3308. Neck.C0 = neckcf0 * angles(math.rad(0),0,math.rad(90))
  3309. end
  3310. wait(0.5)
  3311. TorsCF=Torso.CFrame
  3312. for i = 0 , 1 , 0.1 do
  3313. wait(0)
  3314. Torso.CFrame=TorsCF*angles(0,math.rad(90*i),0)
  3315. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60+150-150*i))
  3316. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(30-30*i),math.rad(0),math.rad(-70+70*i))
  3317. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, math.rad(0))
  3318. Neck.C0 = neckcf0 * angles(math.rad(0),0,math.rad(90-90*i))
  3319. end
  3320. LWRem()
  3321. attack=false
  3322. Character.Humanoid.WalkSpeed=14
  3323. end
  3324.  
  3325. bodpos=it("BodyPosition")
  3326. bodpos.P=2000
  3327. bodpos.D=100
  3328. bodpos.maxForce=vt(math.huge,math.huge,math.huge)
  3329. bodgy=it("BodyGyro")
  3330. bodgy.maxTorque=vt(4e+005,4e+005,4e+005)*math.huge
  3331. bodgy.P=50e+003
  3332. --[[function Sit()
  3333. bodpos.position=Torso.Position-vt(0,3,0)
  3334. bodpos.Parent=Torso
  3335. bodgy.cframe=Torso.CFrame
  3336. bodgy.Parent=Head
  3337. LWFunc()
  3338. --RWLFunc()
  3339. --LWLFunc()
  3340. for i=0,1,0.1 do
  3341. wait()
  3342. bodgy.cframe=Torso.CFrame*euler(0.07*i,0,0)
  3343. RWL.C0 = cf(0.5+0.1*i,-1.5+0.6*i,-0.7*i) * euler(1.2*i,0,0.5*i)
  3344. RWL.C1 = cf(0,0.5,0) * euler(0,0,0)
  3345. LWL.C0 = cf(-0.5-0.1*i,-1.5+0.6*i,-0.7*i) * euler(1.2*i,0,-0.5*i)
  3346. LWL.C1 = cf(0,0.5,0) * euler(0,0,0)
  3347. RW.C0 = cf(1.5, 0.5, -0.25-0.25*i) * angles(math.rad(90-50*i),math.rad(0),math.rad(-60+10*i))
  3348. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), math.rad(-90*i), 0)
  3349. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(-20*i),math.rad(0),math.rad(0))
  3350. end
  3351. end
  3352.  
  3353. function GetUp()
  3354. for i=0,1,0.1 do
  3355. wait()
  3356. bodgy.cframe=Torso.CFrame*euler(-0.07*i,0,0)
  3357. RWL.C0 = cf(0.5+0.1-0.1*i,-1.5+0.6-0.6*i,-0.7+0.7*i) * euler(1.2-1.2*i,0,0.5-0.5*i)
  3358. LWL.C0 = cf(-0.5-0.1+0.1*i,-1.5+0.6-0.6*i,-0.7+0.7*i) * euler(1.2-1.2*i,0,-0.5+0.5*i)
  3359. RW.C0 = cf(1.5, 0.5, -0.25-0.25+0.25*i) * angles(math.rad(90-50+50*i),math.rad(0),math.rad(-60+10-10*i))
  3360. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), math.rad(-90+90*i), 0)
  3361. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(-20+20*i),math.rad(0),math.rad(0))
  3362. end
  3363. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60))
  3364. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), math.rad(0), 0)
  3365. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(0),math.rad(0),math.rad(0))
  3366. bodpos.Parent=nil
  3367. bodgy.Parent=nil
  3368. LWRem()
  3369. RWLRem()
  3370. LWLRem()
  3371. end]]
  3372.  
  3373. function Hi5()
  3374. prt5.CanCollide=false
  3375. prt6.CanCollide=false
  3376. attack=true
  3377. didhifive=false
  3378. detecthifive=false
  3379. LWFunc()
  3380. bodpos.Parent=Torso
  3381. bodpos.position=Torso.Position
  3382. bodgy.cframe=Torso.CFrame
  3383. bodgy.Parent=Head
  3384. for i=0,1,0.2 do
  3385. wait()
  3386. Neck.C0 = neckcf0 * angles(math.rad(0),0,math.rad(20*i))
  3387. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90-100*i),math.rad(0),math.rad(-60+60*i))
  3388. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  3389. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(150*i),math.rad(-20*i),math.rad(0))
  3390. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3391. end
  3392. coroutine.resume(coroutine.create(function()
  3393. print("herp")
  3394. while hifiving==true do
  3395. wait(0)
  3396. hifivevalue.Value=true
  3397. local hitted,post = rayCast(Torso.Position,Head.CFrame.lookVector,6,Character)
  3398. if hitted~=nil then
  3399. if hitted.Parent:findFirstChild("HighFive")~=nil then
  3400. if hitted.Parent:findFirstChild("HighFive").Value==true then
  3401. wait(0.8)
  3402. print("HI FIVE")
  3403. didhifive=true
  3404. hifiving=false
  3405. for i=0,1,0.1 do
  3406. wait(0.05)
  3407. Neck.C0 = neckcf0 * angles(math.rad(0),0,math.rad(20-30*i))
  3408. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(-10),math.rad(0),math.rad(0))
  3409. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  3410. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(150-170*i),math.rad(-20),math.rad(0))
  3411. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3412. end
  3413. hifivevalue.Value=false
  3414. for i=0,1,0.1 do
  3415. wait()
  3416. Neck.C0 = neckcf0 * angles(math.rad(0),0,math.rad(-10-10*i))
  3417. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(-10),math.rad(0),math.rad(20*i))
  3418. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  3419. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(-20+220*i),math.rad(-20+20*i),math.rad(0))
  3420. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3421. end
  3422. for i=0,1,0.1 do
  3423. wait()
  3424. Neck.C0 = neckcf0 * angles(math.rad(0),0,math.rad(-20+60*i))
  3425. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(-10),math.rad(0),math.rad(20))
  3426. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  3427. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(200-70*i),math.rad(0),math.rad(0))
  3428. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3429. end
  3430. for i=0,1,0.1 do
  3431. wait()
  3432. Neck.C0 = neckcf0 * angles(math.rad(0),0,math.rad(-20+60-30*i))
  3433. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(-10),math.rad(0),math.rad(20))
  3434. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  3435. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(200-70+50*i),math.rad(0),math.rad(0))
  3436. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3437. end
  3438. for i=0,1,0.1 do
  3439. wait()
  3440. Neck.C0 = neckcf0 * angles(math.rad(0),0,math.rad(10-10*i))
  3441. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(-10+100*i),math.rad(0),math.rad(20-80*i))
  3442. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  3443. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(180-180*i),math.rad(0),math.rad(0))
  3444. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3445. end
  3446. bodpos.Parent=nil
  3447. bodgy.Parent=nil
  3448. hifivevalue.Value=false
  3449. LWRem()
  3450. Neck.C0 = neckcf0
  3451. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60))
  3452. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  3453. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(0),math.rad(0),math.rad(0))
  3454. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3455. prt5.CanCollide=true
  3456. prt6.CanCollide=true
  3457. else
  3458. print("No hi five :c")
  3459. end
  3460. end
  3461. else
  3462. print("DERP")
  3463. end
  3464. end
  3465. end))
  3466. while hifiving==true and detecthifive==false do
  3467. wait()
  3468. end
  3469. if didhifive==false then
  3470. for i=0,1,0.2 do
  3471. wait()
  3472. Neck.C0 = neckcf0 * angles(math.rad(0),0,math.rad(20-20*i))
  3473. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90-100+100*i),math.rad(0),math.rad(-60*i))
  3474. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  3475. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(150-150*i),math.rad(-20+20*i),math.rad(0))
  3476. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3477. end
  3478. bodpos.Parent=nil
  3479. bodgy.Parent=nil
  3480. hifivevalue.Value=false
  3481. LWRem()
  3482. Neck.C0 = neckcf0
  3483. RW.C0 = cf(1.5, 0.5, -0.25) * angles(math.rad(90),math.rad(0),math.rad(-60))
  3484. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  3485. LW.C0 = cf(-1.5, 0.5, 0) * angles(math.rad(0),math.rad(0),math.rad(0))
  3486. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3487. prt5.CanCollide=true
  3488. prt6.CanCollide=true
  3489. else
  3490. --wait(2)
  3491. end
  3492. attack=false
  3493. end
  3494.  
  3495. function NormalAmmo()
  3496. attack = true
  3497. ChangeAmmoAnim("Normal","White","White")
  3498. attack = false
  3499. end
  3500.  
  3501.  
  3502. function effect(Color,Ref,LP,P1,returnn)
  3503. local effectsmsh = it("BlockMesh")
  3504. effectsmsh.Scale = vt(1,1,1)
  3505. effectsmsh.Name = "Mesh"
  3506. local effectsg = it("Part")
  3507. effectsg.formFactor = 3
  3508. effectsg.CanCollide = false
  3509. effectsg.Name = "Eff"
  3510. effectsg.Locked = true
  3511. effectsg.Anchored = true
  3512. effectsg.Size = vt(0.2,1,0.2)
  3513. effectsg.Parent = swordholder
  3514. effectsmsh.Parent = effectsg
  3515. effectsg.BrickColor = BrickColor.new(Color)
  3516. effectsg.Reflectance = Ref
  3517. local point1 = P1
  3518. local mg = (LP.p - point1.p).magnitude
  3519. effectsg.Size = vt(0.2,mg,0.2)
  3520. effectsg.CFrame = cf((LP.p+point1.p)/2,point1.p) * angles(math.rad(90),0,0)
  3521. if returnn then return effectsg end
  3522. effectsmsh.Scale = vt(0.2,0.2,0.2)
  3523. coroutine.resume(coroutine.create(function()
  3524. if not returnn then
  3525. for i = 0 , 1 , 0.1 do
  3526. wait()
  3527. effectsg.Transparency = 1*i
  3528. effectsmsh.Scale = vt(0.2-0.2*i,1,0.2-0.2*i)
  3529. end
  3530. wait()
  3531. effectsg.Parent = nil
  3532. end
  3533. end))
  3534. end
  3535.  
  3536.  
  3537. function returnwelds()
  3538. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(-60))
  3539. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  3540. LW.C0 = cf(-1.5, 0.5, -0.5) * angles(math.rad(40),math.rad(0),math.rad(25))
  3541. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3542. w3.C0 = angles(math.rad(90), 0, 0) * cf(0, 0.25,-0.5)
  3543. w1.C0 = angles(math.rad(-90), math.rad(0), math.rad(0)) * cf(0, 0, 0)
  3544. RWL.C0 = cf(1, -1, 0) * angles(0, 0, 0)
  3545. RWL.C1 = cf(0.5, 1, 0)
  3546. LWL.C0 = cf(-1, -1, 0) * angles(0, 0, 0)
  3547. LWL.C1 = cf(-0.5, 1, 0)
  3548. Neck.C0 = neckcf0
  3549. end
  3550.  
  3551. keyhold = false
  3552. function ob1d(mouse)
  3553. hold = true
  3554. if attack then return end
  3555. keyhold = true
  3556. if blastcannonmode==true then
  3557. BlasterShoot(mouse)
  3558. end
  3559. if blastcannonmode==true then return end
  3560. if Gunzerkering==true then
  3561. GunzerkReady(mouse)
  3562. else
  3563. Ready(mouse)
  3564. end
  3565. end
  3566.  
  3567. function ob1u(mouse)
  3568. keyhold = false
  3569. end
  3570.  
  3571. buttonhold = false
  3572.  
  3573. function key(key,mouse)
  3574. if attack then return end
  3575. if key=="h" then
  3576. if blastcannonmode==false then
  3577. BlasterMode()
  3578. else
  3579. EndBlasterMode()
  3580. end
  3581. end
  3582. if key=="q" and blastcannonmode==true then
  3583. CannonShoot(mouse)
  3584. end
  3585. if blastcannonmode==true then return end
  3586. if key=="f" and GunzerkDuration==1000 then
  3587. Gunzerker()
  3588. coroutine.resume(coroutine.create(function()
  3589. local meh = Character
  3590. local rprt1 = it("Part")
  3591. rprt1.Parent = meh
  3592. rprt1.BrickColor = BrickColor.new("Bright red")
  3593. rprt1.CanCollide = false
  3594. rprt1.Name = "RedEye"
  3595. local rmsh1 = it("CylinderMesh")
  3596. rmsh1.Parent = rprt1
  3597. rmsh1.Scale = vt(0.035,0.2,0.035)
  3598. local rwld1 = it("Weld")
  3599. rwld1.Parent = rprt1
  3600. rwld1.Part0 = rprt1
  3601. rwld1.Part1 = meh.Head
  3602. rwld1.C0 = euler(1.57,0,0) * cf(0.1,-0.18,0.5)
  3603. local rprt2 = it("Part")
  3604. rprt2.Parent = meh
  3605. rprt2.BrickColor = BrickColor.new("Bright red")
  3606. rprt2.CanCollide = false
  3607. rprt2.Name = "RedEye"
  3608. local rmsh2 = it("CylinderMesh")
  3609. rmsh2.Parent = rprt2
  3610. rmsh2.Scale = vt(0.035,0.2,0.035)
  3611. local wld2 = it("Weld")
  3612. wld2.Parent = rprt2
  3613. wld2.Part0 = rprt2
  3614. wld2.Part1 = meh.Head
  3615. wld2.C0 = euler(1.57,0,0) * cf(-0.1,-0.18,0.5)
  3616. local LastPoint1 = rprt1.CFrame * cf(0,rprt1.Size.Y/10,0)
  3617. local LastPoint2 = rprt2.CFrame * cf(0,rprt2.Size.Y/10,0)
  3618. while GunzerkDuration~=0 do
  3619. wait(0)
  3620. GunzerkDuration=GunzerkDuration-2
  3621. local Point1 = rprt1.CFrame * cf(0,rprt1.Size.Y/10,0)
  3622. effect("Bright red",0.5,LastPoint1,Point1)
  3623. LastPoint1 = Point1
  3624. local Point2 = rprt2.CFrame * cf(0,rprt2.Size.Y/10,0)
  3625. effect("Bright red",0.5,LastPoint2,Point2)
  3626. LastPoint2 = Point2
  3627. end
  3628. Gunzerkering=false
  3629. while attack==true do
  3630. wait()
  3631. end
  3632. LWRem()
  3633. rprt1.Parent=nil
  3634. rprt2.Parent=nil
  3635. newgun.Parent=nil
  3636. RW.C0 = cf(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(-60))
  3637. RW.C1 = cf(0, 0.5, 0) * angles(math.rad(25), 0, 0)
  3638. LW.C0 = cf(-1.5, 0.5, -0.5) * angles(math.rad(40),math.rad(0),math.rad(25))
  3639. LW.C1 = cf(0, 0.5, 0) * angles(0, 0, 0)
  3640. Neck.C0 = neckcf0 * angles(math.rad(0),0,0)
  3641. wait()
  3642. while GunzerkDuration~=1000 and Gunzerkering==false do
  3643. wait()
  3644. GunzerkDuration=GunzerkDuration+2
  3645. end
  3646. end))
  3647. end
  3648. if Gunzerkering~=true then
  3649. if key == "r" then
  3650. if Ammo~=MaxAmmo then
  3651. Reload2()
  3652. end
  3653. end
  3654. if key == "e" then
  3655. critical=false
  3656. Melee()
  3657. end
  3658. --[[DODGE ANIMATIONS]]--
  3659. if key=="b" then
  3660. DodgeBack()
  3661. end
  3662. if key=="g" then
  3663. DodgeForward()
  3664. holdforward=true
  3665. end
  3666. if key=="v" then
  3667. DodgeLeft()
  3668. end
  3669. if key=="n" then
  3670. DodgeRight()
  3671. end
  3672. --[[TAUNT ANIMATIONS]]--
  3673. if key=="z" then
  3674. Action1()
  3675. end
  3676. if key=="x" then
  3677. Action2()
  3678. end
  3679. --[[if key=="c" then
  3680. if resting==false then
  3681. resting=true
  3682. Sit()
  3683. else
  3684. resting=false
  3685. GetUp()
  3686. end]]
  3687. end
  3688. if key=="t" then
  3689. hifiving=true
  3690. Hi5()
  3691. end
  3692. end
  3693. --end
  3694.  
  3695.  
  3696. function key2(key)
  3697. if key == "f" or key == "q" then
  3698. buttonhold = false
  3699. end
  3700. if key=="g" then
  3701. holdforward=false
  3702. end
  3703. if key=="t" then
  3704. hifiving=false
  3705. end
  3706. end
  3707.  
  3708. function s(mouse)
  3709. repeat wait() until not attack
  3710. repeat wait() until not ev.Value
  3711.  
  3712. mouse.Button1Down:connect(function() ob1d(mouse) end)
  3713. mouse.Button1Up:connect(function() ob1u(mouse) end)
  3714. mouse.KeyDown:connect(function(ke) key(ke,mouse) end)
  3715. mouse.KeyUp:connect(key2)
  3716. equipanim()
  3717. ev.Value = true
  3718. end
  3719.  
  3720. function ds(mouse)
  3721. keyhold = false
  3722. repeat wait() until not attack
  3723. repeat wait() until ev.Value
  3724.  
  3725. hideanim()
  3726. wait(0.1)
  3727. ev.Value = false
  3728. end
  3729.  
  3730. Bin.Selected:connect(s)
  3731. Bin.Deselected:connect(ds)
  3732.  
  3733.  
  3734.  
  3735. if PlayerGui:findFirstChild("AmmoMeter") ~= nil then
  3736. PlayerGui:findFirstChild("AmmoMeter").Parent = nil
  3737. end
  3738.  
  3739.  
  3740. coroutine.resume(coroutine.create(function()
  3741. local SG = it("ScreenGui",PlayerGui)
  3742. SG.Name = "AmmoMeter"
  3743. local frame = it("Frame",SG)
  3744. frame.Size = UDim2.new(0.2,0,0.1,0)
  3745. frame.Position = UDim2.new(0.5-0.1,0,0.05,0)
  3746. frame.BackgroundColor3 = BrickColor.new("Brown").Color
  3747. local Ammotext = it("TextLabel",frame)
  3748. Ammotext.Size = UDim2.new(1,0,0.35,0)
  3749. Ammotext.BackgroundTransparency = 1
  3750. Ammotext.Text = "Ammo"
  3751. Ammotext.FontSize = "Size10"
  3752. Ammotext.TextColor3 = BrickColor.new("White").Color
  3753. local backing = it("ImageLabel",frame)
  3754. backing.Size = UDim2.new(0.8,0,0.2,0)
  3755. backing.Image = "http://www.roblox.com/asset/?id=48965808"
  3756. backing.Position = UDim2.new(0.1,0,0.3,0)
  3757. backing.BackgroundColor3 = BrickColor.new("Black").Color
  3758. local img = it("ImageLabel",backing)
  3759. img.Size = UDim2.new(1,0,1,0)
  3760. img.Image = "http://www.roblox.com/asset/?id=48965808"
  3761. img.Position = UDim2.new(0,0,0,0)
  3762. img.BackgroundColor3 = BrickColor.new("Brown").Color
  3763. local percent = it("TextLabel",backing)
  3764. percent.Size = UDim2.new(1,0,1,0)
  3765. percent.BackgroundTransparency = 1
  3766. percent.TextColor3 = BrickColor.new("White").Color
  3767. percent.Text = Ammo.."/".. MaxAmmo
  3768. percent.FontSize = "Size10"
  3769. local Gunzerktext = it("TextLabel",frame)
  3770. Gunzerktext.Size = UDim2.new(1,0,1.2,0)
  3771. Gunzerktext.BackgroundTransparency = 1
  3772. Gunzerktext.Text = "Gunzerk Duration"
  3773. Gunzerktext.FontSize = "Size10"
  3774. Gunzerktext.TextColor3 = BrickColor.new("White").Color
  3775. local Gunzerkbacking = it("ImageLabel",frame)
  3776. Gunzerkbacking.Size = UDim2.new(0.8,0,0.2,0)
  3777. Gunzerkbacking.Image = "http://www.roblox.com/asset/?id=48965808"
  3778. Gunzerkbacking.Position = UDim2.new(0.1,0,0.75,0)
  3779. Gunzerkbacking.BackgroundColor3 = BrickColor.new("Black").Color
  3780. local Gunzerkimg = it("ImageLabel",Gunzerkbacking)
  3781. Gunzerkimg.Size = UDim2.new(1,0,1,0)
  3782. Gunzerkimg.Image = "http://www.roblox.com/asset/?id=48965808"
  3783. Gunzerkimg.Position = UDim2.new(0,0,0,0)
  3784. Gunzerkimg.BackgroundColor3 = BrickColor.new("Brown").Color
  3785. local currentam = it("TextLabel",frame)
  3786. currentam.Size = UDim2.new(0.5,0,0.25,0)
  3787. currentam.Position = UDim2.new(0,0,1,0)
  3788. currentam.BackgroundTransparency = 0
  3789. currentam.BackgroundColor3 = BrickColor.new("Brown").Color
  3790. currentam.TextColor3 = BrickColor.new("White").Color
  3791. currentam.Text = CurrentAmmo
  3792. currentam.FontSize = "Size18"
  3793. repeat
  3794. wait()
  3795. pcall(function()
  3796. img.Size = UDim2.new(1*(Ammo/MaxAmmo),0,1,0)
  3797. percent.Text = Ammo.."/".. MaxAmmo
  3798. Gunzerkimg.Size = UDim2.new(1*(GunzerkDuration/1000),0,1,0)
  3799. currentam.Text = CurrentAmmo
  3800. end)
  3801. until SG.Parent == nil
  3802. end))
  3803.  
  3804. --[[coroutine.resume(coroutine.create(function()
  3805. swordholder.Parent = workspace
  3806. for i=0,9999999999 do
  3807. wait()
  3808. if swordholder.Parent==nil then
  3809. wait(1)
  3810. swordholder.Parent = workspace
  3811. prt1.Parent = swordholder
  3812. prt2.Parent = swordholder
  3813. prt3.Parent = swordholder
  3814. prt4.Parent = swordholder
  3815. prt5.Parent = swordholder
  3816. prt6.Parent = swordholder
  3817. holster1.Parent = swordholder
  3818. --holster2.Parent = swordholder
  3819. holster3.Parent = swordholder
  3820. w1.Parent=prt1
  3821. w2.Parent=prt2
  3822. w3.Parent=prt3
  3823. w4.Parent=prt4
  3824. w5.Parent=prt5
  3825. w6.Parent=prt6
  3826. w7.Parent=holster1
  3827. w8.Parent=holster2
  3828. w9.Parent=holster3
  3829. if Gunzerkering==true then
  3830. newgun.Parent = workspace
  3831. newprt1.Parent = newgun
  3832. newprt2.Parent = newgun
  3833. newprt3.Parent = newgun
  3834. newprt4.Parent = newgun
  3835. newprt5.Parent = newgun
  3836. newprt6.Parent = newgun
  3837. neww1.Parent=newprt1
  3838. neww2.Parent=newprt2
  3839. neww3.Parent=newprt3
  3840. neww4.Parent=newprt4
  3841. neww5.Parent=newprt5
  3842. neww6.Parent=newprt6
  3843. end
  3844. end
  3845. end
  3846. end))]]
  3847. coroutine.resume(coroutine.create(function()
  3848. for i=0,9999999999 do
  3849. wait()
  3850. if Character.Humanoid.Health==0 then
  3851. swordholder.Parent=workspace
  3852. prt1.Parent = swordholder
  3853. prt2.Parent = swordholder
  3854. prt3.Parent = swordholder
  3855. prt4.Parent = swordholder
  3856. prt5.Parent = swordholder
  3857. prt6.Parent = swordholder
  3858. holster1.Parent = swordholder
  3859. holster3.Parent = swordholder
  3860. w1.Parent=prt1
  3861. w2.Parent=prt2
  3862. w3.Parent=prt3
  3863. w4.Parent=prt4
  3864. w5.Parent=prt5
  3865. w6.Parent=prt6
  3866. w7.Parent=holster1
  3867. w8.Parent=holster2
  3868. w9.Parent=holster3
  3869. end
  3870. end
  3871. end))
  3872. testpart=it("Part")
  3873. testpart.Parent=swordholder
  3874. testpart.Anchored=true
  3875. testpart.CanCollide=false
  3876. testpart.Transparency=1
  3877. scarfp2=it("Part")
  3878. scarfp2.Parent=swordholder
  3879. scarfp2.Anchored=true
  3880. scarfp2.CanCollide=false
  3881. scarfp2.Transparency=1
  3882. cf=cf
  3883. euler=euler
  3884. coroutine.resume(coroutine.create(function()
  3885. while true do
  3886. wait(0)
  3887. if dodging==true then
  3888. scarfp2.CFrame = cf(Torso.Position, testpart.Position) *cf(0,0,0)
  3889. scarfp2.CFrame = scarfp2.CFrame + scarfp2.CFrame.lookVector * 0.5
  3890. scarfp2.CFrame = scarfp2.CFrame * cf(0,0,-0.5) * euler(1.57,0,0)
  3891. testpart.CFrame=cf(Torso.Position-Torso.Velocity) *cf(0,-1,0)
  3892. coroutine.resume(coroutine.create(function()
  3893. for i=0,2 do
  3894. Part=it("Part")
  3895. Mesh=it("CylinderMesh")
  3896. Mesh.Parent=Part
  3897. Mesh.Scale=vt(0.3,2,0.3)
  3898. Part.Parent=swordholder
  3899. Part.CanCollide=false
  3900. Part.BrickColor=BrickColor.new("Navy blue")
  3901. Part.Size=vt(1,1,1)
  3902. Part.Transparency=0.2
  3903. Part.Anchored=true
  3904. Part.CFrame=scarfp2.CFrame*cf(math.random(-2,1)+math.random(),math.random(-2,1)+math.random(),math.random(-2,1)+math.random())
  3905. coroutine.resume(coroutine.create(function(derpPart)
  3906. for i=0,1,0.1 do
  3907. wait()
  3908. derpPart.Transparency=derpPart.Transparency+0.05
  3909. end
  3910. derpPart.Parent=nil
  3911. end),Part)
  3912. end
  3913. end))
  3914. end
  3915. end
  3916. end))
  3917. Character.Humanoid.WalkSpeed = 14
  3918. -- mediafire
Add Comment
Please, Sign In to add comment