NYXRBLX

Untitled

Sep 9th, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.03 KB | None | 0 0
  1.  
  2. Player = game:GetService("Players").LocalPlayer
  3. Character = Player.Character
  4. PlayerGui = Player.PlayerGui
  5. Backpack = Player.Backpack
  6. Torso = Character.Torso
  7. Head = Character.Head
  8. LeftArm = Character["Left Arm"]
  9. LeftLeg = Character["Left Leg"]
  10. RightArm = Character["Right Arm"]
  11. RightLeg = Character["Right Leg"]
  12. LS = Torso["Left Shoulder"]
  13. LH = Torso["Left Hip"]
  14. RS = Torso["Right Shoulder"]
  15. RH = Torso["Right Hip"]
  16. bladecolor = BrickColor.new("New Yeller")
  17. attack = false
  18. attackdebounce = false
  19. readytoshoot = false
  20. Modes = {"Fists", "Minigun"}
  21. Number = 1
  22. mode = Modes[Number]
  23. --player
  24. player = nil
  25. --save shoulders
  26. RSH, LSH = nil, nil
  27. --welds
  28. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  29. --what anim
  30. anim = "none"
  31.  
  32.  
  33.  
  34. local model1 = Instance.new("Model")
  35. model1.Name = "Fists"
  36. local model2 = Instance.new("Model")
  37. model2.Name = "Minigun"
  38. local model3 = Instance.new("Model")
  39. model3.Name = "Sandvich"
  40.  
  41. local leftfist = LeftArm:Clone()
  42. leftfist.Parent = model1
  43. leftfist.Name = "Left Arm"
  44. local rightfist = RightArm:Clone()
  45. rightfist.Parent = model1
  46. rightfist.Name = "Right Arm"
  47. local hum = Instance.new("Humanoid")
  48. hum.Parent = model1
  49. Children = Character:GetChildren()
  50. for i = 1, #Children do
  51. if Children[i].className == "Shirt" or Children[i].className == "Pants" then
  52. local stuff = Children[i]:Clone()
  53. stuff.Parent = model1
  54. end
  55. end
  56. local minigun1 = Instance.new("Part")
  57. minigun1.formFactor = 1
  58. minigun1.CanCollide = false
  59. minigun1.Name = "Handle"
  60. minigun1.Locked = true
  61. minigun1.Size = Vector3.new(1,1,1)
  62. minigun1.Parent = model2
  63. minigun1.BrickColor = BrickColor.new("Black")
  64. local minigun2 = Instance.new("Part")
  65. minigun2.formFactor = 1
  66. minigun2.CanCollide = false
  67. minigun2.Name = "Part2"
  68. minigun2.Locked = true
  69. minigun2.Size = Vector3.new(1,1,1)
  70. minigun2.Parent = model2
  71. minigun2.BrickColor = BrickColor.new("Black")
  72. local minigun3 = Instance.new("Part")
  73. minigun3.formFactor = 1
  74. minigun3.CanCollide = false
  75. minigun3.Name = "Part3"
  76. minigun3.Locked = true
  77. minigun3.Size = Vector3.new(1,1,1)
  78. minigun3.Parent = model2
  79. minigun3.BrickColor = BrickColor.new("Black")
  80. local minigun4 = Instance.new("Part")
  81. minigun4.formFactor = 1
  82. minigun4.CanCollide = false
  83. minigun4.Name = "Part4"
  84. minigun4.Locked = true
  85. minigun4.Size = Vector3.new(1,1,1)
  86. minigun4.Parent = model2
  87. minigun4.BrickColor = BrickColor.new("Black")
  88. local minigun5 = Instance.new("Part")
  89. minigun5.formFactor = 1
  90. minigun5.CanCollide = false
  91. minigun5.Name = "Part5"
  92. minigun5.Locked = true
  93. minigun5.Size = Vector3.new(1,1,1)
  94. minigun5.Parent = model2
  95. minigun5.BrickColor = BrickColor.new("Black")
  96. local minigun6 = Instance.new("Part")
  97. minigun6.formFactor = 1
  98. minigun6.CanCollide = false
  99. minigun6.Name = "Part6"
  100. minigun6.Locked = true
  101. minigun6.Size = Vector3.new(1,1,1)
  102. minigun6.Parent = model2
  103. minigun6.BrickColor = BrickColor.new("Black")
  104. local minigun7 = Instance.new("Part")
  105. minigun7.formFactor = 1
  106. minigun7.CanCollide = false
  107. minigun7.Name = "Part7"
  108. minigun7.Locked = true
  109. minigun7.Size = Vector3.new(1,1,1)
  110. minigun7.Parent = model2
  111. minigun7.BrickColor = BrickColor.new("Black")
  112. local minigun8 = Instance.new("Part")
  113. minigun8.formFactor = 1
  114. minigun8.CanCollide = false
  115. minigun8.Name = "Part8"
  116. minigun8.Locked = true
  117. minigun8.Size = Vector3.new(1,1,1)
  118. minigun8.Parent = model2
  119. minigun8.BrickColor = BrickColor.new("Black")
  120. local minigun9 = Instance.new("Part")
  121. minigun9.formFactor = 1
  122. minigun9.CanCollide = false
  123. minigun9.Name = "Part9"
  124. minigun9.Locked = true
  125. minigun9.Size = Vector3.new(2,2,2)
  126. minigun9.Parent = model2
  127. minigun9.BrickColor = BrickColor.new("Black")
  128. local minigun10 = Instance.new("Part")
  129. minigun10.formFactor = 1
  130. minigun10.CanCollide = false
  131. minigun10.Name = "Part10"
  132. minigun10.Locked = true
  133. minigun10.Size = Vector3.new(2,2,2)
  134. minigun10.Parent = model2
  135. minigun10.BrickColor = BrickColor.new("Black")
  136. local minigun11 = Instance.new("Part")
  137. minigun11.formFactor = 1
  138. minigun11.CanCollide = false
  139. minigun11.Name = "Part11"
  140. minigun11.Locked = true
  141. minigun11.Size = Vector3.new(2,2,2)
  142. minigun11.Parent = model2
  143. minigun11.BrickColor = BrickColor.new("White")
  144. local minigun12 = Instance.new("Part")
  145. minigun12.formFactor = 1
  146. minigun12.CanCollide = false
  147. minigun12.Name = "Part12"
  148. minigun12.Locked = true
  149. minigun12.Size = Vector3.new(1,1,1)
  150. minigun12.Parent = model2
  151. minigun12.BrickColor = BrickColor.new("Black")
  152. local minigun13 = Instance.new("Part")
  153. minigun13.formFactor = 1
  154. minigun13.CanCollide = false
  155. minigun13.Name = "Part13"
  156. minigun13.Locked = true
  157. minigun13.Size = Vector3.new(1,1,1)
  158. minigun13.Parent = model2
  159. minigun13.BrickColor = BrickColor.new("Black")
  160. local minigun14 = Instance.new("Part")
  161. minigun14.formFactor = 1
  162. minigun14.CanCollide = false
  163. minigun14.Name = "Part14"
  164. minigun14.Locked = true
  165. minigun14.Size = Vector3.new(1,2,1)
  166. minigun14.Parent = model2
  167. minigun14.BrickColor = BrickColor.new("Black")
  168. local minigun15 = Instance.new("Part")
  169. minigun15.formFactor = 1
  170. minigun15.CanCollide = false
  171. minigun15.Name = "Part15"
  172. minigun15.Locked = true
  173. minigun15.Size = Vector3.new(1,1,1)
  174. minigun15.Parent = model2
  175. minigun15.BrickColor = BrickColor.new("Black")
  176. local minigun16 = Instance.new("Part")
  177. minigun16.formFactor = 1
  178. minigun16.CanCollide = false
  179. minigun16.Name = "Part16"
  180. minigun16.Locked = true
  181. minigun16.Size = Vector3.new(1,2,1)
  182. minigun16.Parent = model2
  183. minigun16.BrickColor = BrickColor.new("Black")
  184. local minigun17 = Instance.new("Part")
  185. minigun17.formFactor = 1
  186. minigun17.CanCollide = false
  187. minigun17.Name = "Part17"
  188. minigun17.Locked = true
  189. minigun17.Size = Vector3.new(1,1,1)
  190. minigun17.Parent = model2
  191. minigun17.BrickColor = BrickColor.new("Black")
  192. local minigun18 = Instance.new("Part")
  193. minigun18.formFactor = 1
  194. minigun18.CanCollide = false
  195. minigun18.Name = "Part18"
  196. minigun18.Locked = true
  197. minigun18.Size = Vector3.new(1,1,1)
  198. minigun18.Parent = model2
  199. minigun18.BrickColor = BrickColor.new("Black")
  200. local minigun19 = Instance.new("Part")
  201. minigun19.formFactor = 1
  202. minigun19.CanCollide = false
  203. minigun19.Name = "Part19"
  204. minigun19.Locked = true
  205. minigun19.Size = Vector3.new(1,1,1)
  206. minigun19.Parent = model2
  207. minigun19.BrickColor = BrickColor.new("Black")
  208. local minigun20 = Instance.new("Part")
  209. minigun20.formFactor = 1
  210. minigun20.CanCollide = false
  211. minigun20.Name = "Part20"
  212. minigun20.Locked = true
  213. minigun20.Size = Vector3.new(1,1,1)
  214. minigun20.Parent = model2
  215. minigun20.BrickColor = BrickColor.new("Black")
  216. local minigun21 = Instance.new("Part")
  217. minigun21.formFactor = 1
  218. minigun21.CanCollide = false
  219. minigun21.Name = "Part21"
  220. minigun21.Locked = true
  221. minigun21.Size = Vector3.new(1,1,1)
  222. minigun21.Parent = model2
  223. minigun21.BrickColor = BrickColor.new("Black")
  224. local minigun22 = Instance.new("Part")
  225. minigun22.formFactor = 1
  226. minigun22.CanCollide = false
  227. minigun22.Name = "Part22"
  228. minigun22.Locked = true
  229. minigun22.Size = Vector3.new(1,1,1)
  230. minigun22.Parent = model2
  231. minigun22.BrickColor = BrickColor.new("Black")
  232. local minigun23 = Instance.new("Part")
  233. minigun23.formFactor = 1
  234. minigun23.CanCollide = false
  235. minigun23.Name = "Part23"
  236. minigun23.Locked = true
  237. minigun23.Size = Vector3.new(1,1,1)
  238. minigun23.Parent = model2
  239. minigun23.BrickColor = BrickColor.new("Black")
  240. local minigun24 = Instance.new("Part")
  241. minigun24.formFactor = 1
  242. minigun24.CanCollide = false
  243. minigun24.Name = "Part24"
  244. minigun24.Locked = true
  245. minigun24.Size = Vector3.new(1,1,1)
  246. minigun24.Parent = model2
  247. minigun24.BrickColor = BrickColor.new("Black")
  248. local minigun25 = Instance.new("Part")
  249. minigun25.formFactor = 1
  250. minigun25.CanCollide = false
  251. minigun25.Name = "Part25"
  252. minigun25.Locked = true
  253. minigun25.Size = Vector3.new(1,1,1)
  254. minigun25.Parent = model2
  255. minigun25.BrickColor = BrickColor.new("Black")
  256. local minigun26 = Instance.new("Part")
  257. minigun26.formFactor = 1
  258. minigun26.CanCollide = false
  259. minigun26.Name = "Part26"
  260. minigun26.Locked = true
  261. minigun26.Size = Vector3.new(1,1,1)
  262. minigun26.Parent = model2
  263. minigun26.BrickColor = BrickColor.new("Black")
  264. local minigun27 = Instance.new("Part")
  265. minigun27.formFactor = 1
  266. minigun27.CanCollide = false
  267. minigun27.Name = "Part27"
  268. minigun27.Locked = true
  269. minigun27.Size = Vector3.new(1,1,1)
  270. minigun27.Parent = model2
  271. minigun27.BrickColor = BrickColor.new("Black")
  272. local minigun28 = Instance.new("Part")
  273. minigun28.formFactor = 1
  274. minigun28.CanCollide = false
  275. minigun28.Name = "Barrel"
  276. minigun28.Locked = true
  277. minigun28.Size = Vector3.new(1,1,1)
  278. minigun28.Parent = model2
  279. minigun28.BrickColor = BrickColor.new("Black")
  280. local minigun29 = Instance.new("Part")
  281. minigun29.formFactor = 1
  282. minigun29.CanCollide = false
  283. minigun29.Name = "Part29"
  284. minigun29.Locked = true
  285. minigun29.Size = Vector3.new(1,2,1)
  286. minigun29.Parent = model2
  287. minigun29.BrickColor = BrickColor.new("Black")
  288. local minigun30 = minigun29:Clone()
  289. minigun30.Name = "Part30"
  290. minigun30.Size = Vector3.new(1,2,1)
  291. minigun30.Parent = model2
  292. local minigun31 = minigun29:Clone()
  293. minigun31.Name = "Part31"
  294. minigun31.Size = Vector3.new(1,2,1)
  295. minigun31.Parent = model2
  296. local minigun31 = minigun29:Clone()
  297. minigun31.Name = "Part31"
  298. minigun31.Size = Vector3.new(1,2,1)
  299. minigun31.Parent = model2
  300. local minigun32 = minigun29:Clone()
  301. minigun32.Name = "Part32"
  302. minigun32.Size = Vector3.new(1,2,1)
  303. minigun32.Parent = model2
  304. local minigun33 = minigun29:Clone()
  305. minigun33.Name = "Part33"
  306. minigun33.Size = Vector3.new(1,2,1)
  307. minigun33.Parent = model2
  308. local minigun34 = minigun29:Clone()
  309. minigun34.Name = "Part34"
  310. minigun34.Size = Vector3.new(1,2,1)
  311. minigun34.Parent = model2
  312. local minigun35 = Instance.new("Part")
  313. minigun35.formFactor = 1
  314. minigun35.CanCollide = false
  315. minigun35.Name = "Part35"
  316. minigun35.Locked = true
  317. minigun35.Size = Vector3.new(1,2,1)
  318. minigun35.Parent = model2
  319. minigun35.BrickColor = BrickColor.new("Black")
  320. local minigun36 = Instance.new("Part")
  321. minigun36.formFactor = 1
  322. minigun36.CanCollide = false
  323. minigun36.Name = "Part36"
  324. minigun36.Locked = true
  325. minigun36.Size = Vector3.new(1,2,1)
  326. minigun36.Parent = model2
  327. minigun36.BrickColor = BrickColor.new("Black")
  328. local minigun37 = minigun36:Clone()
  329. minigun37.Name = "Part37"
  330. minigun37.Size = Vector3.new(1,2,1)
  331. minigun37.Parent = model2
  332. local minigun38 = Instance.new("Part")
  333. minigun38.formFactor = 1
  334. minigun38.CanCollide = false
  335. minigun38.Name = "Part38"
  336. minigun38.Locked = true
  337. minigun38.Size = Vector3.new(1,1,1)
  338. minigun38.Parent = model2
  339. minigun38.BrickColor = BrickColor.new("Black")
  340.  
  341. local mesh1 = Instance.new("BlockMesh")
  342. mesh1.Parent = minigun1
  343. mesh1.Scale = Vector3.new(0.3,1,0.3)
  344. local mesh2 = Instance.new("BlockMesh")
  345. mesh2.Parent = minigun2
  346. mesh2.Scale = Vector3.new(0.3,0.4,0.3)
  347. local mesh3 = Instance.new("BlockMesh")
  348. mesh3.Parent = minigun3
  349. mesh3.Scale = Vector3.new(0.3,0.8,0.3)
  350. local mesh4 = Instance.new("BlockMesh")
  351. mesh4.Parent = minigun4
  352. mesh4.Scale = Vector3.new(0.3,1.1,0.3)
  353. local mesh5 = Instance.new("BlockMesh")
  354. mesh5.Parent = minigun5
  355. mesh5.Scale = Vector3.new(0.3,1.1,0.3)
  356. local mesh6 = Instance.new("BlockMesh")
  357. mesh6.Parent = minigun6
  358. mesh6.Scale = Vector3.new(0.3,0.7,0.3)
  359. local mesh7 = Instance.new("BlockMesh")
  360. mesh7.Parent = minigun7
  361. mesh7.Scale = Vector3.new(0.3,1.45,0.3)
  362. local mesh8 = Instance.new("BlockMesh")
  363. mesh8.Parent = minigun8
  364. mesh8.Scale = Vector3.new(0.3,0.5,0.3)
  365. local mesh9 = Instance.new("CylinderMesh")
  366. mesh9.Parent = minigun9
  367. mesh9.Scale = Vector3.new(0.8,0.3,0.8)
  368. local mesh10 = Instance.new("CylinderMesh")
  369. mesh10.Parent = minigun10
  370. mesh10.Scale = Vector3.new(0.75,0.1,0.75)
  371. local mesh11 = Instance.new("CylinderMesh")
  372. mesh11.Parent = minigun11
  373. mesh11.Scale = Vector3.new(0.74,0.5,0.74)
  374. local mesh12 = Instance.new("BlockMesh")
  375. mesh12.Parent = minigun12
  376. mesh12.Scale = Vector3.new(0.5,0.5,0.5)
  377. local mesh13 = Instance.new("CylinderMesh")
  378. mesh13.Parent = minigun13
  379. mesh13.Scale = Vector3.new(0.2,0.2,0.2)
  380. local mesh14 = Instance.new("CylinderMesh")
  381. mesh14.Parent = minigun14
  382. mesh14.Scale = Vector3.new(0.15,0.69,0.15)
  383. local mesh15 = Instance.new("BlockMesh")
  384. mesh15.Parent = minigun15
  385. mesh15.Scale = Vector3.new(0.2,0.2,0.2)
  386. local mesh16 = Instance.new("CylinderMesh")
  387. mesh16.Parent = minigun16
  388. mesh16.Scale = Vector3.new(0.15,0.5,0.15)
  389. local mesh17 = Instance.new("CylinderMesh")
  390. mesh17.Parent = minigun17
  391. mesh17.Scale = Vector3.new(0.2,0.2,0.2)
  392. local mesh18 = Instance.new("BlockMesh")
  393. mesh18.Parent = minigun18
  394. mesh18.Scale = Vector3.new(0.35,0.35,0.35)
  395. local mesh19 = Instance.new("CylinderMesh")
  396. mesh19.Parent = minigun19
  397. mesh19.Scale = Vector3.new(0.3,0.2,0.3)
  398. local mesh20 = Instance.new("BlockMesh")
  399. mesh20.Parent = minigun20
  400. mesh20.Scale = Vector3.new(0.3,0.7,0.3)
  401. local mesh21 = Instance.new("BlockMesh")
  402. mesh21.Parent = minigun21
  403. mesh21.Scale = Vector3.new(0.6,0.6,0.6)
  404. local mesh22 = Instance.new("BlockMesh")
  405. mesh22.Parent = minigun22
  406. mesh22.Scale = Vector3.new(0.2,0.6,0.2)
  407. local mesh23 = Instance.new("BlockMesh")
  408. mesh23.Parent = minigun23
  409. mesh23.Scale = Vector3.new(0.2,0.6,0.2)
  410. local mesh24 = Instance.new("BlockMesh")
  411. mesh24.Parent = minigun24
  412. mesh24.Scale = Vector3.new(0.2,0.3,0.2)
  413. local mesh25 = Instance.new("CylinderMesh")
  414. mesh25.Parent = minigun25
  415. mesh25.Scale = Vector3.new(0.2,0.6,0.2)
  416. local mesh26 = Instance.new("CylinderMesh")
  417. mesh26.Parent = minigun26
  418. mesh26.Scale = Vector3.new(0.7,1.3,0.7)
  419. local mesh27 = Instance.new("CylinderMesh")
  420. mesh27.Parent = minigun27
  421. mesh27.Scale = Vector3.new(0.8,0.5,0.8)
  422. local mesh28 = Instance.new("CylinderMesh")
  423. mesh28.Parent = minigun28
  424. mesh28.Scale = Vector3.new(0.9,0.3,0.9)
  425. local mesh29 = Instance.new("CylinderMesh")
  426. mesh29.Parent = minigun29
  427. mesh29.Scale = Vector3.new(0.3,1.1,0.3)
  428. local mesh30 = mesh29:Clone()
  429. mesh30.Parent = minigun30
  430. local mesh31 = mesh29:Clone()
  431. mesh31.Parent = minigun31
  432. local mesh32 = mesh29:Clone()
  433. mesh32.Parent = minigun32
  434. local mesh33 = mesh29:Clone()
  435. mesh33.Parent = minigun33
  436. local mesh34 = mesh29:Clone()
  437. mesh34.Parent = minigun34
  438. local mesh35 = Instance.new("CylinderMesh")
  439. mesh35.Parent = minigun35
  440. mesh35.Scale = Vector3.new(1,0.2,1)
  441. local mesh36 = Instance.new("CylinderMesh")
  442. mesh36.Parent = minigun36
  443. mesh36.Scale = Vector3.new(1,0.05,1)
  444. local mesh37 = mesh36:Clone()
  445. mesh37.Parent = minigun37
  446. local mesh38 = Instance.new("SpecialMesh")
  447. mesh38.Parent = minigun38
  448. mesh38.MeshId = "http://www.roblox.com/asset/?id=3270017"
  449. mesh38.Scale = Vector3.new(1,1,8)
  450.  
  451. local leftfistweld = Instance.new("Weld")
  452. leftfistweld.Parent = model1
  453. leftfistweld.Part0 = leftfist
  454. leftfistweld.Part1 = LeftArm
  455. local rightfistweld = Instance.new("Weld")
  456. rightfistweld.Parent = model1
  457. rightfistweld.Part0 = rightfist
  458. rightfistweld.Part1 = RightArm
  459. local sashaweld1 = Instance.new("Weld")
  460. sashaweld1.Parent = minigun1
  461. sashaweld1.Part0 = minigun1
  462. sashaweld1.Part1 = RightArm
  463. sashaweld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  464. local sashaweld2 = Instance.new("Weld")
  465. sashaweld2.Parent = minigun2
  466. sashaweld2.Part0 = minigun2
  467. sashaweld2.Part1 = minigun1
  468. sashaweld2.C0 = CFrame.fromEulerAnglesXYZ(2,0,0) * CFrame.new(0,0.5,0.3)
  469. local sashaweld3 = Instance.new("Weld")
  470. sashaweld3.Parent = minigun3
  471. sashaweld3.Part0 = minigun3
  472. sashaweld3.Part1 = minigun2
  473. sashaweld3.C0 = CFrame.fromEulerAnglesXYZ(-1.5,0,0) * CFrame.new(0,-0.2,-0.2)
  474. local sashaweld4 = Instance.new("Weld")
  475. sashaweld4.Parent = minigun4
  476. sashaweld4.Part0 = minigun4
  477. sashaweld4.Part1 = minigun3
  478. sashaweld4.C0 = CFrame.fromEulerAnglesXYZ(2.3,0,0) * CFrame.new(0,-0.8,-0.45)
  479. local sashaweld5 = Instance.new("Weld")
  480. sashaweld5.Parent = minigun5
  481. sashaweld5.Part0 = minigun5
  482. sashaweld5.Part1 = minigun3
  483. sashaweld5.C0 = CFrame.fromEulerAnglesXYZ(-2.3,0,0) * CFrame.new(0,-1.5,-0.45)
  484. local sashaweld6 = Instance.new("Weld")
  485. sashaweld6.Parent = minigun6
  486. sashaweld6.Part0 = minigun6
  487. sashaweld6.Part1 = minigun1
  488. sashaweld6.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,-0.5,0.2)
  489. local sashaweld7 = Instance.new("Weld")
  490. sashaweld7.Parent = minigun7
  491. sashaweld7.Part0 = minigun7
  492. sashaweld7.Part1 = minigun3
  493. sashaweld7.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,0,0.9)
  494. local sashaweld8 = Instance.new("Weld")
  495. sashaweld8.Parent = minigun8
  496. sashaweld8.Part0 = minigun8
  497. sashaweld8.Part1 = minigun7
  498. sashaweld8.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,-0.7,-0.3)
  499. local sashaweld9 = Instance.new("Weld")
  500. sashaweld9.Parent = minigun9
  501. sashaweld9.Part0 = minigun9
  502. sashaweld9.Part1 = minigun8
  503. sashaweld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6,-0.2)
  504. local sashaweld10 = Instance.new("Weld")
  505. sashaweld10.Parent = minigun10
  506. sashaweld10.Part0 = minigun10
  507. sashaweld10.Part1 = minigun9
  508. sashaweld10.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.45,0)
  509. local sashaweld11 = Instance.new("Weld")
  510. sashaweld11.Parent = minigun11
  511. sashaweld11.Part0 = minigun11
  512. sashaweld11.Part1 = minigun10
  513. sashaweld11.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.7,0)
  514. local sashaweld12 = Instance.new("Weld")
  515. sashaweld12.Parent = minigun12
  516. sashaweld12.Part0 = minigun12
  517. sashaweld12.Part1 = minigun9
  518. sashaweld12.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-0.7)
  519. local sashaweld13 = Instance.new("Weld")
  520. sashaweld13.Parent = minigun13
  521. sashaweld13.Part0 = minigun13
  522. sashaweld13.Part1 = minigun12
  523. sashaweld13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.3,-0.15)
  524. local sashaweld14 = Instance.new("Weld")
  525. sashaweld14.Parent = minigun14
  526. sashaweld14.Part0 = minigun14
  527. sashaweld14.Part1 = minigun13
  528. sashaweld14.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.85,0)
  529. local sashaweld15 = Instance.new("Weld")
  530. sashaweld15.Parent = minigun15
  531. sashaweld15.Part0 = minigun15
  532. sashaweld15.Part1 = minigun14
  533. sashaweld15.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.85,0)
  534. local sashaweld16 = Instance.new("Weld")
  535. sashaweld16.Parent = minigun16
  536. sashaweld16.Part0 = minigun16
  537. sashaweld16.Part1 = minigun15
  538. sashaweld16.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,0,0.6)
  539. local sashaweld17 = Instance.new("Weld")
  540. sashaweld17.Parent = minigun17
  541. sashaweld17.Part0 = minigun17
  542. sashaweld17.Part1 = minigun16
  543. sashaweld17.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.5,0)
  544. local sashaweld18 = Instance.new("Weld")
  545. sashaweld18.Parent = minigun18
  546. sashaweld18.Part0 = minigun18
  547. sashaweld18.Part1 = minigun11
  548. sashaweld18.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.5,0)
  549. local sashaweld19 = Instance.new("Weld")
  550. sashaweld19.Parent = minigun19
  551. sashaweld19.Part0 = minigun19
  552. sashaweld19.Part1 = minigun18
  553. sashaweld19.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,0.3,0)
  554. local sashaweld20 = Instance.new("Weld")
  555. sashaweld20.Parent = minigun20
  556. sashaweld20.Part0 = minigun20
  557. sashaweld20.Part1 = minigun5
  558. sashaweld20.C0 = CFrame.fromEulerAnglesXYZ(2.3,0,0) * CFrame.new(0,0.83,0.26)
  559. local sashaweld21 = Instance.new("Weld")
  560. sashaweld21.Parent = minigun21
  561. sashaweld21.Part0 = minigun21
  562. sashaweld21.Part1 = minigun20
  563. sashaweld21.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.5,0.15)
  564. local sashaweld22 = Instance.new("Weld")
  565. sashaweld22.Parent = minigun22
  566. sashaweld22.Part0 = minigun22
  567. sashaweld22.Part1 = minigun21
  568. sashaweld22.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(-0.16,0.1,-0.3)
  569. local sashaweld23 = Instance.new("Weld")
  570. sashaweld23.Parent = minigun23
  571. sashaweld23.Part0 = minigun23
  572. sashaweld23.Part1 = minigun21
  573. sashaweld23.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0.16,0.1,-0.3)
  574. local sashaweld24 = Instance.new("Weld")
  575. sashaweld24.Parent = minigun24
  576. sashaweld24.Part0 = minigun24
  577. sashaweld24.Part1 = minigun23
  578. sashaweld24.C0 = CFrame.fromEulerAnglesXYZ(1.57,1.57,0) * CFrame.new(-0.2,0.26,0)
  579. local sashaweld25 = Instance.new("Weld")
  580. sashaweld25.Parent = minigun25
  581. sashaweld25.Part0 = minigun25
  582. sashaweld25.Part1 = minigun7
  583. sashaweld25.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,0.3,-0.1)
  584. local sashaweld26 = Instance.new("Weld")
  585. sashaweld26.Parent = minigun26
  586. sashaweld26.Part0 = minigun26
  587. sashaweld26.Part1 = minigun25
  588. sashaweld26.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1,0)
  589. local sashaweld27 = Instance.new("Weld")
  590. sashaweld27.Parent = minigun27
  591. sashaweld27.Part0 = minigun27
  592. sashaweld27.Part1 = minigun26
  593. sashaweld27.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1,0)
  594. local sashaweld28 = Instance.new("Weld")
  595. sashaweld28.Parent = minigun28
  596. sashaweld28.Part0 = minigun28
  597. sashaweld28.Part1 = minigun27
  598. sashaweld28.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.2,0)
  599. local sashaweld29 = Instance.new("Weld")
  600. sashaweld29.Parent = minigun29
  601. sashaweld29.Part0 = minigun29
  602. sashaweld29.Part1 = minigun28
  603. sashaweld29.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.24,1.2,-0.16)
  604. local sashaweld30 = Instance.new("Weld")
  605. sashaweld30.Parent = minigun30
  606. sashaweld30.Part0 = minigun30
  607. sashaweld30.Part1 = minigun28
  608. sashaweld30.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.24,1.2,0.16)
  609. local sashaweld31 = Instance.new("Weld")
  610. sashaweld31.Parent = minigun31
  611. sashaweld31.Part0 = minigun31
  612. sashaweld31.Part1 = minigun28
  613. sashaweld31.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.2,0.35)
  614. local sashaweld32 = Instance.new("Weld")
  615. sashaweld32.Parent = minigun32
  616. sashaweld32.Part0 = minigun32
  617. sashaweld32.Part1 = minigun28
  618. sashaweld32.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.24,1.2,0.16)
  619. local sashaweld33 = Instance.new("Weld")
  620. sashaweld33.Parent = minigun33
  621. sashaweld33.Part0 = minigun33
  622. sashaweld33.Part1 = minigun28
  623. sashaweld33.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.24,1.2,-0.16)
  624. local sashaweld34 = Instance.new("Weld")
  625. sashaweld34.Parent = minigun34
  626. sashaweld34.Part0 = minigun34
  627. sashaweld34.Part1 = minigun28
  628. sashaweld34.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.2,-0.35)
  629. local sashaweld35 = Instance.new("Weld")
  630. sashaweld35.Parent = minigun35
  631. sashaweld35.Part0 = minigun35
  632. sashaweld35.Part1 = minigun28
  633. sashaweld35.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.8,0)
  634. local sashaweld36 = Instance.new("Weld")
  635. sashaweld36.Parent = minigun36
  636. sashaweld36.Part0 = minigun36
  637. sashaweld36.Part1 = minigun28
  638. sashaweld36.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.5,0)
  639. local sashaweld37 = Instance.new("Weld")
  640. sashaweld37.Parent = minigun37
  641. sashaweld37.Part0 = minigun37
  642. sashaweld37.Part1 = minigun28
  643. sashaweld37.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.7,0)
  644. local sashaweld38 = Instance.new("Weld")
  645. sashaweld38.Parent = minigun38
  646. sashaweld38.Part0 = minigun38
  647. sashaweld38.Part1 = minigun28
  648. sashaweld38.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,2.5,0)
  649.  
  650. if script.Parent.className ~= "HopperBin" then
  651. Tool = Instance.new("HopperBin")
  652. Tool.Parent = Backpack
  653. Tool.Name = "Heavy"
  654. script.Parent = Tool
  655. end
  656. Bin = Tool
  657.  
  658. function unequipweld()
  659. model1.Parent = nil
  660. model2.Parent = nil
  661. model3.Parent = nil
  662. end
  663.  
  664. function equipanim()
  665. if mode == "Fists" then
  666. for i = 0 , 1 , 0.2 do
  667. wait(0)
  668. LW.C0 = CFrame.new(-1.5+0.3*i,0.5,-0.3*i) * CFrame.fromEulerAnglesXYZ(1.7*i,0,0.3*i)
  669. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  670. RW.C0 = CFrame.new(1.5-0.3*i,0.5,-0.3*i) * CFrame.fromEulerAnglesXYZ(1.7*i,0,-0.3*i)
  671. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  672. end
  673. elseif mode == "Minigun" then
  674. for i = 0 , 1 , 0.2 do
  675. wait(0)
  676. LW.C0 = CFrame.new(-1.5+1.5*i,0.5,-1.4*i) * CFrame.fromEulerAnglesXYZ(1.7*i,0,0.9*i)
  677. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  678. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.2*i,0,0)
  679. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  680. end
  681. end
  682. end
  683. -- 9650882
  684.  
  685. function equipweld()
  686. if mode == "Fists" then
  687. model1.Parent = workspace
  688. rightfistweld.Parent = rightfist
  689. leftfistweld.Parent = leftfist
  690. elseif mode == "Minigun" then
  691. model2.Parent = workspace
  692. sashaweld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  693. end
  694. end
  695.  
  696. function OT(hit)
  697. if hit.Parent == nil then return end
  698. local hum = hit.Parent:findFirstChild("Humanoid")
  699. if hum ~= nil and hum ~= Character.Humanoid then
  700. hum:TakeDamage(damage)
  701. end
  702.  
  703. end
  704.  
  705. function ss(parent,pitch)
  706.  
  707. local SlashSound = Instance.new("Sound")
  708. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  709. SlashSound.Parent = workspace
  710. SlashSound.Volume = .7
  711. SlashSound.Pitch = pitch
  712. SlashSound.PlayOnRemove = true
  713. coroutine.resume(coroutine.create(function()
  714. wait(0)
  715. SlashSound.Parent = nil
  716. end))
  717. end
  718. function startup(parent,pitch)
  719.  
  720. local SlashSound = Instance.new("Sound")
  721. SlashSound.SoundId = "http://roblox.com/asset/?id=10209788"
  722. SlashSound.Parent = workspace
  723. SlashSound.Volume = .7
  724. SlashSound.Pitch = pitch
  725. SlashSound.PlayOnRemove = true
  726. coroutine.resume(coroutine.create(function()
  727. wait(0)
  728. SlashSound.Parent = nil
  729. end))
  730. end
  731. function winddown(parent,pitch)
  732.  
  733. local SlashSound = Instance.new("Sound")
  734. SlashSound.SoundId = "http://roblox.com/asset/?id=10209786"
  735. SlashSound.Parent = workspace
  736. SlashSound.Volume = .7
  737. SlashSound.Pitch = pitch
  738. SlashSound.PlayOnRemove = true
  739. coroutine.resume(coroutine.create(function()
  740. wait(0)
  741. SlashSound.Parent = nil
  742. end))
  743. end
  744.  
  745. function shoot(parent,pitch)
  746.  
  747. local SlashSound = Instance.new("Sound")
  748. SlashSound.SoundId = "http://roblox.com/asset/?id=10209798"
  749. SlashSound.Parent = workspace
  750. SlashSound.Volume = .2
  751. SlashSound.Pitch = pitch
  752. SlashSound.PlayOnRemove = true
  753. coroutine.resume(coroutine.create(function()
  754. wait(0)
  755. SlashSound.Parent = nil
  756. end))
  757. end
  758.  
  759. function Punch()
  760. attack = true
  761. wait()
  762. local either = math.random(1,2)
  763. if either == 1 then
  764. ss(LeftArm,0.8)
  765. con1=leftfist.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  766. for i = 0 , 1 , 0.2 do
  767. wait()
  768. LW.C0 = CFrame.new(-1.2+0.4*i,0.5,-0.3-0.5*i) * CFrame.fromEulerAnglesXYZ(1.7,0,0.3+0.2*i)
  769. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  770. end
  771. con1:disconnect()
  772. for i = 0 , 1 , 0.2 do
  773. wait()
  774. LW.C0 = CFrame.new(-1.2+0.4-0.4*i,0.5,-0.3-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.7,0,0.3+0.2-0.2*i)
  775. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  776. end
  777. elseif either == 2 then
  778. ss(RightArm,0.8)
  779. con2=rightfist.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  780. for i = 0 , 1 , 0.2 do
  781. wait()
  782. RW.C0 = CFrame.new(1.2-0.4*i,0.5,-0.3-0.5*i) * CFrame.fromEulerAnglesXYZ(1.7,0,-0.3-0.2*i)
  783. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  784. end
  785. con2:disconnect()
  786. for i = 0 , 1 , 0.2 do
  787. wait()
  788. RW.C0 = CFrame.new(1.2-0.4+0.4*i,0.5,-0.3-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.7,0,-0.3-0.2+0.2*i)
  789. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  790. end
  791. end
  792. attack = false
  793. end
  794.  
  795. function minigunshoop()
  796. attack = true
  797. if readytoshoot == false then
  798. startup(minigun28,1)
  799. Character.Humanoid.WalkSpeed = 10
  800. for i = 0 , 1 , 0.05 do
  801. wait(0)
  802. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.2+0.37*i,0,0)
  803. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  804. sashaweld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+1.1*i,0,0) * CFrame.new(0,1,0)
  805. sashaweld28.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0) * CFrame.new(0,0.2,0)
  806. end
  807. wait(0.5)
  808. end
  809. while hold == true do
  810. wait(0)
  811. boomeffect()
  812. bulletshoot()
  813. --Ammo()
  814. shoot(minigun28,0.9)
  815. sashaweld28.C0 = sashaweld28.C0 * CFrame.fromEulerAnglesXYZ(0,0.6,0)
  816. end
  817. if readytoshoot == false then
  818. winddown(minigun28,1)
  819. Character.Humanoid.WalkSpeed = 16
  820. for i = 0 , 1 , 0.05 do
  821. wait(0)
  822. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.2+0.37-0.37*i,0,0)
  823. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  824. LW.C0 = CFrame.new(-1.5+1.5,0.5,-1.4) * CFrame.fromEulerAnglesXYZ(1.7,0,0.9)
  825. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  826. sashaweld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+1.1-1.1*i,0,0) * CFrame.new(0,1,0)
  827. sashaweld28.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0) * CFrame.new(0,0.2,0)
  828. end
  829. attack = false
  830. end
  831. end
  832.  
  833. function Taunt()
  834. for i = 0 , 1 , 0.1 do
  835. wait()
  836. LW.C0 = CFrame.new(-1.2-0.3*i,0.5,-0.3+0.3*i) * CFrame.fromEulerAnglesXYZ(1.7-1.7*i,0,0.3-0.5*i)
  837. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  838. RW.C0 = CFrame.new(1.2+0.3*i,0.5,-0.3+0.3*i) * CFrame.fromEulerAnglesXYZ(1.7-1.7*i,0,-0.3+0.5*i)
  839. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  840. end
  841. wait(0.1)
  842. for i = 1 , 2 do
  843. wait(0)
  844. ss(LeftArm,0.8)
  845. for i = 0 , 1 , 0.2 do
  846. wait()
  847. LW.C0 = CFrame.new(-1.2-0.3+0.3*i,0.5+0.3*i,-0.3*i) * CFrame.fromEulerAnglesXYZ(1.6*i,1.57*i,0.3)
  848. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+1*i,0,0)
  849. end
  850. wait(0.2)
  851. for i = 0 , 1 , 0.1 do
  852. wait()
  853. LW.C0 = CFrame.new(-1.2-0.3*i,0.5+0.3-0.3*i,-0.3+0.3*i) * CFrame.fromEulerAnglesXYZ(1.6-1.6*i,1.57-1.57*i,0.3-0.6*i)
  854. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+1-0.5*i,0,0)
  855. end
  856. ss(LeftArm,0.8)
  857. for i = 0 , 1 , 0.2 do
  858. wait()
  859. RW.C0 = CFrame.new(1.2+0.3-0.3*i,0.5+0.3*i,-0.3*i) * CFrame.fromEulerAnglesXYZ(1.6*i,-1.57*i,-0.3)
  860. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+1*i,0,0)
  861. end
  862. wait(0.2)
  863. for i = 0 , 1 , 0.2 do
  864. wait()
  865. RW.C0 = CFrame.new(1.2+0.3*i,0.5+0.3-0.3*i,-0.3+0.3*i) * CFrame.fromEulerAnglesXYZ(1.6-1.6*i,-1.57+1.57*i,-0.3+0.6*i)
  866. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+1-0.5*i,0,0)
  867. end
  868. end
  869. equipanim()
  870. end
  871.  
  872. function readyshoot()
  873. attack = true
  874. readytoshoot = false
  875. startup(minigun28,1)
  876. Character.Humanoid.WalkSpeed = 10
  877. for i = 0 , 1 , 0.05 do
  878. wait(0)
  879. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.2+0.37*i,0,0)
  880. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  881. sashaweld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+1.1*i,0,0) * CFrame.new(0,1,0)
  882. sashaweld28.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0) * CFrame.new(0,0.2,0)
  883. end
  884. attack = false
  885. while readytoshoot == true do
  886. wait(0)
  887. attack = false
  888. sashaweld28.C0 = sashaweld28.C0 * CFrame.fromEulerAnglesXYZ(0,0.6,0)
  889. end
  890. attack = true
  891. readytoshoot = false
  892. winddown(minigun28,1)
  893. Character.Humanoid.WalkSpeed = 16
  894. for i = 0 , 1 , 0.05 do
  895. wait(0)
  896. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.2+0.37-0.37*i,0,0)
  897. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  898. LW.C0 = CFrame.new(-1.5+1.5,0.5,-1.4) * CFrame.fromEulerAnglesXYZ(1.7,0,0.9)
  899. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  900. sashaweld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+1.1-1.1*i,0,0) * CFrame.new(0,1,0)
  901. sashaweld28.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(360)*i,0) * CFrame.new(0,0.2,0)
  902. end
  903. readytoshoot = false
  904. attack = false
  905. end
  906.  
  907. function changeequipleft()
  908. if Number > 1 then
  909. Number = Number - 1
  910. mode = Modes[Number]
  911. unequipweld()
  912. equipweld()
  913. equipanim()
  914. end
  915. end
  916.  
  917. function changeequipright()
  918. if Number < #Modes then
  919. Number = Number + 1
  920. mode = Modes[Number]
  921. unequipweld()
  922. equipweld()
  923. equipanim()
  924. end
  925. end
  926.  
  927. function boomeffect()
  928. local mesh = Instance.new("SpecialMesh")
  929. mesh.MeshType = "Sphere"
  930. mesh.Scale = Vector3.new(1,1,1)
  931. local shell = Instance.new("Part")
  932. mesh.Parent = shell
  933. shell.Anchored = true
  934. shell.formFactor = 1
  935. shell.Size = Vector3.new(1,2,1)
  936. shell.CFrame = minigun37.CFrame * CFrame.new(0,-2,0) * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  937. shell.Parent = game.workspace
  938. shell.Transparency = 0.2
  939. shell.BrickColor = BrickColor.new("Bright yellow")
  940. shell.CanCollide = false
  941. coroutine.resume(coroutine.create(function(shel)
  942. wait()
  943. shel.Parent = nil
  944. end),shell)
  945. end
  946.  
  947. function bulletshoot()
  948. local freakingbullet = Instance.new("Part")
  949. freakingbullet.formFactor = 1
  950. freakingbullet.Parent = workspace
  951. freakingbullet.CanCollide = false
  952. freakingbullet.BrickColor = BrickColor.new("New Yeller")
  953. freakingbullet.Name = "Bullet"
  954. freakingbullet.Size = Vector3.new(1,3,1)
  955. freakingbullet.CFrame = Torso.CFrame
  956. --freakingbullet.CFrame = minigun38.CFrame * CFrame.new(0,-0.5,0)
  957. freakingbullet.CFrame = minigun27.CFrame * CFrame.new(0,-1.1,-0.25)
  958. freakingbullet.Velocity = minigun38.CFrame.lookVector * 300
  959. --freakingbullet.Velocity = freakingbullet.CFrame.lookVector * 300
  960. local freakingbulmsh = Instance.new("CylinderMesh")
  961. freakingbulmsh.Parent = freakingbullet
  962. freakingbulmsh.Scale = Vector3.new(1.1,1.5,0.15)
  963. local force = Instance.new("BodyForce")
  964. force.Parent = freakingbullet
  965. force.force = Vector3.new(0,450,0)
  966. coroutine.resume(coroutine.create(function()
  967. while freakingbullet.Parent ~= nil do --I use this function instead of the touch function :3
  968. wait()
  969. local c = game.Workspace:GetChildren();
  970. for i = 1, #c do
  971. local hum = c[i]:findFirstChild("Humanoid")
  972. if hum ~= nil and hum.Health ~= 0 then
  973. local head = c[i]:findFirstChild("Torso");
  974. if head ~= nil then
  975. local targ = head.Position - freakingbullet.Position;
  976. local mag = targ.magnitude;
  977. if mag <= 6 and c[i].Name ~= Player.Name then
  978. hum:TakeDamage(5)
  979. v=Instance.new("BodyVelocity")
  980. v.P=1000
  981. v.maxForce=Vector3.new(math.huge,0,math.huge)
  982. v.velocity=Torso.CFrame.lookVector*25+Torso.Velocity/1.05
  983. v.Parent=hum.Parent.Torso
  984. Blood=Instance.new("Part")
  985. Blood.Name="Blood"
  986. Blood.TopSurface="Smooth"
  987. Blood.BottomSurface="Smooth"
  988. Blood.formFactor="Plate"
  989. Blood.BrickColor=BrickColor:Red()
  990. Blood.Size=Vector3.new(1,.4,1)
  991. Blood.Velocity=Vector3.new(math.random(-4,4),math.random(5,25),math.random(-4,4))
  992. Blood.CFrame=head.CFrame
  993. Blood.Parent=workspace
  994. coroutine.resume(coroutine.create(function(vel,blod)
  995. wait(0.3)
  996. vel.Parent = nil
  997. wait(2)
  998. blod.Parent = nil
  999. end),v,Blood)
  1000. game:GetService("Debris"):AddItem(v,.1)
  1001. freakingbullet.Parent = nil
  1002. end
  1003. end
  1004. end
  1005. end
  1006. end
  1007. end))
  1008. coroutine.resume(coroutine.create(function()
  1009. wait(1)
  1010. freakingbullet.Parent = nil
  1011. end))
  1012. end
  1013.  
  1014. function Ammo()
  1015. local shellz = Instance.new("Part")
  1016. local shellmsh = Instance.new("CylinderMesh")
  1017. shellmsh.Scale = Vector3.new(0.25,0.5,0.25)
  1018. shellmsh.Parent = shellz
  1019. shellz.Position = minigun11.Position + Vector3.new(0,2,0)
  1020. shellz.Parent = game.Workspace
  1021. shellz.Size = Vector3.new(1,1,1)
  1022. shellz.CFrame = minigun11.CFrame + Vector3.new(0,0,0)
  1023. shellz.BrickColor = BrickColor.new("Bright yellow")
  1024. shellz.Anchored = false
  1025. shellz.CanCollide = false
  1026. shellz.BottomSurface = "Smooth"
  1027. shellz.TopSurface = "Smooth"
  1028. shellz.Velocity = Vector3.new(math.random(5,30),math.random(5,30),math.random(-20,-5))
  1029. game:GetService("Debris"):addItem(shellz,2)
  1030. end
  1031.  
  1032. Damagefunc1=function(hit,Damage,Knockback)
  1033. if attackdebounce == false then
  1034. attackdebounce = true
  1035. coroutine.resume(coroutine.create(function()
  1036. wait(0.1)
  1037. attackdebounce = false
  1038. end))
  1039. if hit.Parent==nil then
  1040. return
  1041. end
  1042. CPlayer=Bin
  1043. h=hit.Parent:FindFirstChild("Humanoid")
  1044. if h~=nil and hit.Parent~=Character and hit.Parent:FindFirstChild("Torso")~=nil then
  1045. Damage=Damage
  1046. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1047. return
  1048. end]]
  1049. c=Instance.new("ObjectValue")
  1050. c.Name="creator"
  1051. c.Value=game.Players.LocalPlayer
  1052. c.Parent=h
  1053. game:GetService("Debris"):AddItem(c,.5)
  1054. -- print(c.Value)
  1055. if math.random(1,10)==1 then
  1056. CRIT=true
  1057. Damage=Damage*2
  1058. Knockback=Knockback*2
  1059. r=Instance.new("BodyAngularVelocity")
  1060. r.P=3000
  1061. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1062. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1063. r.Parent=hit.Parent.Torso
  1064. s=Instance.new("Sound")
  1065. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  1066. s.Volume=1
  1067. s.Pitch=2
  1068. s.Parent=hit
  1069. s.PlayOnRemove=true
  1070. s.Parent=nil
  1071.  
  1072. end
  1073. Damage=Damage+math.random(0,10)
  1074. BloodRandom = math.random(1,5)
  1075. if CRIT == true then
  1076. BloodRandom = BloodRandom * 5
  1077. end
  1078. for i = 0,BloodRandom do
  1079. Blood=Instance.new("Part")
  1080. Blood.Name="Blood"
  1081. Blood.TopSurface="Smooth"
  1082. Blood.BottomSurface="Smooth"
  1083. Blood.formFactor="Plate"
  1084. Blood.BrickColor=BrickColor:Red()
  1085. Blood.Size=Vector3.new(1,.4,1)
  1086. Blood.Velocity=Vector3.new(math.random(-2,2),math.random(5,10),math.random(-2,2))
  1087. Blood.CFrame=hit.CFrame * CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  1088. Blood.Parent=workspace
  1089. coroutine.resume(coroutine.create(function(blod)
  1090. wait(2)
  1091. blod.Parent = nil
  1092. end),Blood)
  1093. end
  1094. h:TakeDamage(Damage)
  1095. -- showDamage(hit.Parent,Damage,.5)
  1096. vp=Instance.new("BodyVelocity")
  1097. vp.P=500
  1098. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1099. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1100. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1101. if Knockback>0 then
  1102. vp.Parent=hit.Parent.Torso
  1103. end
  1104. game:GetService("Debris"):AddItem(vp,.25)
  1105. --[[ r=Instance.new("BodyAngularVelocity")
  1106. r.P=3000
  1107. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  1108. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1109. r.Parent=hit.Parent.Torso]]
  1110. game:GetService("Debris"):AddItem(r,.5)
  1111. c=Instance.new("ObjectValue")
  1112. c.Name="creator"
  1113. c.Value=Player
  1114. c.Parent=h
  1115. game:GetService("Debris"):AddItem(c,.5)
  1116. CRIT=false
  1117. hitDeb=true
  1118. AttackPos=6
  1119. end
  1120. end
  1121. end
  1122.  
  1123. showDamage=function(Char,Dealt,du)
  1124. m=Instance.new("Model")
  1125. m.Name=tostring(Dealt)
  1126. h=Instance.new("Humanoid")
  1127. h.Health=0
  1128. h.MaxHealth=0
  1129. h.Parent=m
  1130. c=Instance.new("Part")
  1131. c.Transparency=0
  1132. c.CanCollide=false
  1133. if CRIT==true then
  1134. c.BrickColor=BrickColor.new("New Yeller")
  1135. else
  1136. c.BrickColor=BrickColor.new("Bright red")
  1137. end
  1138. c.Name="Head"
  1139. c.TopSurface=0
  1140. c.BottomSurface=0
  1141. c.formFactor="Plate"
  1142. c.Size=Vector3.new(1,.4,1)
  1143. ms=Instance.new("CylinderMesh")
  1144. ms.Scale=Vector3.new(.8,.8,.8)
  1145. if CRIT==true then
  1146. ms.Scale=Vector3.new(1.25,1.5,1.25)
  1147. end
  1148. ms.Parent=c
  1149. c.Reflectance=0
  1150. Instance.new("BodyGyro").Parent=c
  1151. c.Parent=m
  1152. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1153. f=Instance.new("BodyPosition")
  1154. f.P=2000
  1155. f.D=100
  1156. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1157. f.position=c.Position+Vector3.new(0,3,0)
  1158. f.Parent=c
  1159. game:GetService("Debris"):AddItem(m,.5+du)
  1160. c.CanCollide=false
  1161. m.Parent=workspace
  1162. c.CanCollide=false
  1163. end
  1164.  
  1165. hold = false
  1166.  
  1167. function ob1d(mouse)
  1168. hold = true
  1169. if attack == true then return end
  1170. if mode == "Fists" then
  1171. Punch()
  1172. elseif mode == "Minigun" then
  1173. getPos=function(Pos,TorsoPos)
  1174. return Vector3.new(Pos.x,TorsoPos.y,Pos.z)
  1175. end
  1176. coroutine.resume(coroutine.create(function()
  1177. while hold == true do
  1178. wait()
  1179. g.cframe=CFrame.new(Torso.Position,getPos(mouse.Hit.p,Torso.Position))
  1180. offset=(Torso.Position.y-mouse.Hit.p.y)/60
  1181. mag=(Torso.Position-mouse.Hit.p).magnitude/80
  1182. offset=offset/mag
  1183. necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1184. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(offset,0,0)
  1185. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.2+0.37-offset,0,0)
  1186. LW.C0 = CFrame.new(-1.5+1.5,0.5,-1.4) * CFrame.fromEulerAnglesXYZ(1.7,-offset,0.9)
  1187. end
  1188. Torso.Neck.C0=necko
  1189. end))
  1190. minigunshoop()
  1191. end
  1192. end
  1193.  
  1194. function ob1u(mouse)
  1195. hold = false
  1196. end
  1197.  
  1198. buttonhold = false
  1199.  
  1200. function key(key)
  1201. if key == "z" then
  1202. if mode == "Fists" then
  1203. Taunt()
  1204. elseif mode == "Minigun" then
  1205. readyshoot()
  1206. end
  1207. end
  1208. if attack == true then return end
  1209. if readytoshoot == true then return end
  1210. if key == "q" then
  1211. changeequipleft()
  1212. end
  1213. if key == "e" then
  1214. changeequipright()
  1215. end
  1216. end
  1217.  
  1218. function key2(key)
  1219. if key == "z" then
  1220. readytoshoot = false
  1221. end
  1222. end
  1223.  
  1224. function s(mouse)
  1225. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1226. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1227. mouse.KeyDown:connect(key)
  1228. mouse.KeyUp:connect(key2)
  1229. g=Instance.new("BodyGyro")
  1230. g.P=18000
  1231. g.D=600
  1232. g.maxTorque=Vector3.new(80000,80000000,80000)*50000000000000000000000000
  1233. g.cframe=Torso.CFrame
  1234. equipweld()
  1235. player = Player
  1236. ch = Character
  1237. equipped = true
  1238. RSH = ch.Torso["Right Shoulder"]
  1239. LSH = ch.Torso["Left Shoulder"]
  1240. --
  1241. RSH.Parent = nil
  1242. LSH.Parent = nil
  1243. --
  1244. RW.Part0 = ch.Torso
  1245. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1246. RW.C1 = CFrame.new(0, 0.5, 0)
  1247. RW.Part1 = ch["Right Arm"]
  1248. RW.Parent = ch.Torso
  1249. _G.R = RW
  1250. --
  1251. LW.Part0 = ch.Torso
  1252. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1253. LW.C1 = CFrame.new(0, 0.5, 0)
  1254. LW.Part1 = ch["Left Arm"]
  1255. LW.Parent = ch.Torso
  1256. _G.L = LW
  1257. --
  1258. equipanim()
  1259. end
  1260.  
  1261. function ds(mouse)
  1262. equipped = false
  1263. unequipweld()
  1264. wait(0.1)
  1265. RW.Parent = nil
  1266. LW.Parent = nil
  1267. RSH.Parent = player.Character.Torso
  1268. LSH.Parent = player.Character.Torso
  1269. end
  1270.  
  1271. Bin.Selected:connect(s)
  1272. Bin.Deselected:connect(ds)
  1273.  
  1274. while true do
  1275. wait()
  1276. if equipped == true then
  1277. rightfistweld.Parent = rightfist
  1278. leftfistweld.Parent = leftfist
  1279. model1.Parent = workspace
  1280. if mode == "Fists" then
  1281. elseif mode == "Minigun" then
  1282. model2.Parent = workspace
  1283. sashaweld1.Parent = minigun1
  1284. sashaweld2.Parent = minigun2
  1285. sashaweld3.Parent = minigun3
  1286. sashaweld4.Parent = minigun4
  1287. sashaweld5.Parent = minigun5
  1288. sashaweld6.Parent = minigun6
  1289. sashaweld7.Parent = minigun7
  1290. sashaweld8.Parent = minigun8
  1291. sashaweld9.Parent = minigun9
  1292. sashaweld10.Parent = minigun10
  1293. sashaweld11.Parent = minigun11
  1294. sashaweld12.Parent = minigun12
  1295. sashaweld13.Parent = minigun13
  1296. sashaweld14.Parent = minigun14
  1297. sashaweld15.Parent = minigun15
  1298. sashaweld16.Parent = minigun16
  1299. sashaweld17.Parent = minigun17
  1300. sashaweld18.Parent = minigun18
  1301. sashaweld19.Parent = minigun19
  1302. sashaweld20.Parent = minigun20
  1303. sashaweld21.Parent = minigun21
  1304. sashaweld22.Parent = minigun22
  1305. sashaweld23.Parent = minigun23
  1306. sashaweld24.Parent = minigun24
  1307. sashaweld25.Parent = minigun25
  1308. sashaweld26.Parent = minigun26
  1309. sashaweld27.Parent = minigun27
  1310. sashaweld28.Parent = minigun28
  1311. sashaweld29.Parent = minigun29
  1312. sashaweld30.Parent = minigun30
  1313. sashaweld31.Parent = minigun31
  1314. sashaweld32.Parent = minigun32
  1315. sashaweld33.Parent = minigun33
  1316. sashaweld34.Parent = minigun34
  1317. sashaweld35.Parent = minigun35
  1318. sashaweld36.Parent = minigun36
  1319. sashaweld37.Parent = minigun37
  1320. sashaweld38.Parent = minigun38
  1321. end
  1322. end
  1323. end
Add Comment
Please, Sign In to add comment