Advertisement
lafur

Untitled

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