Advertisement
avivavivb

t

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