Advertisement
ares200345

Roblox Gunblade Script

Jun 5th, 2013
10,175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 84.51 KB | None | 0 0
  1. --[[GunBlade Script created by:
  2. AccountMoniter:Everything XD
  3. If you're gonna steal this, then please I ask you. Please don't forum,free model, give
  4. away, or anything like that to this script. Thank you very much :)
  5. Percent done: around 40% [Got sidetracked by other stuff. Gonna continue with this after some time.]
  6. ]]
  7. Player = game:GetService("Players").ares200345
  8. Character = Player.Character
  9. PlayerGui = Player.PlayerGui
  10. Backpack = Player.Backpack
  11. Torso = Character.Torso
  12. Head = Character.Head
  13. LeftArm = Character["Left Arm"]
  14. LeftLeg = Character["Left Leg"]
  15. RightArm = Character["Right Arm"]
  16. RightLeg = Character["Right Leg"]
  17. LS = Torso["Left Shoulder"]
  18. LH = Torso["Left Hip"]
  19. RS = Torso["Right Shoulder"]
  20. RH = Torso["Right Hip"]
  21. attack = false
  22. attacktype = 1
  23. damage = 3
  24. oridamage = 3
  25. --player
  26. player = nil
  27. --save shoulders
  28. RSH, LSH = nil, nil
  29. --welds
  30. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  31. --what anim
  32. anim = "none"
  33. unsheathed = false
  34. tornadoing = false
  35. if Character:findFirstChild("Main Weapons",true) ~= nil then
  36. Character:findFirstChild("Main Weapons",true).Parent = nil
  37. end
  38. --[[Models and Parts]]--
  39. local modelzorz = Instance.new("Model")
  40. modelzorz.Name = "Main Weapons"
  41. modelzorz.Parent = Character
  42. local model1 = Instance.new("Model")
  43. model1.Name = "GunSword" --Yes I know. This is from Squall from FF7 right? Well I didn't copied this from him.
  44. model1.Parent = modelzorz
  45. local model2 = Instance.new("Model")
  46. model2.Name = "BlastCannon"
  47. model2.Parent = nil
  48. local model3 = Instance.new("Model")
  49. model3.Name = "LaserRifle"
  50. model3.Parent = nil
  51. local model4 = Instance.new("Model")
  52. model4.Name = "Tornado Skates"
  53. model4.Parent = nil
  54. local prt1 = Instance.new("Part")
  55. prt1.formFactor = 1
  56. prt1.Parent = model1
  57. prt1.CanCollide = false
  58. prt1.BrickColor = BrickColor.new("Dark stone grey")
  59. prt1.Name = "Handle1"
  60. prt1.Size = Vector3.new(1,1,1)
  61. prt1.Position = Torso.Position
  62. local prt2 = Instance.new("Part")
  63. prt2.formFactor = 1
  64. prt2.Parent = model1
  65. prt2.CanCollide = false
  66. prt2.BrickColor = BrickColor.new("Medium stone grey")
  67. prt2.Name = "Handle2"
  68. prt2.Size = Vector3.new(1,1,1)
  69. prt2.Position = Torso.Position
  70. local prt3 = Instance.new("Part")
  71. prt3.formFactor = 1
  72. prt3.Reflectance = 0.05
  73. prt3.Parent = model1
  74. prt3.CanCollide = false
  75. prt3.BrickColor = BrickColor.new("Black")
  76. prt3.Name = "Blade1"
  77. prt3.Size = Vector3.new(1,4,1)
  78. prt3.Position = Torso.Position
  79. local prt4 = Instance.new("Part")
  80. prt4.formFactor = 1
  81. prt4.Reflectance = 0.05
  82. prt4.Parent = model1
  83. prt4.CanCollide = false
  84. prt4.BrickColor = BrickColor.new("Black")
  85. prt4.Name = "Blade2"
  86. prt4.Size = Vector3.new(1,1,1)
  87. prt4.Position = Torso.Position
  88. local prt5 = Instance.new("Part")
  89. prt5.formFactor = 1
  90. prt5.Parent = model1
  91. prt5.CanCollide = false
  92. prt5.BrickColor = BrickColor.new("Medium stone grey")
  93. prt5.Name = "Barrel"
  94. prt5.Size = Vector3.new(1,1,1)
  95. prt5.Position = Torso.Position
  96. local prt6 = Instance.new("Part")
  97. prt6.formFactor = 1
  98. prt6.Parent = model1
  99. prt6.CanCollide = false
  100. prt6.BrickColor = BrickColor.new("Black")
  101. prt6.Name = "Shell1" --I had a REALLY, hard time CFraming all these shells >.<
  102. prt6.Size = Vector3.new(1,1,1)
  103. prt6.Position = Torso.Position
  104. local prt7 = Instance.new("Part")
  105. prt7.formFactor = 1
  106. prt7.Parent = model1
  107. prt7.CanCollide = false
  108. prt7.BrickColor = BrickColor.new("Black")
  109. prt7.Name = "Shell2"
  110. prt7.Size = Vector3.new(1,1,1)
  111. prt7.Position = Torso.Position
  112. local prt8 = Instance.new("Part")
  113. prt8.formFactor = 1
  114. prt8.Parent = model1
  115. prt8.CanCollide = false
  116. prt8.BrickColor = BrickColor.new("Black")
  117. prt8.Name = "Shell3"
  118. prt8.Size = Vector3.new(1,1,1)
  119. prt8.Position = Torso.Position
  120. local prt9 = Instance.new("Part")
  121. prt9.formFactor = 1
  122. prt9.Parent = model1
  123. prt9.CanCollide = false
  124. prt9.BrickColor = BrickColor.new("Black")
  125. prt9.Name = "Shell4"
  126. prt9.Size = Vector3.new(1,1,1)
  127. prt9.Position = Torso.Position
  128. local prt10 = Instance.new("Part")
  129. prt10.formFactor = 1
  130. prt10.Parent = model1
  131. prt10.CanCollide = false
  132. prt10.BrickColor = BrickColor.new("Black")
  133. prt10.Name = "Shell5"
  134. prt10.Size = Vector3.new(1,1,1)
  135. prt10.Position = Torso.Position
  136. local prt11 = Instance.new("Part")
  137. prt11.formFactor = 1
  138. prt11.Parent = model1
  139. prt11.CanCollide = false
  140. prt11.BrickColor = BrickColor.new("Black")
  141. prt11.Name = "Shell6"
  142. prt11.Size = Vector3.new(1,1,1)
  143. prt11.Position = Torso.Position
  144. local prt12 = Instance.new("Part")
  145. prt12.formFactor = 1
  146. prt12.Parent = model1
  147. prt12.CanCollide = false
  148. prt12.BrickColor = BrickColor.new("Medium stone grey")
  149. prt12.Name = "Gun1"
  150. prt12.Size = Vector3.new(1,2,1)
  151. prt12.Position = Torso.Position
  152. local prt13 = Instance.new("Part")
  153. prt13.formFactor = 1
  154. prt13.Parent = model1
  155. prt13.CanCollide = false
  156. prt13.BrickColor = BrickColor.new("Medium stone grey")
  157. prt13.Name = "Gun2"
  158. prt13.Size = Vector3.new(1,1,1)
  159. prt13.Position = Torso.Position
  160. local prt13a = Instance.new("Part")
  161. prt13a.formFactor = 1
  162. prt13a.Parent = model1
  163. prt13a.CanCollide = false
  164. prt13a.BrickColor = BrickColor.new("Black")
  165. prt13a.Name = "Gun3"
  166. prt13a.Size = Vector3.new(1,1,1)
  167. prt13a.Position = Torso.Position
  168. local prt14 = Instance.new("Part")
  169. prt14.formFactor = 1
  170. prt14.Parent = model1
  171. prt14.CanCollide = false
  172. prt14.BrickColor = BrickColor.new("Medium stone grey")
  173. prt14.Name = "Trigger1"
  174. prt14.Size = Vector3.new(1,1,1)
  175. prt14.Position = Torso.Position
  176. local prt15 = Instance.new("Part")
  177. prt15.formFactor = 1
  178. prt15.Parent = model1
  179. prt15.CanCollide = false
  180. prt15.BrickColor = BrickColor.new("Medium stone grey")
  181. prt15.Name = "Trigger2"
  182. prt15.Size = Vector3.new(1,1,1)
  183. prt15.Position = Torso.Position
  184. local prt16 = Instance.new("Part")
  185. prt16.formFactor = 1
  186. prt16.Parent = model2
  187. prt16.Reflectance = 0.2
  188. prt16.CanCollide = false
  189. prt16.BrickColor = BrickColor.new("Black")
  190. prt16.Name = "CannonHandle1"
  191. prt16.Size = Vector3.new(1,2,1)
  192. prt16.Position = Torso.Position
  193. local prt17 = Instance.new("Part")
  194. prt17.formFactor = 1
  195. prt17.Parent = model2
  196. prt17.Reflectance = 0.2
  197. prt17.CanCollide = false
  198. prt17.BrickColor = BrickColor.new("Black")
  199. prt17.Name = "CannonHandle2"
  200. prt17.Size = Vector3.new(1,1,1)
  201. prt17.Position = Torso.Position
  202. local prt18 = Instance.new("Part")
  203. prt18.formFactor = 1
  204. prt18.Parent = model2
  205. prt18.Reflectance = 0.2
  206. prt18.CanCollide = false
  207. prt18.BrickColor = BrickColor.new("Black")
  208. prt18.Name = "CannonPart1"
  209. prt18.Size = Vector3.new(1,2,1)
  210. prt18.Position = Torso.Position
  211. local prt19 = Instance.new("Part")
  212. prt19.formFactor = 1
  213. prt19.Parent = model2
  214. prt19.Reflectance = 0.2
  215. prt19.CanCollide = false
  216. prt19.BrickColor = BrickColor.new("Black")
  217. prt19.Name = "CannonPart2"
  218. prt19.Size = Vector3.new(1,2,1)
  219. prt19.Position = Torso.Position
  220. local prt20 = Instance.new("Part")
  221. prt20.formFactor = 1
  222. prt20.Parent = model2
  223. prt20.Reflectance = 0.2
  224. prt20.CanCollide = false
  225. prt20.BrickColor = BrickColor.new("White")
  226. prt20.Name = "CannonHandle3"
  227. prt20.Size = Vector3.new(1,2,1)
  228. prt20.Position = Torso.Position
  229. local prt21 = Instance.new("Part")
  230. prt21.formFactor = 1
  231. prt21.Parent = model2
  232. prt21.Reflectance = 0.2
  233. prt21.CanCollide = false
  234. prt21.BrickColor = BrickColor.new("Black")
  235. prt21.Name = "CannonPart3"
  236. prt21.Size = Vector3.new(1,2,1)
  237. prt21.Position = Torso.Position
  238. local prt22 = Instance.new("Part")
  239. prt22.formFactor = 1
  240. prt22.Parent = model2
  241. prt22.Reflectance = 0.2
  242. prt22.CanCollide = false
  243. prt22.BrickColor = BrickColor.new("Black")
  244. prt22.Name = "CannonPart4"
  245. prt22.Size = Vector3.new(1,2,1)
  246. prt22.Position = Torso.Position
  247. local prt23 = Instance.new("Part")
  248. prt23.formFactor = 1
  249. prt23.Parent = model2
  250. prt23.Reflectance = 0.2
  251. prt23.CanCollide = false
  252. prt23.BrickColor = BrickColor.new("Medium stone grey")
  253. prt23.Name = "CannonPart5"
  254. prt23.Size = Vector3.new(1,1,1)
  255. prt23.Position = Torso.Position
  256. local prt24 = Instance.new("Part")
  257. prt24.formFactor = 1
  258. prt24.Parent = model2
  259. prt24.Reflectance = 0
  260. prt24.CanCollide = false
  261. prt24.BrickColor = BrickColor.new("Black")
  262. prt24.Name = "CannonPart6"
  263. prt24.Size = Vector3.new(1,1,1)
  264. prt24.Position = Torso.Position
  265. local prt25 = Instance.new("Part")
  266. prt25.formFactor = 1
  267. prt25.Parent = model2
  268. prt25.Reflectance = 0.2
  269. prt25.CanCollide = false
  270. prt25.BrickColor = BrickColor.new("Medium stone grey")
  271. prt25.Name = "CannonPart7"
  272. prt25.Size = Vector3.new(1,2,1)
  273. prt25.Position = Torso.Position
  274. local prt26 = Instance.new("Part")
  275. prt26.formFactor = 1
  276. prt26.Parent = model2
  277. prt26.Reflectance = 0.2
  278. prt26.CanCollide = false
  279. prt26.BrickColor = BrickColor.new("Medium stone grey")
  280. prt26.Name = "CannonPart8"
  281. prt26.Size = Vector3.new(1,1,1)
  282. prt26.Position = Torso.Position
  283. local prt27 = Instance.new("Part")
  284. prt27.formFactor = 1
  285. prt27.Parent = model2
  286. prt27.Reflectance = 0
  287. prt27.CanCollide = false
  288. prt27.BrickColor = BrickColor.new("Black")
  289. prt27.Name = "CannonPart9"
  290. prt27.Size = Vector3.new(1,1,1)
  291. prt27.Position = Torso.Position
  292. local prt28 = Instance.new("Part")
  293. prt28.formFactor = 1
  294. prt28.Parent = model2
  295. prt28.Reflectance = 0
  296. prt28.CanCollide = false
  297. prt28.BrickColor = BrickColor.new("Black")
  298. prt28.Name = "CannonPart10"
  299. prt28.Size = Vector3.new(1,1,1)
  300. prt28.Position = Torso.Position
  301. local prt29 = Instance.new("Part")
  302. prt29.formFactor = 1
  303. prt29.Parent = model2
  304. prt29.Reflectance = 0.2
  305. prt29.CanCollide = false
  306. prt29.BrickColor = BrickColor.new("Black")
  307. prt29.Name = "CannonPart11"
  308. prt29.Size = Vector3.new(1,2,1)
  309. prt29.Position = Torso.Position
  310. local prt30 = Instance.new("Part")
  311. prt30.formFactor = 1
  312. prt30.Parent = model2
  313. prt30.Reflectance = 0
  314. prt30.CanCollide = false
  315. prt30.BrickColor = BrickColor.new("Bright red")
  316. prt30.Name = "CannonPart12"
  317. prt30.Size = Vector3.new(1,2,1)
  318. prt30.Position = Torso.Position
  319. local prt31 = Instance.new("Part")
  320. prt31.formFactor = 1
  321. prt31.Parent = model2
  322. prt31.Reflectance = 0
  323. prt31.CanCollide = false
  324. prt31.BrickColor = BrickColor.new("Black")
  325. prt31.Name = "CannonPart13"
  326. prt31.Size = Vector3.new(1,2,1)
  327. prt31.Position = Torso.Position
  328. local prt32 = Instance.new("Part")
  329. prt32.formFactor = 1
  330. prt32.Parent = model3
  331. prt32.Reflectance = 0
  332. prt32.CanCollide = false
  333. prt32.BrickColor = BrickColor.new("Bright blue")
  334. prt32.Name = "LRhandle1"
  335. prt32.Size = Vector3.new(1,1,1)
  336. prt32.Position = Torso.Position
  337. local prt32a = Instance.new("Part")
  338. prt32a.formFactor = 1
  339. prt32a.Parent = model3
  340. prt32a.Reflectance = 0
  341. prt32a.CanCollide = false
  342. prt32a.BrickColor = BrickColor.new("Black")
  343. prt32a.Name = "LRhandle1a"
  344. prt32a.Size = Vector3.new(1,1,1)
  345. prt32a.Position = Torso.Position
  346. local prt33 = Instance.new("Part")
  347. prt33.formFactor = 1
  348. prt33.Parent = model3
  349. prt33.Reflectance = 0
  350. prt33.CanCollide = false
  351. prt33.BrickColor = BrickColor.new("Bright blue")
  352. prt33.Name = "LRhandle2"
  353. prt33.Size = Vector3.new(1,1,1)
  354. prt33.Position = Torso.Position
  355. local prt34 = Instance.new("Part")
  356. prt34.formFactor = 1
  357. prt34.Parent = model3
  358. prt34.Reflectance = 0
  359. prt34.CanCollide = false
  360. prt34.BrickColor = BrickColor.new("Bright blue")
  361. prt34.Name = "LRPart1"
  362. prt34.Size = Vector3.new(1,2,1)
  363. prt34.Position = Torso.Position
  364. local prt35 = Instance.new("Part")
  365. prt35.formFactor = 1
  366. prt35.Parent = model3
  367. prt35.Reflectance = 0
  368. prt35.CanCollide = false
  369. prt35.BrickColor = BrickColor.new("Bright blue")
  370. prt35.Name = "LRPart2"
  371. prt35.Size = Vector3.new(1,1,1)
  372. prt35.Position = Torso.Position
  373. local prt36 = Instance.new("Part")
  374. prt36.formFactor = 1
  375. prt36.Parent = model3
  376. prt36.Reflectance = 0
  377. prt36.Reflectance = 0.2
  378. prt36.CanCollide = false
  379. prt36.BrickColor = BrickColor.new("White")
  380. prt36.Name = "LRPart3"
  381. prt36.Size = Vector3.new(1,1,1)
  382. prt36.Position = Torso.Position
  383. local prt37 = Instance.new("Part")
  384. prt37.formFactor = 1
  385. prt37.Parent = model3
  386. prt37.Reflectance = 0
  387. prt37.Reflectance = 0.2
  388. prt37.CanCollide = false
  389. prt37.BrickColor = BrickColor.new("New Yeller")
  390. prt37.Name = "LRPart4"
  391. prt37.Size = Vector3.new(1,1,1)
  392. prt37.Position = Torso.Position
  393. local prt38 = Instance.new("Part")
  394. prt38.formFactor = 1
  395. prt38.Parent = model3
  396. prt38.Reflectance = 0
  397. prt38.CanCollide = false
  398. prt38.BrickColor = BrickColor.new("White")
  399. prt38.Name = "LRDesign1"
  400. prt38.Size = Vector3.new(1,1,1)
  401. prt38.Position = Torso.Position
  402. local prt39 = Instance.new("Part")
  403. prt39.formFactor = 1
  404. prt39.Parent = model3
  405. prt39.Reflectance = 0
  406. prt39.CanCollide = false
  407. prt39.BrickColor = BrickColor.new("Bright blue")
  408. prt39.Name = "LRDesign2"
  409. prt39.Size = Vector3.new(1,1,1)
  410. prt39.Position = Torso.Position
  411. local prt40 = Instance.new("Part")
  412. prt40.formFactor = 1
  413. prt40.Parent = model3
  414. prt40.Reflectance = 0
  415. prt40.Transparency = 0.4
  416. prt40.CanCollide = false
  417. prt40.BrickColor = BrickColor.new("Medium stone grey")
  418. prt40.Name = "TSPart1"
  419. prt40.Size = Vector3.new(1,1,1)
  420. prt40.Position = Torso.Position
  421. local msh1 = Instance.new("BlockMesh")
  422. msh1.Parent = prt1
  423. msh1.Scale = Vector3.new(0.5,2,0.5)
  424. local msh2 = Instance.new("BlockMesh")
  425. msh2.Parent = prt2
  426. msh2.Scale = Vector3.new(1,1,0.7)
  427. local msh3 = Instance.new("BlockMesh")
  428. msh3.Parent = prt3
  429. msh3.Scale = Vector3.new(0.7,0.8,0.12)
  430. local msh4 = Instance.new("SpecialMesh")
  431. msh4.Parent = prt4
  432. msh4.MeshType = "Wedge"
  433. msh4.Scale = Vector3.new(0.12, 1, 1.1)
  434. local msh5 = Instance.new("CylinderMesh")
  435. msh5.Parent = prt5
  436. msh5.Scale = Vector3.new(1,1,1)
  437. local msh6 = Instance.new("CylinderMesh")
  438. msh6.Parent = prt6
  439. msh6.Scale = Vector3.new(1.1,1.1,0.3)
  440. local msh7 = Instance.new("CylinderMesh")
  441. msh7.Parent = prt7
  442. msh7.Scale = Vector3.new(1.1,1.1,0.3)
  443. local msh8 = Instance.new("CylinderMesh")
  444. msh8.Parent = prt8
  445. msh8.Scale = Vector3.new(1.1,1.1,0.3)
  446. local msh9 = Instance.new("CylinderMesh")
  447. msh9.Parent = prt9
  448. msh9.Scale = Vector3.new(1.1,1.1,0.3)
  449. local msh10 = Instance.new("CylinderMesh")
  450. msh10.Parent = prt10
  451. msh10.Scale = Vector3.new(1.1,1.1,0.3)
  452. local msh11 = Instance.new("CylinderMesh")
  453. msh11.Parent = prt11
  454. msh11.Scale = Vector3.new(1.1,1.1,0.3)
  455. local msh12 = Instance.new("CylinderMesh")
  456. msh12.Parent = prt12
  457. msh12.Scale = Vector3.new(1.2,1,0.4)
  458. local msh13 = Instance.new("CylinderMesh")
  459. msh13.Parent = prt13
  460. msh13.Scale = Vector3.new(0.5,0.5,0.5)
  461. local msh13a = Instance.new("CylinderMesh")
  462. msh13a.Parent = prt13a
  463. msh13a.Scale = Vector3.new(0.4,0.51,0.4)
  464. local msh14 = Instance.new("SpecialMesh")
  465. msh14.Parent = prt14
  466. msh14.MeshId = "http://www.roblox.com/asset/?id=3270017"
  467. msh14.Scale = Vector3.new(0.5,0.5,0.5)
  468. local msh15 = Instance.new("BlockMesh")
  469. msh15.Parent = prt15
  470. msh15.Scale = Vector3.new(0.1,0.4,0.1)
  471. local msh16 = Instance.new("BlockMesh")
  472. msh16.Parent = prt16
  473. msh16.Scale = Vector3.new(0.5,0.6,0.5)
  474. local msh17 = Instance.new("BlockMesh")
  475. msh17.Parent = prt17
  476. msh17.Scale = Vector3.new(0.6,0.3,0.6)
  477. local msh18 = Instance.new("BlockMesh")
  478. msh18.Parent = prt18
  479. msh18.Scale = Vector3.new(0.7,0.5,0.7)
  480. local msh19 = Instance.new("BlockMesh")
  481. msh19.Parent = prt19
  482. msh19.Scale = Vector3.new(0.7,0.8,0.8)
  483. local msh20 = Instance.new("BlockMesh")
  484. msh20.Parent = prt20
  485. msh20.Scale = Vector3.new(0.6,0.8,0.7)
  486. local msh21 = Instance.new("BlockMesh")
  487. msh21.Parent = prt21
  488. msh21.Scale = Vector3.new(0.7,0.65,0.7)
  489. local msh22 = Instance.new("BlockMesh")
  490. msh22.Parent = prt22
  491. msh22.Scale = Vector3.new(0.7,1.2,0.7)
  492. local msh23 = Instance.new("CylinderMesh")
  493. msh23.Parent = prt23
  494. msh23.Scale = Vector3.new(0.5,0.5,0.5)
  495. local msh24 = Instance.new("CylinderMesh")
  496. msh24.Parent = prt24
  497. msh24.Scale = Vector3.new(0.4,0.51,0.4)
  498. local msh25 = Instance.new("CylinderMesh")
  499. msh25.Parent = prt25
  500. msh25.Scale = Vector3.new(0.5,0.9,0.5)
  501. local msh26 = Instance.new("CylinderMesh")
  502. msh26.Parent = prt26
  503. msh26.Scale = Vector3.new(0.4,0.5,0.4)
  504. local msh27 = Instance.new("CylinderMesh")
  505. msh27.Parent = prt27
  506. msh27.Scale = Vector3.new(0.3,0.51,0.3)
  507. local msh28 = Instance.new("CylinderMesh")
  508. msh28.Parent = prt28
  509. msh28.Scale = Vector3.new(0.6,0.51,0.6)
  510. local msh29 = Instance.new("BlockMesh")
  511. msh29.Parent = prt29
  512. msh29.Scale = Vector3.new(0.7,0.65,1)
  513. local msh30 = Instance.new("CylinderMesh")
  514. msh30.Parent = prt30
  515. msh30.Scale = Vector3.new(1,0.65,1.2)
  516. local msh31 = Instance.new("BlockMesh")
  517. msh31.Parent = prt31
  518. msh31.Scale = Vector3.new(0.9,0.9,0.5)
  519. local msh32 = Instance.new("CylinderMesh")
  520. msh32.Parent = prt32
  521. msh32.Scale = Vector3.new(1.5,1.5,1.5)
  522. local msh32a = Instance.new("CylinderMesh")
  523. msh32a.Parent = prt32a
  524. msh32a.Scale = Vector3.new(1,1.6,1)
  525. local msh33 = Instance.new("BlockMesh")
  526. msh33.Parent = prt33
  527. msh33.Scale = Vector3.new(1.1,1.1,1.1)
  528. local msh34 = Instance.new("BlockMesh")
  529. msh34.Parent = prt34
  530. msh34.Scale = Vector3.new(1.4,1.1,1.4)
  531. local msh35 = Instance.new("SpecialMesh")
  532. msh35.MeshType = "Wedge"
  533. msh35.Parent = prt35
  534. msh35.Scale = Vector3.new(1.4,1.3,1.4)
  535. local msh36 = Instance.new("CylinderMesh")
  536. msh36.Parent = prt36
  537. msh36.Scale = Vector3.new(1.3,1.2,1.3)
  538. local msh37 = Instance.new("SpecialMesh")
  539. msh37.MeshType = "Sphere"
  540. msh37.Parent = prt37
  541. msh37.Scale = Vector3.new(0.8,0.8,0.8)
  542. local msh38 = Instance.new("BlockMesh")
  543. msh38.Parent = prt38
  544. msh38.Scale = Vector3.new(1.5,0.7,1.5)
  545. local msh39 = Instance.new("CylinderMesh")
  546. msh39.Parent = prt39
  547. msh39.Scale = Vector3.new(0.7,1.3,0.7)
  548. local msh40 = Instance.new("BlockMesh")
  549. msh40.Parent = prt40
  550. msh40.Scale = Vector3.new(0.5,0.5,0.5)
  551. local wld1 = Instance.new("Weld")
  552. wld1.Parent = prt1
  553. wld1.Part0 = prt1
  554. wld1.Part1 = Torso
  555. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.5) * CFrame.new(0.3,-1.55, -0.75)
  556. local wld2 = Instance.new("Weld")
  557. wld2.Parent = prt2
  558. wld2.Part0 = prt2
  559. wld2.Part1 = prt1
  560. wld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0.5) * CFrame.new(0,1,0)
  561. local wld3 = Instance.new("Weld")
  562. wld3.Parent = prt3
  563. wld3.Part0 = prt3
  564. wld3.Part1 = prt2
  565. wld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.7,0)
  566. local wld4 = Instance.new("Weld")
  567. wld4.Parent = prt4
  568. wld4.Part0 = prt4
  569. wld4.Part1 = prt3
  570. wld4.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180),math.rad(90),0) * CFrame.new(0.2,2,0)
  571. local wld5 = Instance.new("Weld")
  572. wld5.Parent = prt5
  573. wld5.Part0 = prt5
  574. wld5.Part1 = prt2
  575. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.4,0.5,0)
  576. local wld6 = Instance.new("Weld")
  577. wld6.Parent = prt6
  578. wld6.Part0 = prt6
  579. wld6.Part1 = prt5
  580. wld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.4,0,0)
  581. local wld7 = Instance.new("Weld")
  582. wld7.Parent = prt7
  583. wld7.Part0 = prt7
  584. wld7.Part1 = prt5
  585. wld7.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.2,0,-0.3)
  586. local wld8 = Instance.new("Weld")
  587. wld8.Parent = prt8
  588. wld8.Part0 = prt8
  589. wld8.Part1 = prt5
  590. wld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.2,0,-0.3)
  591. local wld9 = Instance.new("Weld")
  592. wld9.Parent = prt9
  593. wld9.Part0 = prt9
  594. wld9.Part1 = prt5
  595. wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.4,0,0)
  596. local wld10 = Instance.new("Weld")
  597. wld10.Parent = prt10
  598. wld10.Part0 = prt10
  599. wld10.Part1 = prt5
  600. wld10.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.2,0,0.3)
  601. local wld11 = Instance.new("Weld")
  602. wld11.Parent = prt11
  603. wld11.Part0 = prt11
  604. wld11.Part1 = prt5
  605. wld11.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.2,0,0.3)
  606. local wld12 = Instance.new("Weld")
  607. wld12.Parent = prt12
  608. wld12.Part0 = prt12
  609. wld12.Part1 = prt3
  610. wld12.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  611. local wld13 = Instance.new("Weld")
  612. wld13.Parent = prt13
  613. wld13.Part0 = prt13
  614. wld13.Part1 = prt12
  615. wld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.3,0)
  616. local wld13a = Instance.new("Weld")
  617. wld13a.Parent = prt13a
  618. wld13a.Part0 = prt13a
  619. wld13a.Part1 = prt13
  620. wld13a.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  621. local wld14 = Instance.new("Weld")
  622. wld14.Parent = prt14
  623. wld14.Part0 = prt14
  624. wld14.Part1 = prt2
  625. wld14.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.5,-0.4,0)
  626. local wld15 = Instance.new("Weld")
  627. wld15.Parent = prt15
  628. wld15.Part0 = prt15
  629. wld15.Part1 = prt14
  630. wld15.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(120)) * CFrame.new(0,0,0)
  631. local wld16 = Instance.new("Weld")
  632. wld16.Parent = prt16
  633. wld16.Part0 = prt16
  634. wld16.Part1 = Torso
  635. wld16.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) * CFrame.new(0,-0.2,-0.2)
  636. local wld17 = Instance.new("Weld")
  637. wld17.Parent = prt17
  638. wld17.Part0 = prt17
  639. wld17.Part1 = prt16
  640. wld17.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.45,0)
  641. local wld18 = Instance.new("Weld")
  642. wld18.Parent = prt18
  643. wld18.Part0 = prt18
  644. wld18.Part1 = prt16
  645. wld18.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1,0)
  646. local wld19 = Instance.new("Weld")
  647. wld19.Parent = prt19
  648. wld19.Part0 = prt19
  649. wld19.Part1 = prt18
  650. wld19.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,-0.4,-0.45)
  651. local wld20 = Instance.new("Weld")
  652. wld20.Parent = prt20
  653. wld20.Part0 = prt20
  654. wld20.Part1 = prt19
  655. wld20.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0.5)
  656. local wld21 = Instance.new("Weld")
  657. wld21.Parent = prt21
  658. wld21.Part0 = prt21
  659. wld21.Part1 = prt19
  660. wld21.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1.1,0.25)
  661. local wld22 = Instance.new("Weld")
  662. wld22.Parent = prt22
  663. wld22.Part0 = prt22
  664. wld22.Part1 = prt18
  665. wld22.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,-0.4,1.1)
  666. local wld23 = Instance.new("Weld")
  667. wld23.Parent = prt23
  668. wld23.Part0 = prt23
  669. wld23.Part1 = prt22
  670. wld23.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.3,0)
  671. local wld24 = Instance.new("Weld")
  672. wld24.Parent = prt24
  673. wld24.Part0 = prt24
  674. wld24.Part1 = prt23
  675. wld24.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  676. local wld25 = Instance.new("Weld")
  677. wld25.Parent = prt25
  678. wld25.Part0 = prt25
  679. wld25.Part1 = prt18
  680. wld25.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,0.3,1.1)
  681. local wld26 = Instance.new("Weld")
  682. wld26.Parent = prt26
  683. wld26.Part0 = prt26
  684. wld26.Part1 = prt25
  685. wld26.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1,0)
  686. local wld27 = Instance.new("Weld")
  687. wld27.Parent = prt27
  688. wld27.Part0 = prt27
  689. wld27.Part1 = prt26
  690. wld27.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  691. local wld28 = Instance.new("Weld")
  692. wld28.Parent = prt28
  693. wld28.Part0 = prt28
  694. wld28.Part1 = prt25
  695. wld28.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  696. local wld29 = Instance.new("Weld")
  697. wld29.Parent = prt29
  698. wld29.Part0 = prt29
  699. wld29.Part1 = prt21
  700. wld29.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0.8)
  701. local wld30 = Instance.new("Weld")
  702. wld30.Parent = prt30
  703. wld30.Part0 = prt30
  704. wld30.Part1 = prt29
  705. wld30.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,0,-0.2)
  706. local wld31 = Instance.new("Weld")
  707. wld31.Parent = prt31
  708. wld31.Part0 = prt31
  709. wld31.Part1 = prt18
  710. wld31.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,-0.4,0.5)
  711. local wld32 = Instance.new("Weld")
  712. wld32.Parent = prt32
  713. wld32.Part0 = prt32
  714. wld32.Part1 = RightArm
  715. wld32.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,1.2,0)
  716. local wld32a = Instance.new("Weld")
  717. wld32a.Parent = prt32a
  718. wld32a.Part0 = prt32a
  719. wld32a.Part1 = prt32
  720. wld32a.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  721. local wld33 = Instance.new("Weld")
  722. wld33.Parent = prt33
  723. wld33.Part0 = prt33
  724. wld33.Part1 = RightArm
  725. wld33.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0.6,0)
  726. local wld34 = Instance.new("Weld")
  727. wld34.Parent = prt34
  728. wld34.Part0 = prt34
  729. wld34.Part1 = prt32
  730. wld34.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(-1,0,0)
  731. local wld35 = Instance.new("Weld")
  732. wld35.Parent = prt35
  733. wld35.Part0 = prt35
  734. wld35.Part1 = prt34
  735. wld35.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-2,0)
  736. local wld36 = Instance.new("Weld")
  737. wld36.Parent = prt36
  738. wld36.Part0 = prt36
  739. wld36.Part1 = prt35
  740. wld36.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  741. local wld37 = Instance.new("Weld")
  742. wld37.Parent = prt37
  743. wld37.Part0 = prt37
  744. wld37.Part1 = prt36
  745. wld37.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.8,0)
  746. local wld38 = Instance.new("Weld")
  747. wld38.Parent = prt38
  748. wld38.Part0 = prt38
  749. wld38.Part1 = prt34
  750. wld38.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.1,0)
  751. local wld39 = Instance.new("Weld")
  752. wld39.Parent = prt39
  753. wld39.Part0 = prt39
  754. wld39.Part1 = prt38
  755. wld39.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,-0.4)
  756. local wld40 = Instance.new("Weld")
  757. wld40.Parent = prt40
  758. wld40.Part0 = prt40
  759. wld40.Part1 = LeftLeg
  760. wld40.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1,0)
  761. if (script.Parent.className ~= "HopperBin") then
  762. Tool = Instance.new("HopperBin")
  763. Tool.Parent = Backpack
  764. Tool.Name = "AccountMoniter's GunBlade" --Yes. MY, GunBlade.
  765. Tool.TextureId = "" --Haven't made a picture for it yet. I soon will when i'm done with every weapon :3
  766. script.Parent = Tool
  767. end
  768. Bin = script.Parent
  769. --[[Main Functions]]--
  770. function unequipweld()
  771. wld1.Part1 = Torso
  772. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.5) * CFrame.new(0.3,-1.55, -0.75)
  773. end
  774. function unequipweld2()
  775. wld16.Part1 = Torso
  776. wld16.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) * CFrame.new(0,-0.2,-0.2)
  777. end
  778. function equipweld()
  779. wld1.Part1 = LeftArm
  780. wld1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  781. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -0.7, -1.57) * CFrame.new(0, 1, 0)
  782. end
  783. function equipweld2()
  784. wld16.Part1 = LeftArm
  785. wld16.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  786. wld16.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0, 1, 0)
  787. end
  788. function hideanim()
  789. for i = 0 , 1 , 0.07 do
  790. wait(0)
  791. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5*i,0,1*i)
  792. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  793. --wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), math.rad(720)*i, -1.57) * CFrame.new(0, 1, 0)
  794. end
  795. unequipweld()
  796. wait(0.2)
  797. for i = 0 , 1 , 0.07 do
  798. wait(0)
  799. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-3.5*i+3.5,0,-1*i+1)
  800. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  801. end
  802. end
  803. function equipanim()
  804. for i = 0 , 1 , 0.07 do
  805. wait(0)
  806. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5*i,0,1*i)
  807. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  808. end
  809. equipweld()
  810. wait(0.1)
  811. for i = 0 , 1 , 0.07 do
  812. wait(0)
  813. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-3.5*i+3.5,0,-1*i+1)
  814. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  815. end
  816. wait(0.3)
  817. for i = 0 , 1 , 0.07 do
  818. wait(0)
  819. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1*i,0,0)
  820. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  821. end
  822. end
  823. function oneslash()
  824. for i = 0 , 1 , 0.07 do
  825. wait(0)
  826. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2*i+1,0,0)
  827. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  828. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0.7*i-0.7, -1.57) * CFrame.new(0, 1, 0)
  829. end
  830. ss(prt1,1)
  831. local con = prt3.Touched:connect(OT)
  832. local con2 = prt4.Touched:connect(OT)
  833. for i = 0 , 1 , 0.1 do
  834. wait(0)
  835. effect()
  836. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-3.5*i+3,0,0)
  837. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  838. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -1*i, -1.57) * CFrame.new(0, 1, 0)
  839. end
  840. con:disconnect()
  841. con2:disconnect()
  842. end
  843. function twoslash()
  844. ss(prt1,1)
  845. local con = prt3.Touched:connect(OT)
  846. local con2 = prt4.Touched:connect(OT)
  847. for i = 0 , 1 , 0.1 do
  848. wait(0)
  849. effect()
  850. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3*i-0.5,0,0)
  851. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  852. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 2*i-1, -1.57) * CFrame.new(0, 1, 0)
  853. end
  854. con:disconnect()
  855. con2:disconnect()
  856. for i = 0 , 1 , 0.07 do
  857. wait(0)
  858. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1.5*i+2.5,0,0)
  859. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  860. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -1.7*i+1, -1.57) * CFrame.new(0, 1, 0)
  861. end
  862. end
  863. function unload() --Possibly the hardest attack made for the GunBlade >.<
  864. for i = 0 , 1 , 0.15 do
  865. wait(0)
  866. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.4*i,0.5*i,-0.5*i)
  867. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  868. end
  869. local bullet1 = Instance.new("Part")
  870. bullet1.formFactor = 1
  871. bullet1.Parent = model1
  872. bullet1.CanCollide = false
  873. bullet1.BrickColor = BrickColor.new("New Yeller")
  874. bullet1.Name = "Bullet1"
  875. bullet1.Size = Vector3.new(1,1,1)
  876. bullet1.Position = Torso.Position
  877. local bullet2 = Instance.new("Part")
  878. bullet2.formFactor = 1
  879. bullet2.Parent = model1
  880. bullet2.CanCollide = false
  881. bullet2.BrickColor = BrickColor.new("New Yeller")
  882. bullet2.Name = "Bullet2"
  883. bullet2.Size = Vector3.new(1,1,1)
  884. bullet2.Position = Torso.Position
  885. local bullet3 = Instance.new("Part")
  886. bullet3.formFactor = 1
  887. bullet3.Parent = model1
  888. bullet3.CanCollide = false
  889. bullet3.BrickColor = BrickColor.new("New Yeller")
  890. bullet3.Name = "Bullet3"
  891. bullet3.Size = Vector3.new(1,1,1)
  892. bullet3.Position = Torso.Position
  893. local bullet4 = Instance.new("Part")
  894. bullet4.formFactor = 1
  895. bullet4.Parent = model1
  896. bullet4.CanCollide = false
  897. bullet4.BrickColor = BrickColor.new("New Yeller")
  898. bullet4.Name = "Bullet4"
  899. bullet4.Size = Vector3.new(1,1,1)
  900. bullet4.Position = Torso.Position
  901. local bullet5 = Instance.new("Part")
  902. bullet5.formFactor = 1
  903. bullet5.Parent = model1
  904. bullet5.CanCollide = false
  905. bullet5.BrickColor = BrickColor.new("New Yeller")
  906. bullet5.Name = "Bullet5"
  907. bullet5.Size = Vector3.new(1,1,1)
  908. bullet5.Position = Torso.Position
  909. local bullet6 = Instance.new("Part")
  910. bullet6.formFactor = 1
  911. bullet6.Parent = model1
  912. bullet6.CanCollide = false
  913. bullet6.BrickColor = BrickColor.new("New Yeller")
  914. bullet6.Name = "Bullet6"
  915. bullet6.Size = Vector3.new(1,1,1)
  916. bullet6.Position = Torso.Position
  917. local bulmesh1 = Instance.new("CylinderMesh")
  918. bulmesh1.Parent = bullet1
  919. bulmesh1.Scale = Vector3.new(1.1,1.1,0.3)
  920. local bulmesh2 = Instance.new("CylinderMesh")
  921. bulmesh2.Parent = bullet2
  922. bulmesh2.Scale = Vector3.new(1.1,1.1,0.3)
  923. local bulmesh3 = Instance.new("CylinderMesh")
  924. bulmesh3.Parent = bullet3
  925. bulmesh3.Scale = Vector3.new(1.1,1.1,0.3)
  926. local bulmesh4 = Instance.new("CylinderMesh")
  927. bulmesh4.Parent = bullet4
  928. bulmesh4.Scale = Vector3.new(1.1,1.1,0.3)
  929. local bulmesh5 = Instance.new("CylinderMesh")
  930. bulmesh5.Parent = bullet5
  931. bulmesh5.Scale = Vector3.new(1.1,1.1,0.3)
  932. local bulmesh6 = Instance.new("CylinderMesh")
  933. bulmesh6.Parent = bullet6
  934. bulmesh6.Scale = Vector3.new(1.1,1.1,0.3)
  935. local bulweld1 = Instance.new("Weld")
  936. bulweld1.Parent = bullet1
  937. bulweld1.Part0 = bullet1
  938. bulweld1.Part1 = RightArm
  939. bulweld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.2,1,0.3)
  940. local bulweld2 = Instance.new("Weld")
  941. bulweld2.Parent = bullet2
  942. bulweld2.Part0 = bullet2
  943. bulweld2.Part1 = RightArm
  944. bulweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.2,1,0)
  945. local bulweld3 = Instance.new("Weld")
  946. bulweld3.Parent = bullet3
  947. bulweld3.Part0 = bullet3
  948. bulweld3.Part1 = RightArm
  949. bulweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.2,1,-0.3)
  950. local bulweld4 = Instance.new("Weld")
  951. bulweld4.Parent = bullet4
  952. bulweld4.Part0 = bullet4
  953. bulweld4.Part1 = RightArm
  954. bulweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.2,1,0.3)
  955. local bulweld5 = Instance.new("Weld")
  956. bulweld5.Parent = bullet5
  957. bulweld5.Part0 = bullet5
  958. bulweld5.Part1 = RightArm
  959. bulweld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.2,1,0)
  960. local bulweld6 = Instance.new("Weld")
  961. bulweld6.Parent = bullet6
  962. bulweld6.Part0 = bullet6
  963. bulweld6.Part1 = RightArm
  964. bulweld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.2,1,-0.3)
  965. for i = 0 , 1 , 0.1 do
  966. wait(0)
  967. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -0.5*i-0.7, -1.57) * CFrame.new(0, 1, 0)
  968. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.1*i+1,1*i,0.7*i)
  969. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  970. RW.C0 = CFrame.new(-0.7*i+1.5,0.5,-0.7*i) * CFrame.fromEulerAnglesXYZ(2*i-0.4,-0.5*i+0.5,-0.5*i-0.5)
  971. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  972. end
  973. bullet1.Parent = nil
  974. prt6.BrickColor = BrickColor.new("New Yeller")
  975. reloadsound(prt1,1)
  976. for i = 0 , 1 , 0.3 do
  977. wait(0)
  978. RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(-0.6*i+1.6,0,0.3*i-1)
  979. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  980. end
  981. for i = 0 , 1 , 0.3 do
  982. wait(0)
  983. RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(0.6*i-0.6+1.6,0,-0.3*i+0.3-1)
  984. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  985. end
  986. bullet2.Parent = nil
  987. prt7.BrickColor = BrickColor.new("New Yeller")
  988. reloadsound(prt1,1)
  989. for i = 0 , 1 , 0.3 do
  990. wait(0)
  991. RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(-0.6*i+1.6,0,0.3*i-1)
  992. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  993. end
  994. for i = 0 , 1 , 0.3 do
  995. wait(0)
  996. RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(0.6*i-0.6+1.6,0,-0.3*i+0.3-1)
  997. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  998. end
  999. bullet3.Parent = nil
  1000. prt8.BrickColor = BrickColor.new("New Yeller")
  1001. reloadsound(prt1,1)
  1002. for i = 0 , 1 , 0.3 do
  1003. wait(0)
  1004. RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(-0.6*i+1.6,0,0.3*i-1)
  1005. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1006. end
  1007. for i = 0 , 1 , 0.3 do
  1008. wait(0)
  1009. RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(0.6*i-0.6+1.6,0,-0.3*i+0.3-1)
  1010. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1011. end
  1012. bullet4.Parent = nil
  1013. prt9.BrickColor = BrickColor.new("New Yeller")
  1014. reloadsound(prt1,1)
  1015. for i = 0 , 1 , 0.3 do
  1016. wait(0)
  1017. RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(-0.6*i+1.6,0,0.3*i-1)
  1018. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1019. end
  1020. for i = 0 , 1 , 0.3 do
  1021. wait(0)
  1022. RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(0.6*i-0.6+1.6,0,-0.3*i+0.3-1)
  1023. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1024. end
  1025. bullet5.Parent = nil
  1026. prt10.BrickColor = BrickColor.new("New Yeller")
  1027. reloadsound(prt1,1)
  1028. for i = 0 , 1 , 0.3 do
  1029. wait(0)
  1030. RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(-0.6*i+1.6,0,0.3*i-1)
  1031. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1032. end
  1033. for i = 0 , 1 , 0.3 do
  1034. wait(0)
  1035. RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(0.6*i-0.6+1.6,0,-0.3*i+0.3-1)
  1036. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1037. end
  1038. bullet6.Parent = nil
  1039. prt11.BrickColor = BrickColor.new("New Yeller")
  1040. reloadsound(prt1,1)
  1041. for i = 0 , 1 , 0.1 do
  1042. wait(0)
  1043. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0.1*i-0.5-0.7, -1.57) * CFrame.new(0, 1, 0)
  1044. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.47*i+0.1+1,-1*i+1,-0.7*i+0.7)
  1045. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1046. RW.C0 = CFrame.new(-0.8*i+0.8,0.5,-0.3*i-0.7) * CFrame.fromEulerAnglesXYZ(0.3*i+1.6,0,-1)
  1047. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1048. end
  1049. bulletshoot()
  1050. boomeffect()
  1051. prt9.BrickColor = BrickColor.new("Black")
  1052. shootsound(prt1,1.2)
  1053. for i = 0 , 1 , 0.2 do
  1054. wait(0)
  1055. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i+1.57,0,0)
  1056. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1057. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(0.5*i+1.9,0,-1)
  1058. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1059. end
  1060. for i = 0 , 1 , 0.2 do
  1061. wait(0)
  1062. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,1*i,0) * CFrame.new(0.4,0.5,0)
  1063. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.07,0,0)
  1064. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1065. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.4,0,-1)
  1066. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1067. end
  1068. bulletshoot()
  1069. boomeffect()
  1070. prt10.BrickColor = BrickColor.new("Black")
  1071. shootsound(prt1,1.2)
  1072. for i = 0 , 1 , 0.2 do
  1073. wait(0)
  1074. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i+1.57,0,0)
  1075. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1076. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(0.5*i+1.9,0,-1)
  1077. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1078. end
  1079. for i = 0 , 1 , 0.2 do
  1080. wait(0)
  1081. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,1*i+1,0) * CFrame.new(0.4,0.5,0)
  1082. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.07,0,0)
  1083. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1084. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.4,0,-1)
  1085. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1086. end
  1087. bulletshoot()
  1088. boomeffect()
  1089. prt11.BrickColor = BrickColor.new("Black")
  1090. shootsound(prt1,1.2)
  1091. for i = 0 , 1 , 0.2 do
  1092. wait(0)
  1093. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i+1.57,0,0)
  1094. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1095. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(0.5*i+1.9,0,-1)
  1096. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1097. end
  1098. for i = 0 , 1 , 0.2 do
  1099. wait(0)
  1100. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,1*i+2,0) * CFrame.new(0.4,0.5,0)
  1101. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.07,0,0)
  1102. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1103. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.4,0,-1)
  1104. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1105. end
  1106. bulletshoot()
  1107. boomeffect()
  1108. prt6.BrickColor = BrickColor.new("Black")
  1109. shootsound(prt1,1.2)
  1110. for i = 0 , 1 , 0.2 do
  1111. wait(0)
  1112. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i+1.57,0,0)
  1113. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1114. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(0.5*i+1.9,0,-1)
  1115. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1116. end
  1117. for i = 0 , 1 , 0.2 do
  1118. wait(0)
  1119. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,1*i+3,0) * CFrame.new(0.4,0.5,0)
  1120. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.07,0,0)
  1121. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1122. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.4,0,-1)
  1123. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1124. end
  1125. bulletshoot()
  1126. boomeffect()
  1127. prt7.BrickColor = BrickColor.new("Black")
  1128. shootsound(prt1,1.2)
  1129. for i = 0 , 1 , 0.2 do
  1130. wait(0)
  1131. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i+1.57,0,0)
  1132. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1133. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(0.5*i+1.9,0,-1)
  1134. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1135. end
  1136. for i = 0 , 1 , 0.2 do
  1137. wait(0)
  1138. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,1*i+4,0) * CFrame.new(0.4,0.5,0)
  1139. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.07,0,0)
  1140. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1141. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.4,0,-1)
  1142. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1143. end
  1144. bulletshoot()
  1145. boomeffect()
  1146. prt8.BrickColor = BrickColor.new("Black")
  1147. shootsound2(prt1,1.2)
  1148. for i = 0 , 1 , 0.2 do
  1149. wait(0)
  1150. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i+1.57,0,0)
  1151. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1152. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(0.5*i+1.9,0,-1)
  1153. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1154. end
  1155. for i = 0 , 1 , 0.2 do
  1156. wait(0)
  1157. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,1*i+5,0) * CFrame.new(0.4,0.5,0)
  1158. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.07,0,0)
  1159. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1160. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.4,0,-1)
  1161. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1162. end
  1163. for i = 0 , 1 , 0.1 do
  1164. wait(0)
  1165. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -0.5*i+0.5-0.7, -1.57) * CFrame.new(0, 1, 0)
  1166. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.4,0.5,0)
  1167. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.57*i+1.57,0,0)
  1168. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1169. RW.C0 = CFrame.new(1.5*i,0.5,1*i-1) * CFrame.fromEulerAnglesXYZ(-1.9*i+1.9,0,1*i-1)
  1170. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1171. end
  1172. end
  1173. function sniper()
  1174. for i = 0 , 1 , 0.15 do
  1175. wait(0)
  1176. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.4*i,0.5*i,-0.5*i)
  1177. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1178. end
  1179. local bullet1 = Instance.new("Part")
  1180. bullet1.formFactor = 1
  1181. bullet1.Parent = model1
  1182. bullet1.Reflectance = 0.2
  1183. bullet1.CanCollide = false
  1184. bullet1.BrickColor = BrickColor.new("New Yeller")
  1185. bullet1.Name = "Bullet1"
  1186. bullet1.Size = Vector3.new(1,1,1)
  1187. bullet1.Position = Torso.Position
  1188. local bulmesh1 = Instance.new("CylinderMesh")
  1189. bulmesh1.Parent = bullet1
  1190. bulmesh1.Scale = Vector3.new(1.1,1.1,0.3)
  1191. local bulweld1 = Instance.new("Weld")
  1192. bulweld1.Parent = bullet1
  1193. bulweld1.Part0 = bullet1
  1194. bulweld1.Part1 = RightArm
  1195. bulweld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.2,1,0.3)
  1196. sparkles1 = Instance.new("Sparkles")
  1197. sparkles1.Name = "Sparkles1"
  1198. sparkles1.Color = Color3.new(1,1,0)
  1199. sparkles1.Parent = bullet1
  1200. for i = 0 , 1 , 0.1 do
  1201. wait(0)
  1202. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -0.5*i-0.7, -1.57) * CFrame.new(0, 1, 0)
  1203. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.1*i+1,1*i,0.7*i)
  1204. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1205. RW.C0 = CFrame.new(-0.7*i+1.5,0.5,-0.7*i) * CFrame.fromEulerAnglesXYZ(2*i-0.4,-0.5*i+0.5,-0.5*i-0.5)
  1206. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1207. end
  1208. bullet1.Parent = nil
  1209. prt9.BrickColor = BrickColor.new("New Yeller")
  1210. prt9.Reflectance = 0.2
  1211. sparkles1.Parent = prt9
  1212. snipersound(prt1,1)
  1213. for i = 0 , 1 , 0.3 do
  1214. wait(0)
  1215. RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(-0.6*i+1.6,0,0.3*i-1)
  1216. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1217. end
  1218. for i = 0 , 1 , 0.3 do
  1219. wait(0)
  1220. RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(0.6*i-0.6+1.6,0,-0.3*i+0.3-1)
  1221. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1222. end
  1223. for i = 0 , 1 , 0.07 do
  1224. wait(0)
  1225. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0.1*i-0.5-0.7, -1.57) * CFrame.new(0, 1, 0)
  1226. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.47*i+0.1+1,-1*i+1,-0.7*i+0.7)
  1227. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1228. RW.C0 = CFrame.new(-0.8*i+0.8,0.5,-0.3*i-0.7) * CFrame.fromEulerAnglesXYZ(0.3*i+1.6,0,-1)
  1229. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1230. end
  1231. local lazor = Instance.new("Part")
  1232. lazor.formFactor = 1
  1233. lazor.Parent = workspace
  1234. lazor.Transparency = 0.5
  1235. lazor.CanCollide = false
  1236. lazor.BrickColor = BrickColor.new("Bright red")
  1237. lazor.Name = "Lazorz"
  1238. lazor.Size = Vector3.new(1,1,1)
  1239. lazor.Position = Torso.Position
  1240. local lazmsh = Instance.new("CylinderMesh")
  1241. lazmsh.Parent = lazor
  1242. lazmsh.Scale = Vector3.new(1.1,1340,0.3)
  1243. coroutine.resume(coroutine.create(function()
  1244. while lazor.Parent ~= nil do
  1245. wait()
  1246. lazor.CFrame = prt13.CFrame * CFrame.new(0,-800,0)
  1247. end
  1248. end))
  1249. wait(0.5)
  1250. for i = 0 , 1 , 0.07 do
  1251. wait(0)
  1252. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0.05*i+0.1-0.5-0.7, -1.57) * CFrame.new(0, 1, 0)
  1253. end
  1254. wait(0.2)
  1255. sniperbulletshoot()
  1256. boomeffect()
  1257. prt9.BrickColor = BrickColor.new("Black")
  1258. prt9.Reflectance = 0
  1259. sparkles1.Parent = nil
  1260. lazor.Parent = nil
  1261. snipersound2(prt1,1)
  1262. for i = 0 , 1 , 0.2 do
  1263. wait(0)
  1264. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i+1.57,0,0)
  1265. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1266. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(0.5*i+1.9,0,-1)
  1267. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1268. end
  1269. for i = 0 , 1 , 0.2 do
  1270. wait(0)
  1271. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,1*i,0) * CFrame.new(0.4,0.5,0)
  1272. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.07,0,0)
  1273. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1274. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.4,0,-1)
  1275. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1276. end
  1277. for i = 0 , 1 , 0.1 do
  1278. wait(0)
  1279. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -0.5*i+0.5-0.7, -1.57) * CFrame.new(0, 1, 0)
  1280. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.4,0.5,0)
  1281. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.57*i+1.57,0,0)
  1282. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1283. RW.C0 = CFrame.new(1.5*i,0.5,1*i-1) * CFrame.fromEulerAnglesXYZ(-1.9*i+1.9,0,1*i-1)
  1284. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1285. end
  1286. end
  1287. function kerbewmshot()
  1288. for i = 0 , 1 , 0.15 do
  1289. wait(0)
  1290. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.4*i,0.5*i,-0.5*i)
  1291. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1292. end
  1293. local bullet1 = Instance.new("Part")
  1294. bullet1.formFactor = 1
  1295. bullet1.Parent = model1
  1296. bullet1.CanCollide = false
  1297. bullet1.BrickColor = BrickColor.new("Bright red")
  1298. bullet1.Name = "Bullet1"
  1299. bullet1.Size = Vector3.new(1,1,1)
  1300. bullet1.Position = Torso.Position
  1301. local bulmesh1 = Instance.new("CylinderMesh")
  1302. bulmesh1.Parent = bullet1
  1303. bulmesh1.Scale = Vector3.new(1.1,1.1,0.3)
  1304. local bulweld1 = Instance.new("Weld")
  1305. bulweld1.Parent = bullet1
  1306. bulweld1.Part0 = bullet1
  1307. bulweld1.Part1 = RightArm
  1308. bulweld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.2,1,0.3)
  1309. for i = 0 , 1 , 0.1 do
  1310. wait(0)
  1311. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -0.5*i-0.7, -1.57) * CFrame.new(0, 1, 0)
  1312. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.1*i+1,1*i,0.7*i)
  1313. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1314. RW.C0 = CFrame.new(-0.7*i+1.5,0.5,-0.7*i) * CFrame.fromEulerAnglesXYZ(2*i-0.4,-0.5*i+0.5,-0.5*i-0.5)
  1315. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1316. end
  1317. bullet1.Parent = nil
  1318. prt9.BrickColor = BrickColor.new("Bright red")
  1319. rocketreload(prt1,1)
  1320. for i = 0 , 1 , 0.3 do
  1321. wait(0)
  1322. RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(-0.6*i+1.6,0,0.3*i-1)
  1323. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1324. end
  1325. for i = 0 , 1 , 0.3 do
  1326. wait(0)
  1327. RW.C0 = CFrame.new(0.8,0.5,-0.7) * CFrame.fromEulerAnglesXYZ(0.6*i-0.6+1.6,0,-0.3*i+0.3-1)
  1328. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1329. end
  1330. for i = 0 , 1 , 0.07 do
  1331. wait(0)
  1332. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0.1*i-0.5-0.7, -1.57) * CFrame.new(0, 1, 0)
  1333. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.47*i+0.1+1,-1*i+1,-0.7*i+0.7)
  1334. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1335. RW.C0 = CFrame.new(-0.8*i+0.8,0.5,-0.3*i-0.7) * CFrame.fromEulerAnglesXYZ(0.3*i+1.6,0,-1)
  1336. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1337. end
  1338. wait(0.5)
  1339. bewmshot()
  1340. boomeffect()
  1341. prt9.BrickColor = BrickColor.new("Black")
  1342. rocketshoot(prt1,1)
  1343. for i = 0 , 1 , 0.2 do
  1344. wait(0)
  1345. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i+1.57,0,0)
  1346. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1347. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(0.5*i+1.9,0,-1)
  1348. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1349. end
  1350. for i = 0 , 1 , 0.2 do
  1351. wait(0)
  1352. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,1*i,0) * CFrame.new(0.4,0.5,0)
  1353. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.07,0,0)
  1354. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1355. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-0.5*i+2.4,0,-1)
  1356. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1357. end
  1358. for i = 0 , 1 , 0.1 do
  1359. wait(0)
  1360. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -0.5*i+0.5-0.7, -1.57) * CFrame.new(0, 1, 0)
  1361. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.4,0.5,0)
  1362. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.57*i+1.57,0,0)
  1363. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1364. RW.C0 = CFrame.new(1.5*i,0.5,1*i-1) * CFrame.fromEulerAnglesXYZ(-1.9*i+1.9,0,1*i-1)
  1365. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1366. end
  1367. end
  1368. function crush()
  1369. for i = 0 , 1 , 0.07 do
  1370. wait(0)
  1371. LW.C0 = CFrame.new(0.5*i-1.5,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(0.5*i+1,0,0.7*i)
  1372. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1373. RW.C0 = CFrame.new(-0.5*i+1.5,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(1.5*i,0,-0.7*i)
  1374. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1375. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 1.2*i-0.7, -1.57) * CFrame.new(0, 1, 0)
  1376. end
  1377. for i = 0 , 1 , 0.1 do
  1378. wait(0)
  1379. prt1.Reflectance = prt1.Reflectance + 0.1
  1380. prt2.Reflectance = prt2.Reflectance + 0.1
  1381. prt3.Reflectance = prt3.Reflectance + 0.1
  1382. prt4.Reflectance = prt4.Reflectance + 0.1
  1383. prt5.Reflectance = prt5.Reflectance + 0.1
  1384. prt6.Reflectance = prt6.Reflectance + 0.1
  1385. prt7.Reflectance = prt7.Reflectance + 0.1
  1386. prt8.Reflectance = prt8.Reflectance + 0.1
  1387. prt9.Reflectance = prt9.Reflectance + 0.1
  1388. prt10.Reflectance = prt10.Reflectance + 0.1
  1389. prt11.Reflectance = prt11.Reflectance + 0.1
  1390. prt12.Reflectance = prt12.Reflectance + 0.1
  1391. prt13.Reflectance = prt13.Reflectance + 0.1
  1392. prt13a.Reflectance = prt13a.Reflectance + 0.1
  1393. prt14.Reflectance = prt14.Reflectance + 0.1
  1394. prt15.Reflectance = prt15.Reflectance + 0.1
  1395. end
  1396. wait(0.3)
  1397. for i = 0 , 1 , 0.07 do
  1398. wait(0)
  1399. LW.C0 = CFrame.new(-0.5*i-1,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(1*i+1.5,0,-0.7*i+0.7)
  1400. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1401. RW.C0 = CFrame.new(0.5*i+1,0.5,0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(-0.5*i+1.5,0,0.7*i-0.7)
  1402. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1403. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0.5, -1.57) * CFrame.new(0, 1, 0)
  1404. end
  1405. local con = prt3.Touched:connect(fixOT)
  1406. local con2 = prt4.Touched:connect(fixOT)
  1407. crushsounds(prt1)
  1408. for i = 0 , 1 , 0.2 do
  1409. wait(0)
  1410. effect()
  1411. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1.8*i+2.5,0,0)
  1412. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1413. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-2*i+1,0,0)
  1414. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1415. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -1.5*i+0.5, -1.57) * CFrame.new(0, 1, 0)
  1416. end
  1417. con:disconnect()
  1418. con2:disconnect()
  1419. wait(0.3)
  1420. for i = 0 , 1 , 0.1 do
  1421. wait(0)
  1422. prt1.Reflectance = prt1.Reflectance - 0.1
  1423. prt2.Reflectance = prt2.Reflectance - 0.1
  1424. prt3.Reflectance = prt3.Reflectance - 0.1
  1425. prt4.Reflectance = prt4.Reflectance - 0.1
  1426. prt5.Reflectance = prt5.Reflectance - 0.1
  1427. prt6.Reflectance = prt6.Reflectance - 0.1
  1428. prt7.Reflectance = prt7.Reflectance - 0.1
  1429. prt8.Reflectance = prt8.Reflectance - 0.1
  1430. prt9.Reflectance = prt9.Reflectance - 0.1
  1431. prt10.Reflectance = prt10.Reflectance - 0.1
  1432. prt11.Reflectance = prt11.Reflectance - 0.1
  1433. prt12.Reflectance = prt12.Reflectance - 0.1
  1434. prt13.Reflectance = prt13.Reflectance - 0.1
  1435. prt13a.Reflectance = prt13a.Reflectance - 0.1
  1436. prt14.Reflectance = prt14.Reflectance - 0.1
  1437. prt15.Reflectance = prt15.Reflectance - 0.1
  1438. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.3*i+0.7,0,0)
  1439. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1440. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1*i-1,0,0)
  1441. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1442. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0.3*i-1, -1.57) * CFrame.new(0, 1, 0)
  1443. end
  1444. end
  1445. function elecshoot()
  1446. for i = 0 , 1 , 0.07 do
  1447. wait(0)
  1448. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3.5*i,0,1*i)
  1449. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1450. end
  1451. unequipweld()
  1452. for i = 0 , 1 , 0.07 do
  1453. wait(0)
  1454. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1*i+3.5,0,0.1*i+1)
  1455. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1456. end
  1457. model2.Parent = modelzorz
  1458. wld16.Parent = prt16
  1459. wld17.Parent = prt17
  1460. wld18.Parent = prt18
  1461. wld19.Parent = prt19
  1462. wld20.Parent = prt20
  1463. wld21.Parent = prt21
  1464. wld22.Parent = prt22
  1465. wld23.Parent = prt23
  1466. wld24.Parent = prt24
  1467. wld25.Parent = prt25
  1468. wld26.Parent = prt26
  1469. wld27.Parent = prt27
  1470. wld28.Parent = prt28
  1471. wld29.Parent = prt29
  1472. wld30.Parent = prt30
  1473. wld31.Parent = prt31
  1474. local c = model2:children()
  1475. for i=1,#c do
  1476. c[i].Transparency = 1
  1477. end
  1478. coroutine.resume(coroutine.create(function()
  1479. local c = model2:children()
  1480. for i = 0,1,0.1 do
  1481. wait()
  1482. prt16.Transparency = prt16.Transparency - 0.1
  1483. prt17.Transparency = prt17.Transparency - 0.1
  1484. prt18.Transparency = prt18.Transparency - 0.1
  1485. prt19.Transparency = prt19.Transparency - 0.1
  1486. prt20.Transparency = prt20.Transparency - 0.1
  1487. prt21.Transparency = prt21.Transparency - 0.1
  1488. prt22.Transparency = prt22.Transparency - 0.1
  1489. prt23.Transparency = prt23.Transparency - 0.1
  1490. prt24.Transparency = prt24.Transparency - 0.1
  1491. prt25.Transparency = prt25.Transparency - 0.1
  1492. prt26.Transparency = prt26.Transparency - 0.1
  1493. prt27.Transparency = prt27.Transparency - 0.1
  1494. prt28.Transparency = prt28.Transparency - 0.1
  1495. prt29.Transparency = prt29.Transparency - 0.1
  1496. prt30.Transparency = prt30.Transparency - 0.1
  1497. prt31.Transparency = prt31.Transparency - 0.1
  1498. end
  1499. end))
  1500. prt30.BrickColor = BrickColor.new("Bright blue")
  1501. equipweld2()
  1502. for i = 0 , 1 , 0.07 do
  1503. wait(0)
  1504. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-2.93*i+4.5,0,-1.1*i+1.1)
  1505. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1506. RW.C0 = CFrame.new(-1.5*i+1.5,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(1*i,0,-2*i)
  1507. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1508. end
  1509. wait(0.3)
  1510. boomeffect2()
  1511. cannonsound(prt24,0.7)
  1512. elecshot()
  1513. for i = 0 , 1 , 0.15 do
  1514. wait(0)
  1515. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1*i+1.57,0,0)
  1516. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1517. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(2*i+1,0,1*i-2)
  1518. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1519. end
  1520. for i = 0 , 1 , 0.15 do
  1521. wait(0)
  1522. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1*i+2.57,0,0)
  1523. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1524. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(-2*i+3,0,-1*i-1)
  1525. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1526. end
  1527. wait(0.5)
  1528. coroutine.resume(coroutine.create(function()
  1529. for i = 0,1,0.1 do
  1530. wait()
  1531. prt16.Transparency = prt16.Transparency + 0.1
  1532. prt17.Transparency = prt17.Transparency + 0.1
  1533. prt18.Transparency = prt18.Transparency + 0.1
  1534. prt19.Transparency = prt19.Transparency + 0.1
  1535. prt20.Transparency = prt20.Transparency + 0.1
  1536. prt21.Transparency = prt21.Transparency + 0.1
  1537. prt22.Transparency = prt22.Transparency + 0.1
  1538. prt23.Transparency = prt23.Transparency + 0.1
  1539. prt24.Transparency = prt24.Transparency + 0.1
  1540. prt25.Transparency = prt25.Transparency + 0.1
  1541. prt26.Transparency = prt26.Transparency + 0.1
  1542. prt27.Transparency = prt27.Transparency + 0.1
  1543. prt28.Transparency = prt28.Transparency + 0.1
  1544. prt29.Transparency = prt29.Transparency + 0.1
  1545. prt30.Transparency = prt30.Transparency + 0.1
  1546. prt31.Transparency = prt31.Transparency + 0.1
  1547. end
  1548. end))
  1549. for i = 0 , 1 , 0.07 do
  1550. wait(0)
  1551. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2.93*i+1.57,0,1.1*i)
  1552. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1553. RW.C0 = CFrame.new(1.5*i,0.5,1*i-1) * CFrame.fromEulerAnglesXYZ(-1*i+1,0,2*i-2)
  1554. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1555. end
  1556. model2.Parent = nil
  1557. unequipweld2()
  1558. for i = 0 , 1 , 0.07 do
  1559. wait(0)
  1560. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1*i+4.5,0,-0.1*i+1.1)
  1561. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1562. end
  1563. equipweld()
  1564. for i = 0 , 1 , 0.07 do
  1565. wait(0)
  1566. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-2.5*i+3.5,0,-1*i+1)
  1567. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1568. end
  1569. end
  1570. function laz0rshoot() --TROLOLOL
  1571. for i = 0 , 1 , 0.07 do
  1572. wait(0)
  1573. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(180)*i,0,0)
  1574. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1575. end
  1576. wld32a.Parent = prt32a
  1577. wld33.Parent = prt33
  1578. wld34.Parent = prt34
  1579. wld35.Parent = prt35
  1580. wld36.Parent = prt36
  1581. wld37.Parent = prt37
  1582. wld38.Parent = prt38
  1583. wld39.Parent = prt39
  1584. model3.Parent = modelzorz
  1585. local c = model3:children()
  1586. for i=1,#c do
  1587. c[i].Transparency = 1
  1588. end
  1589. for i=1,#c do
  1590. for q = 0,1,0.2 do
  1591. wait()
  1592. c[i].Transparency = c[i].Transparency - 0.2
  1593. end
  1594. end
  1595. for i = 0 , 1 , 0.07 do
  1596. wait(0)
  1597. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i+math.rad(180),0,0)
  1598. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1599. end
  1600. laz0rshot()
  1601. wait(0.5)
  1602. coroutine.resume(coroutine.create(function()
  1603. local c = model3:children()
  1604. for i=1,#c do
  1605. wait()
  1606. coroutine.resume(coroutine.create(function()
  1607. for q = 0,1,0.2 do
  1608. wait()
  1609. c[i].Transparency = c[i].Transparency + 0.2
  1610. end
  1611. end))
  1612. end
  1613. model3.Parent = nil
  1614. end))
  1615. for i = 0 , 1 , 0.07 do
  1616. wait(0)
  1617. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i+math.rad(90),0,0)
  1618. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1619. end
  1620. end
  1621. function tornadoskates()
  1622. model4.Parent = modelzorz
  1623. wld40.Parent = prt40
  1624. prt40.Transparency = 1
  1625. for i = 0 , 0.4 , 0.1 do
  1626. wait(0)
  1627. prt40.Transparency = prt40.Transparency - 0.1
  1628. end
  1629. end
  1630. function OT(hit)
  1631. if hit.Parent == nil then return end
  1632. local hum = hit.Parent:findFirstChild("Humanoid")
  1633. if hum ~= nil and hum ~= Character.Humanoid then
  1634. hum:TakeDamage(damage)
  1635. end
  1636. end
  1637. function fixOT(hit)
  1638. if hit.Parent == nil then return end
  1639. local hum = hit.Parent:findFirstChild("Humanoid")
  1640. if hum ~= nil and hum ~= Character.Humanoid then
  1641. hum:TakeDamage(damage)
  1642. hum.WalkSpeed = 16
  1643. hum.MaxHealth = 100
  1644. c = hum.Parent:GetChildren()
  1645. for i = 1,#c do
  1646. if c[i].className == "Part" then
  1647. local SlashSound = Instance.new("Sound")
  1648. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2974000"
  1649. SlashSound.Parent = prt1
  1650. SlashSound.Volume = 0.1
  1651. SlashSound.Pitch = 1.1
  1652. SlashSound:play()
  1653. coroutine.resume(coroutine.create(function()
  1654. wait(1)
  1655. SlashSound.Parent = nil
  1656. end))
  1657. c[i].Transparency = 0
  1658. c[i].Reflectance = 0
  1659. end
  1660. if c[i].className == "ForceField" then
  1661. c[i]:Remove()
  1662. end
  1663. end
  1664. end
  1665. end
  1666. function ss(parent,pitch)
  1667. local SlashSound = Instance.new("Sound")
  1668. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  1669. SlashSound.Parent = parent
  1670. SlashSound.Volume = .7
  1671. SlashSound.Pitch = pitch
  1672. SlashSound:play()
  1673. coroutine.resume(coroutine.create(function()
  1674. wait(1)
  1675. SlashSound.Parent = nil
  1676. end))
  1677. end
  1678. function sss(parent,pitch)
  1679. local SlashSound = Instance.new("Sound")
  1680. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  1681. SlashSound.Parent = parent
  1682. SlashSound.Volume = .7
  1683. SlashSound.Pitch = pitch
  1684. SlashSound:play()
  1685. coroutine.resume(coroutine.create(function()
  1686. wait(1)
  1687. SlashSound.Parent = nil
  1688. end))
  1689. end
  1690. function uss(parent,pitch)
  1691. local SlashSound = Instance.new("Sound")
  1692. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  1693. SlashSound.Parent = parent
  1694. SlashSound.Volume = .7
  1695. SlashSound.Pitch = pitch
  1696. SlashSound:play()
  1697. coroutine.resume(coroutine.create(function()
  1698. wait(1)
  1699. SlashSound.Parent = nil
  1700. end))
  1701. end
  1702. function reloadsound(parent,pitch)
  1703. local SlashSound = Instance.new("Sound")
  1704. SlashSound.SoundId = "http://roblox.com/asset/?id=10209834"
  1705. SlashSound.Parent = parent
  1706. SlashSound.Volume = .7
  1707. SlashSound.Pitch = pitch
  1708. SlashSound:play()
  1709. coroutine.resume(coroutine.create(function()
  1710. wait(1)
  1711. SlashSound.Parent = nil
  1712. end))
  1713. end
  1714. function shootsound(parent,pitch)
  1715. local SlashSound = Instance.new("Sound")
  1716. SlashSound.SoundId = "http://roblox.com/asset/?id=10209803"
  1717. SlashSound.Parent = parent
  1718. SlashSound.Volume = .7
  1719. SlashSound.Pitch = pitch
  1720. SlashSound:play()
  1721. coroutine.resume(coroutine.create(function()
  1722. wait(0.3)
  1723. SlashSound:Stop()
  1724. wait(1)
  1725. SlashSound.Parent = nil
  1726. end))
  1727. end
  1728. function shootsound2(parent,pitch)
  1729. local SlashSound = Instance.new("Sound")
  1730. SlashSound.SoundId = "http://roblox.com/asset/?id=10209803"
  1731. SlashSound.Parent = parent
  1732. SlashSound.Volume = .7
  1733. SlashSound.Pitch = pitch
  1734. SlashSound:play()
  1735. coroutine.resume(coroutine.create(function()
  1736. wait(1)
  1737. SlashSound.Parent = nil
  1738. end))
  1739. end
  1740. function snipersound(parent,pitch)
  1741. local SlashSound = Instance.new("Sound")
  1742. SlashSound.SoundId = "http://roblox.com/asset/?id=10209881"
  1743. SlashSound.Parent = parent
  1744. SlashSound.Volume = .7
  1745. SlashSound.Pitch = pitch
  1746. SlashSound:play()
  1747. coroutine.resume(coroutine.create(function()
  1748. wait(3)
  1749. SlashSound.Parent = nil
  1750. end))
  1751. end
  1752. function snipersound2(parent,pitch)
  1753. local SlashSound = Instance.new("Sound")
  1754. SlashSound.SoundId = "http://roblox.com/asset/?id=10209875"
  1755. SlashSound.Parent = parent
  1756. SlashSound.Volume = .7
  1757. SlashSound.Pitch = pitch
  1758. SlashSound:play()
  1759. coroutine.resume(coroutine.create(function()
  1760. wait(3)
  1761. SlashSound.Parent = nil
  1762. end))
  1763. end
  1764. function rocketreload(parent,pitch)
  1765. local SlashSound = Instance.new("Sound")
  1766. SlashSound.SoundId = "http://roblox.com/asset/?id=10209813"
  1767. SlashSound.Parent = parent
  1768. SlashSound.Volume = .7
  1769. SlashSound.Pitch = pitch
  1770. SlashSound:play()
  1771. coroutine.resume(coroutine.create(function()
  1772. wait(3)
  1773. SlashSound.Parent = nil
  1774. end))
  1775. end
  1776. function rocketshoot(parent,pitch)
  1777. local SlashSound = Instance.new("Sound")
  1778. SlashSound.SoundId = "http://roblox.com/asset/?id=10209821"
  1779. SlashSound.Parent = parent
  1780. SlashSound.Volume = .7
  1781. SlashSound.Pitch = pitch
  1782. SlashSound:play()
  1783. coroutine.resume(coroutine.create(function()
  1784. wait(3)
  1785. SlashSound.Parent = nil
  1786. end))
  1787. end
  1788. function rocketbewmsound(parent,pitch)
  1789. local SlashSound = Instance.new("Sound")
  1790. SlashSound.SoundId = "http://roblox.com/asset/?id=10209236"
  1791. SlashSound.Parent = parent
  1792. SlashSound.Volume = .7
  1793. SlashSound.Pitch = pitch
  1794. SlashSound:play()
  1795. coroutine.resume(coroutine.create(function()
  1796. wait(3)
  1797. SlashSound.Parent = nil
  1798. end))
  1799. end
  1800. function crushsounds(parent)
  1801. local SlashSound = Instance.new("Sound")
  1802. SlashSound.SoundId = "http://roblox.com/asset/?id=10209268"
  1803. SlashSound.Parent = parent
  1804. SlashSound.Volume = .7
  1805. SlashSound.Pitch = 1
  1806. SlashSound:play()
  1807. coroutine.resume(coroutine.create(function()
  1808. wait(3)
  1809. SlashSound.Parent = nil
  1810. end))
  1811. local SlashSound = Instance.new("Sound")
  1812. SlashSound.SoundId = "http://roblox.com/asset/?id=10209588"
  1813. SlashSound.Parent = parent
  1814. SlashSound.Volume = .7
  1815. SlashSound.Pitch = 1
  1816. SlashSound:play()
  1817. coroutine.resume(coroutine.create(function()
  1818. wait(3)
  1819. SlashSound.Parent = nil
  1820. end))
  1821. local SlashSound = Instance.new("Sound")
  1822. SlashSound.SoundId = "http://roblox.com/asset/?id=10209596"
  1823. SlashSound.Parent = parent
  1824. SlashSound.Volume = .7
  1825. SlashSound.Pitch = 0.7
  1826. SlashSound:play()
  1827. coroutine.resume(coroutine.create(function()
  1828. wait(3)
  1829. SlashSound.Parent = nil
  1830. end))
  1831. end
  1832. function cannonsound(parent,pitch)
  1833. local SlashSound = Instance.new("Sound")
  1834. SlashSound.SoundId = "http://roblox.com/asset/?id=10209257"
  1835. SlashSound.Parent = parent
  1836. SlashSound.Volume = .7
  1837. SlashSound.Pitch = pitch
  1838. SlashSound:play()
  1839. coroutine.resume(coroutine.create(function()
  1840. wait(3)
  1841. SlashSound.Parent = nil
  1842. end))
  1843. end
  1844. function elecsound(parent,pitch)
  1845. local SlashSound = Instance.new("Sound")
  1846. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2800815"
  1847. SlashSound.Parent = parent
  1848. SlashSound.Volume = 1
  1849. SlashSound.Pitch = pitch
  1850. SlashSound:play()
  1851. coroutine.resume(coroutine.create(function()
  1852. wait(3)
  1853. SlashSound.Parent = nil
  1854. end))
  1855. end
  1856. function effect()
  1857. local clone = prt3:clone()
  1858. clone.Parent = workspace
  1859. clone.Anchored = true
  1860. clone.Transparency = 0.5
  1861. clone.Reflectance = 0
  1862. clone.Mesh.Scale = clone.Mesh.Scale + Vector3.new(0.1,0.1,0.1)
  1863. clone.BrickColor = BrickColor.new("White")
  1864. coroutine.resume(coroutine.create(function()
  1865. wait(0.25)
  1866. clone.Parent = nil
  1867. end))
  1868. local cloneb = prt4:clone()
  1869. cloneb.Parent = workspace
  1870. cloneb.Anchored = true
  1871. cloneb.Transparency = 0.5
  1872. cloneb.Reflectance = 0
  1873. cloneb.Mesh.Scale = cloneb.Mesh.Scale + Vector3.new(0.1,0.1,0.1)
  1874. cloneb.BrickColor = BrickColor.new("White")
  1875. coroutine.resume(coroutine.create(function()
  1876. wait(0.25)
  1877. cloneb.Parent = nil
  1878. end))
  1879. end
  1880. DBHit=function(hit,DB) --credits to turdulator for making this function :D
  1881. if hit.Parent==nil then
  1882. return
  1883. end
  1884. h=hit.Parent:FindFirstChild("Humanoid")
  1885. t=hit.Parent:FindFirstChild("Torso")
  1886. if h~=nil and t~=nil then
  1887. if h.Parent==Character then
  1888. return
  1889. end
  1890. h:TakeDamage(5)
  1891. vl=Instance.new("BodyVelocity")
  1892. vl.P=4500
  1893. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1894. velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)
  1895. vl.velocity=velocity*1.05+Vector3.new(0,3,0)
  1896. vl.Parent=t
  1897. game:GetService("Debris"):AddItem(vl,.2)
  1898. rl=Instance.new("BodyAngularVelocity")
  1899. rl.P=3000
  1900. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1901. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1902. rl.Parent=t
  1903. game:GetService("Debris"):AddItem(rl,.2)
  1904. else
  1905. if hit.CanCollide==false then
  1906. return
  1907. end
  1908. MagicCom:disconnect()
  1909. -- DBExplode(DB)
  1910. end
  1911. end
  1912. function boomeffect()
  1913. local mesh = Instance.new("SpecialMesh")
  1914. mesh.MeshType = "Sphere"
  1915. mesh.Scale = Vector3.new(0.2,0,0.2)
  1916. local shell = Instance.new("Part")
  1917. mesh.Parent = shell
  1918. shell.Anchored = true
  1919. shell.formFactor = 1
  1920. shell.Size = Vector3.new(2,2,2)
  1921. shell.CFrame = prt13.CFrame * CFrame.new(0,-0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,math.random(-50,50))
  1922. shell.Parent = game.workspace
  1923. shell.Transparency = 0
  1924. shell.BrickColor = BrickColor.new("Bright yellow")
  1925. shell.CanCollide = false
  1926. coroutine.resume(coroutine.create(function()
  1927. for i = 0 , 1 , 0.2 do
  1928. wait(0.1)
  1929. mesh.Scale = mesh.Scale + Vector3.new(0,0.3,0)
  1930. shell.Transparency = shell.Transparency + 0.2
  1931. end
  1932. shell.Transparency = 1
  1933. shell.Parent = nil
  1934. end))
  1935. local mesh2 = Instance.new("SpecialMesh")
  1936. mesh2.MeshType = "Sphere"
  1937. mesh2.Scale = Vector3.new(0.2,0,0.2)
  1938. local shell2 = Instance.new("Part")
  1939. mesh2.Parent = shell2
  1940. shell2.Anchored = true
  1941. shell2.formFactor = 1
  1942. shell2.Size = Vector3.new(2,2,2)
  1943. shell2.CFrame = shell.CFrame * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  1944. shell2.Parent = game.workspace
  1945. shell2.Transparency = 0
  1946. shell2.BrickColor = BrickColor.new("Bright yellow")
  1947. shell2.CanCollide = false
  1948. coroutine.resume(coroutine.create(function()
  1949. for i = 0 , 1 , 0.2 do
  1950. wait(0.1)
  1951. mesh2.Scale = mesh2.Scale + Vector3.new(0,0.3,0)
  1952. shell2.Transparency = shell2.Transparency + 0.2
  1953. end
  1954. shell2.Transparency = 1
  1955. shell2.Parent = nil
  1956. end))
  1957. local mesh3 = Instance.new("SpecialMesh")
  1958. mesh3.MeshType = "Sphere"
  1959. mesh3.Scale = Vector3.new(0.2,0,0.2)
  1960. local shell3 = Instance.new("Part")
  1961. mesh3.Parent = shell3
  1962. shell3.Anchored = true
  1963. shell3.formFactor = 1
  1964. shell3.Size = Vector3.new(2,2,2)
  1965. shell3.CFrame = prt13.CFrame * CFrame.new(0,-0.5,0)
  1966. shell3.Parent = game.workspace
  1967. shell3.Transparency = 0
  1968. shell3.BrickColor = BrickColor.new("Bright yellow")
  1969. shell3.CanCollide = false
  1970. coroutine.resume(coroutine.create(function()
  1971. for i = 0 , 1 , 0.2 do
  1972. wait(0.1)
  1973. mesh3.Scale = mesh3.Scale + Vector3.new(0,0.3,0)
  1974. shell3.Transparency = shell3.Transparency + 0.2
  1975. end
  1976. shell3.Transparency = 1
  1977. shell3.Parent = nil
  1978. end))
  1979. end
  1980. function boomeffect2()
  1981. local mesh = Instance.new("SpecialMesh")
  1982. mesh.Scale = Vector3.new(0.2,0,0.2)
  1983. mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
  1984. local shell = Instance.new("Part")
  1985. mesh.Parent = shell
  1986. shell.Anchored = true
  1987. shell.formFactor = 1
  1988. shell.Size = Vector3.new(2,2,2)
  1989. shell.CFrame = prt23.CFrame * CFrame.new(0,0.35,0)
  1990. shell.Parent = game.workspace
  1991. shell.Transparency = 0
  1992. shell.BrickColor = BrickColor.new("Bright blue")
  1993. shell.CanCollide = false
  1994. coroutine.resume(coroutine.create(function()
  1995. for i = 0 , 1 , 0.2 do
  1996. wait(0.1)
  1997. mesh.Scale = mesh.Scale + Vector3.new(0.3,0.5,0.3)
  1998. shell.CFrame = shell.CFrame * CFrame.new(0,0.3,0)
  1999. shell.Transparency = shell.Transparency + 0.2
  2000. end
  2001. shell.Transparency = 1
  2002. shell.Parent = nil
  2003. end))
  2004. end
  2005. DBHit1=function(hit,DB) --credits to turdulator for making this function :D
  2006. if hit.Parent==nil then
  2007. return
  2008. end
  2009. h=hit.Parent:FindFirstChild("Humanoid")
  2010. t=hit.Parent:FindFirstChild("Torso")
  2011. if h~=nil and t~=nil then
  2012. if h.Parent==Character then
  2013. return
  2014. end
  2015. h:TakeDamage(5)
  2016. vl=Instance.new("BodyVelocity")
  2017. vl.P=4500
  2018. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2019. velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)
  2020. vl.velocity=velocity*1.05+Vector3.new(0,3,0)
  2021. vl.Parent=t
  2022. game:GetService("Debris"):AddItem(vl,.2)
  2023. rl=Instance.new("BodyAngularVelocity")
  2024. rl.P=3000
  2025. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2026. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2027. rl.Parent=t
  2028. game:GetService("Debris"):AddItem(rl,.2)
  2029. else
  2030. if hit.CanCollide==false then
  2031. return
  2032. end
  2033. MagicCom:disconnect()
  2034. -- DBExplode(DB)
  2035. end
  2036. end
  2037. function bulletshoot()
  2038. local freakingbullet = prt6:Clone()
  2039. freakingbullet.formFactor = 1
  2040. freakingbullet.Parent = workspace
  2041. freakingbullet.CanCollide = false
  2042. freakingbullet.BrickColor = BrickColor.new("New Yeller")
  2043. freakingbullet.Name = "Bullet6"
  2044. freakingbullet.Size = Vector3.new(1,1,1)
  2045. freakingbullet.Position = Torso.Position
  2046. freakingbullet.CFrame = prt13.CFrame * CFrame.new(0,-0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2047. freakingbullet.Velocity = Torso.CFrame.lookVector * 100
  2048. local freakingbulmsh = Instance.new("CylinderMesh")
  2049. freakingbulmsh.Parent = freakingbullet
  2050. freakingbulmsh.Scale = Vector3.new(1.1,0.8,0.3)
  2051. local force = Instance.new("BodyForce")
  2052. force.Parent = freakingbullet
  2053. force.force = Vector3.new(0,240,0)
  2054. coroutine.resume(coroutine.create(function()
  2055. while freakingbullet.Parent ~= nil do --I use this function instead of the touch function :3
  2056. wait()
  2057. local c = game.Workspace:GetChildren();
  2058. for i = 1, #c do
  2059. local hum = c[i]:findFirstChild("Humanoid")
  2060. if hum ~= nil and hum.Health ~= 0 then
  2061. local head = c[i]:findFirstChild("Head");
  2062. if head ~= nil then
  2063. local targ = head.Position - freakingbullet.Position;
  2064. local mag = targ.magnitude;
  2065. if mag <= 4 and c[i].Name ~= Player.Name then
  2066. hum:TakeDamage(15)
  2067. v=Instance.new("BodyVelocity")
  2068. v.P=1000
  2069. v.maxForce=Vector3.new(math.huge,0,math.huge)
  2070. v.velocity=Torso.CFrame.lookVector*25+Torso.Velocity/1.05
  2071. v.Parent=hum.Parent.Torso
  2072. coroutine.resume(coroutine.create(function()
  2073. wait(0.3)
  2074. v.Parent = nil
  2075. end))
  2076. game:GetService("Debris"):AddItem(v,.1)
  2077. freakingbullet.Parent = nil
  2078. -- hum:TakeDamage(damage.Value + damageboost)
  2079. end
  2080. end
  2081. end
  2082. end
  2083. end
  2084. end))
  2085. --[[freakingbullet.Touched:connect(function(hit) kill(b,hit) end) --Freaking touched function wont work >:U
  2086. function kill(brick,hit)
  2087. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent.Name ~= "Dr4gOnh4ck3rz2" and hit.Name ~= "Base" and hit.Parent.Name ~= "AccountMoniter" then
  2088. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 5
  2089. freakingbullet.Parent = nil
  2090. end
  2091. end]]
  2092. coroutine.resume(coroutine.create(function()
  2093. freakingbullet.Position = Torso.Position
  2094. freakingbullet.CFrame = prt13.CFrame * CFrame.new(0,-0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2095. for i = 0,5,0.1 do
  2096. wait()
  2097. --freakingbullet.Touched:connect(function(hit) kill(b,hit) end)
  2098. freakingbullet.Velocity = Torso.CFrame.lookVector * 100
  2099. end
  2100. freakingbullet.Parent = nil
  2101. end))
  2102. end
  2103. function sniperbulletshoot()
  2104. local freakingbullet = prt6:Clone()
  2105. freakingbullet.formFactor = 1
  2106. freakingbullet.Reflectance = 0.2
  2107. freakingbullet.Parent = workspace
  2108. freakingbullet.CanCollide = false
  2109. freakingbullet.BrickColor = BrickColor.new("New Yeller")
  2110. freakingbullet.Name = "Bullet6"
  2111. freakingbullet.Size = Vector3.new(1,1,1)
  2112. freakingbullet.Position = Torso.Position
  2113. freakingbullet.CFrame = prt13.CFrame * CFrame.new(0,-0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2114. freakingbullet.Velocity = Torso.CFrame.lookVector * 100
  2115. local freakingbulmsh = Instance.new("CylinderMesh")
  2116. freakingbulmsh.Parent = freakingbullet
  2117. freakingbulmsh.Scale = Vector3.new(1.1,0.8,0.3)
  2118. local force = Instance.new("BodyForce")
  2119. force.Parent = freakingbullet
  2120. force.force = Vector3.new(0,240,0)
  2121. sparkles = Instance.new("Sparkles")
  2122. sparkles.Name = "Sparkles"
  2123. sparkles.Color = Color3.new(1,1,0)
  2124. sparkles.Parent = freakingbullet
  2125. coroutine.resume(coroutine.create(function()
  2126. while freakingbullet.Parent ~= nil do --I use this function instead of the touch function :3
  2127. wait()
  2128. local c = game.Workspace:GetChildren();
  2129. for i = 1, #c do
  2130. local hum = c[i]:findFirstChild("Humanoid")
  2131. if hum ~= nil and hum.Health ~= 0 then
  2132. local head = c[i]:findFirstChild("Head");
  2133. if head ~= nil then
  2134. local targ = head.Position - freakingbullet.Position;
  2135. local mag = targ.magnitude;
  2136. if mag <= 4 and c[i].Name ~= Player.Name then
  2137. hum:TakeDamage(50)
  2138. freakingbullet.Parent = nil
  2139. -- hum:TakeDamage(damage.Value + damageboost)
  2140. end
  2141. end
  2142. end
  2143. end
  2144. end
  2145. end))
  2146. --[[freakingbullet.Touched:connect(function(hit) kill(b,hit) end) --Freaking touched function wont work >:U
  2147. function kill(brick,hit)
  2148. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent.Name ~= "Dr4gOnh4ck3rz2" and hit.Name ~= "Base" and hit.Parent.Name ~= "AccountMoniter" then
  2149. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 5
  2150. freakingbullet.Parent = nil
  2151. end
  2152. end]]
  2153. coroutine.resume(coroutine.create(function()
  2154. freakingbullet.Position = Torso.Position
  2155. freakingbullet.CFrame = prt13.CFrame * CFrame.new(0,-0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2156. for i = 0,10,0.1 do
  2157. wait()
  2158. --freakingbullet.Touched:connect(function(hit) kill(b,hit) end)
  2159. freakingbullet.Velocity = Torso.CFrame.lookVector * 250
  2160. end
  2161. freakingbullet.Parent = nil
  2162. end))
  2163. end
  2164. function bewmshot()
  2165. local freakingbullet = prt6:Clone()
  2166. freakingbullet.formFactor = 1
  2167. freakingbullet.Parent = workspace
  2168. freakingbullet.CanCollide = false
  2169. freakingbullet.BrickColor = BrickColor.new("Bright red")
  2170. freakingbullet.Name = "Bullet6"
  2171. freakingbullet.Size = Vector3.new(1,1,1)
  2172. freakingbullet.Position = Torso.Position
  2173. freakingbullet.CFrame = prt13.CFrame * CFrame.new(0,-0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2174. freakingbullet.Velocity = Torso.CFrame.lookVector * 100
  2175. local freakingbulmsh = Instance.new("CylinderMesh")
  2176. freakingbulmsh.Parent = freakingbullet
  2177. freakingbulmsh.Scale = Vector3.new(1.1,0.8,0.3)
  2178. local force = Instance.new("BodyForce")
  2179. force.Parent = freakingbullet
  2180. force.force = Vector3.new(0,240,0)
  2181. coroutine.resume(coroutine.create(function()
  2182. while freakingbullet.Parent ~= nil do --I use this function instead of the touch function :3
  2183. wait()
  2184. local c = game.Workspace:GetChildren();
  2185. for i = 1, #c do
  2186. local hum = c[i]:findFirstChild("Humanoid")
  2187. if hum ~= nil and hum.Health ~= 0 then
  2188. local head = c[i]:findFirstChild("Head");
  2189. if head ~= nil then
  2190. local targ = head.Position - freakingbullet.Position;
  2191. local mag = targ.magnitude;
  2192. if mag <= 4 and c[i].Name ~= Player.Name then
  2193. hum:TakeDamage(20)
  2194. freakingbullet.Parent = nil
  2195. DBHit(hum.Parent.Torso,freakingbullet)
  2196. local bewm = Instance.new("Explosion")
  2197. bewm.Parent = workspace
  2198. bewm.BlastPressure = 0
  2199. bewm.Position = hum.Parent.Torso.Position
  2200. rocketbewmsound(prt1,1.2)
  2201. -- coroutine.resume(coroutine.create(function()
  2202. wait(0.5)
  2203. rocketbewmsound(prt1,1.2)
  2204. hum:TakeDamage(10)
  2205. DBHit(hum.Parent.Torso,freakingbullet)
  2206. local bewm = Instance.new("Explosion")
  2207. bewm.Parent = workspace
  2208. bewm.BlastPressure = 0
  2209. bewm.Position = hum.Parent.Torso.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2210. wait(0.5)
  2211. rocketbewmsound(prt1,1.2)
  2212. hum:TakeDamage(10)
  2213. DBHit(hum.Parent.Torso,freakingbullet)
  2214. local bewm = Instance.new("Explosion")
  2215. bewm.Parent = workspace
  2216. bewm.BlastPressure = 0
  2217. bewm.Position = hum.Parent.Torso.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2218. wait(0.5)
  2219. rocketbewmsound(prt1,1.2)
  2220. hum:TakeDamage(10)
  2221. DBHit(hum.Parent.Torso,freakingbullet)
  2222. local bewm = Instance.new("Explosion")
  2223. bewm.Parent = workspace
  2224. bewm.BlastPressure = 0
  2225. bewm.Position = hum.Parent.Torso.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2226. -- end))
  2227. -- hum:TakeDamage(damage.Value + damageboost)
  2228. end
  2229. end
  2230. end
  2231. end
  2232. end
  2233. end))
  2234. coroutine.resume(coroutine.create(function()
  2235. freakingbullet.Position = Torso.Position
  2236. freakingbullet.CFrame = prt13.CFrame * CFrame.new(0,-0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2237. for i = 0,5,0.1 do
  2238. wait()
  2239. --freakingbullet.Touched:connect(function(hit) kill(b,hit) end)
  2240. freakingbullet.Velocity = Torso.CFrame.lookVector * 100
  2241. end
  2242. freakingbullet.Parent = nil
  2243. end))
  2244. end
  2245. function elecshot()
  2246. local freakingbullet = prt6:Clone()
  2247. freakingbullet.formFactor = 1
  2248. freakingbullet.Parent = workspace
  2249. freakingbullet.CanCollide = false
  2250. freakingbullet.BrickColor = BrickColor.new("Bright blue")
  2251. freakingbullet.Name = "Bullet6"
  2252. freakingbullet.Size = Vector3.new(1,1,1)
  2253. freakingbullet.Position = Torso.Position
  2254. freakingbullet.CFrame = Torso.CFrame --* CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  2255. freakingbullet.Velocity = Torso.CFrame.lookVector * 100
  2256. local freakingbulmsh = Instance.new("CylinderMesh")
  2257. freakingbulmsh.Parent = freakingbullet
  2258. freakingbulmsh.Scale = Vector3.new(1.6,1.3,0.8)
  2259. local force = Instance.new("BodyForce")
  2260. force.Parent = freakingbullet
  2261. force.force = Vector3.new(0,235,0)
  2262. coroutine.resume(coroutine.create(function()
  2263. while freakingbullet.Parent ~= nil do --I use this function instead of the touch function :3
  2264. wait()
  2265. local c = game.Workspace:GetChildren();
  2266. for i = 1, #c do
  2267. local hum = c[i]:findFirstChild("Humanoid")
  2268. if hum ~= nil and hum.Health ~= 0 then
  2269. local head = c[i]:findFirstChild("Head");
  2270. if head ~= nil then
  2271. local targ = head.Position - freakingbullet.Position;
  2272. local mag = targ.magnitude;
  2273. if mag <= 5 and c[i].Name ~= Player.Name then
  2274. hum:TakeDamage(20)
  2275. coroutine.resume(coroutine.create(function()
  2276. for i = 0,6 do
  2277. wait(0.2)
  2278. hum:TakeDamage(3)
  2279. local me = Instance.new("SpecialMesh")
  2280. me.MeshType = "Sphere"
  2281. local wave = Instance.new("Part")
  2282. me.Parent = wave
  2283. wave.formFactor = 1
  2284. wave.Parent = workspace
  2285. wave.CanCollide = false
  2286. wave.Anchored = true
  2287. wave.BrickColor = BrickColor.new("Bright blue")
  2288. wave.Name = "Waveh"
  2289. wave.Size = Vector3.new(1,1,1)
  2290. wave.Position = Torso.Position
  2291. wave.CFrame = hum.Parent.Torso.CFrame * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2292. elecsound(wave,1.5)
  2293. coroutine.resume(coroutine.create(function()
  2294. for i = 0,1,0.1 do
  2295. wait()
  2296. me.Scale = me.Scale + Vector3.new(1,1,1)
  2297. wave.Transparency = wave.Transparency + 0.1
  2298. end
  2299. wave.Parent = nil
  2300. end))
  2301. DBHit(hum.Parent.Torso,freakingbullet)
  2302. end
  2303. end))
  2304. freakingbullet.Parent = nil
  2305. end
  2306. end
  2307. end
  2308. end
  2309. end
  2310. end))
  2311. coroutine.resume(coroutine.create(function()
  2312. freakingbullet.Position = Torso.Position
  2313. freakingbullet.CFrame = prt24.CFrame * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2314. for i = 0,5,0.1 do
  2315. wait()
  2316. --freakingbullet.Touched:connect(function(hit) kill(b,hit) end)
  2317. freakingbullet.Velocity = Torso.CFrame.lookVector * 100
  2318. end
  2319. freakingbullet.Parent = nil
  2320. end))
  2321. end
  2322. function laz0rshot()
  2323. local laz0rhed = Instance.new("Part")
  2324. laz0rhed.formFactor = 1
  2325. laz0rhed.Parent = workspace
  2326. laz0rhed.CanCollide = false
  2327. laz0rhed.BrickColor = BrickColor.new("New Yeller")
  2328. laz0rhed.Name = "HeadOfTehLaz0r"
  2329. laz0rhed.Size = Vector3.new(3,1,3)
  2330. laz0rhed.Position = Torso.Position
  2331. laz0rhed.CFrame = prt37.CFrame * CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  2332. local lazmsh = Instance.new("SpecialMesh")
  2333. lazmsh.MeshType = "Sphere"
  2334. lazmsh.Parent = laz0rhed
  2335. lazmsh.Scale = Vector3.new(0,0,0)
  2336. local lazwel = Instance.new("Weld")
  2337. lazwel.Parent = laz0rhed
  2338. lazwel.Part0 = laz0rhed
  2339. lazwel.Part1 = prt37
  2340. for i = 0 , 1 , 0.01 do
  2341. wait(0)
  2342. lazmsh.Scale = lazmsh.Scale + Vector3.new(0.01,0.04,0.01)
  2343. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i+1,0,0)
  2344. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2345. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),0.5*i,-0.1*i)
  2346. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2347. end
  2348. wait(0.3)
  2349. print(lazmsh.Scale)
  2350. laz0rhed.Parent = nil
  2351. local tehlaz0r = Instance.new("Part")
  2352. tehlaz0r.formFactor = 1
  2353. tehlaz0r.Parent = workspace
  2354. tehlaz0r.CanCollide = false
  2355. tehlaz0r.BrickColor = BrickColor.new("New Yeller")
  2356. tehlaz0r.Name = "LAAAAAAAAAAAAAAAZ0R"
  2357. tehlaz0r.Size = Vector3.new(3,5,3)
  2358. tehlaz0r.Position = Torso.Position
  2359. tehlaz0r.CFrame = prt37.CFrame --* CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  2360. tehlaz0r.Velocity = Torso.CFrame.lookVector * 50
  2361. --[[v=Instance.new("BodyVelocity")
  2362. v.P=3000
  2363. v.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2364. v.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)
  2365. v.Parent=tehlaz0r]]
  2366. local TLM = Instance.new("CylinderMesh")
  2367. TLM.Parent = tehlaz0r
  2368. TLM.Scale = lazmsh.Scale - Vector3.new(0,3.5,0)
  2369. lazwel.Part0 = laz0rhed
  2370. lazwel.Part1 = tehlaz0r
  2371. lazwel.C0 = CFrame.new(0, 4, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2372. local force = Instance.new("BodyForce")
  2373. force.Parent = tehlaz0r
  2374. force.force = Vector3.new(0,8480,0)
  2375. local c = game.Workspace:GetChildren();
  2376. for i = 1, #c do
  2377. local hum = c[i]:findFirstChild("Humanoid")
  2378. if hum ~= nil and hum.Health ~= 0 then
  2379. local head = c[i]:findFirstChild("Head");
  2380. if head ~= nil then
  2381. local targ = head.Position - tehlaz0r.Position;
  2382. local mag = targ.magnitude;
  2383. if mag <= 3 and c[i].Name ~= Player.Name then
  2384. coroutine.resume(coroutine.create(function()
  2385. for i = 0,1,0.1 do
  2386. wait()
  2387. DBHit(head.Parent.Torso,tehlaz0r)
  2388. end
  2389. end))
  2390. end
  2391. end
  2392. end
  2393. end
  2394. coroutine.resume(coroutine.create(function()
  2395. wait(20)
  2396. tehlaz0r.Parent = nil
  2397. end))
  2398. coroutine.resume(coroutine.create(function()
  2399. while tehlaz0r.Parent ~= nil do
  2400. wait(0)
  2401. local lazclon = tehlaz0r:Clone()
  2402. lazclon.Anchored = true
  2403. lazclon.Parent = workspace
  2404. local c = game.Workspace:GetChildren();
  2405. for i = 1, #c do
  2406. local hum = c[i]:findFirstChild("Humanoid")
  2407. if hum ~= nil and hum.Health ~= 0 then
  2408. local head = c[i]:findFirstChild("Head");
  2409. if head ~= nil then
  2410. local targ = head.Position - lazclon.Position;
  2411. local mag = targ.magnitude;
  2412. if mag <= 3 and c[i].Name ~= Player.Name then
  2413. coroutine.resume(coroutine.create(function()
  2414. for i = 0,1,0.1 do
  2415. wait()
  2416. DBHit1(head,lazclon)
  2417. end
  2418. end))
  2419. end
  2420. end
  2421. end
  2422. end
  2423. coroutine.resume(coroutine.create(function()
  2424. wait(3)
  2425. for i = 0,1,0.1 do
  2426. wait()
  2427. lazclon.Transparency = lazclon.Transparency + 0.1
  2428. end
  2429. lazclon.Parent = nil
  2430. end))
  2431. end
  2432. end))
  2433. print(TLM.Scale)
  2434. end
  2435. --[[Tool Functions]]--
  2436. hold = false
  2437. function ob1d(mouse)
  2438. hold = true
  2439. oneslash()
  2440. if hold == true then
  2441. twoslash()
  2442. end
  2443. end
  2444. function ob1u(mouse)
  2445. hold = false
  2446. end
  2447. buttonhold = false
  2448. function key(key)
  2449. if attack == true then return end
  2450. if key == "q" then
  2451. unload()
  2452. end
  2453. if key == "e" then
  2454. sniper()
  2455. end
  2456. if key == "r" then
  2457. kerbewmshot()
  2458. end
  2459. if key == "f" then
  2460. crush()
  2461. end
  2462. if key == "z" then
  2463. elecshoot()
  2464. end
  2465. if key == "x" then
  2466. laz0rshoot()
  2467. end
  2468. if key == "c" then
  2469. cycloneskates()
  2470. end
  2471. end
  2472. function key2(key)
  2473. charging2 = false
  2474. tornadoing = false
  2475. end
  2476. function s(mouse)
  2477. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2478. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2479. mouse.KeyDown:connect(key)
  2480. mouse.KeyUp:connect(key2)
  2481. unsheathed = true
  2482. player = Player
  2483. ch = Character
  2484. RSH = ch.Torso["Right Shoulder"]
  2485. LSH = ch.Torso["Left Shoulder"]
  2486. --
  2487. RSH.Parent = nil
  2488. LSH.Parent = nil
  2489. --
  2490. RW.Part0 = ch.Torso
  2491. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2492. RW.C1 = CFrame.new(0, 0.5, 0)
  2493. RW.Part1 = ch["Right Arm"]
  2494. RW.Parent = ch.Torso
  2495. --_G.R = RW
  2496. --
  2497. LW.Part0 = ch.Torso
  2498. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2499. LW.C1 = CFrame.new(0, 0.5, 0)
  2500. LW.Part1 = ch["Left Arm"]
  2501. LW.Parent = ch.Torso
  2502. --_G.L = LW
  2503. --
  2504. equipanim()
  2505. end
  2506. function ds(mouse)
  2507. unsheathed = false
  2508. hideanim()
  2509. Character.Humanoid.WalkSpeed = 16
  2510. RW.Parent = nil
  2511. LW.Parent = nil
  2512. RSH.Parent = player.Character.Torso
  2513. LSH.Parent = player.Character.Torso
  2514. end
  2515. Bin.Selected:connect(s)
  2516. Bin.Deselected:connect(ds)
  2517.  
  2518. function onRunning(speed)
  2519. if skill == true then return end
  2520. end
  2521. Character.Humanoid.Running:connect(onRunning)
  2522. while true do
  2523. wait(0)
  2524. end
  2525. -- lego
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement