Advertisement
B0bstone

Untitled

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