memberhero

Untitled

Jul 22nd, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.00 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2. Character = Player.Character
  3. script.Parent = Character
  4.  
  5. HColor = "Really black"
  6. HWidth = 0.5
  7. HBevel = 0.01
  8. HMesh = 0.06
  9.  
  10. --[[ * Fire Handle * ]]--
  11.  
  12. pcall(function() Character.Gun:Remove() end)
  13.  
  14. Gun = Instance.new("Model")
  15. Gun.Name = "Gun"
  16. Gun.Parent = Character
  17.  
  18. --[[ * Gui * ]]--
  19. --[[
  20. MG = Instance.new("ScreenGui",Player.PlayerGui)
  21.  
  22. BS = Instance.new("Frame")
  23. BS.Parent = MG
  24. BS.Size = UDim2.new(1,0,1,0)
  25. BS.Position = UDim2.new(0,0,0,0)
  26. BS.BackgroundColor3 = Color3.new(0,0,0)
  27. BS.BorderSizePixel = 0
  28. BS.BackgroundTransparency = 0
  29. wait(0.5)
  30. for i = 1,10 do wait()
  31. BS.BackgroundTransparency = BS.BackgroundTransparency + 0.1
  32. end
  33. ]]
  34. --[[ * Arm Weld * ]]--
  35.  
  36. ArmWeld = Instance.new("Weld")
  37. ArmWeld.Parent = Character["Torso"]
  38. ArmWeld.Part0 = ArmWeld.Parent
  39. ArmWeld.Part1 = Character["Right Arm"]
  40. ArmWeld.C0 = CFrame.new(1.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  41.  
  42. --[[ * Arm Weld * ]]--
  43.  
  44. ArmWeldR = Instance.new("Weld")
  45. ArmWeldR.Parent = Character["Torso"]
  46. ArmWeldR.Part0 = ArmWeldR.Parent
  47. ArmWeldR.Part1 = Character["Left Arm"]
  48. ArmWeldR.C0 = CFrame.new(-1.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  49.  
  50. --[[ * Neck Weld * ]]--
  51.  
  52. Neck = Instance.new("Weld")
  53. Neck.Parent = Character["Torso"]
  54. Neck.Part0 = Neck.Parent
  55. Neck.Part1 = Character["Head"]
  56. Neck.C0 = CFrame.new(0,1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  57.  
  58. --[[ * Handle * ]]--
  59.  
  60. Handle = Instance.new("Part")
  61. Handle.formFactor = "Custom"
  62. Handle.Locked = true
  63. Handle.CanCollide = false
  64. Handle.BrickColor = BrickColor.new("Really black")
  65. Handle.Anchored = false
  66. Handle.Size = Vector3.new(0.5,1,0.5)
  67. Handle.TopSurface = 0
  68. Handle.BottomSurface = 0
  69. Handle.Parent = Gun
  70. MeshA = Instance.new("BlockMesh",Handle)
  71. WeldA = Instance.new("Weld")
  72. WeldA.Parent = Handle
  73. WeldA.Part0 = Character["Right Arm"]
  74. WeldA.Part1 = Handle
  75. WeldA.C0 = CFrame.new(0,-1.1,-0.1) * CFrame.Angles(math.pi/2-0.2,0,0)
  76.  
  77. --[[ * Trigger * ]]--
  78.  
  79. Trigger = Instance.new("Part")
  80. Trigger.formFactor = "Custom"
  81. Trigger.Locked = true
  82. Trigger.CanCollide = false
  83. Trigger.BrickColor = BrickColor.Black()
  84. Trigger.Anchored = false
  85. Trigger.Size = Vector3.new(0.3,0.3,0.6)
  86. Trigger.TopSurface = 0
  87. Trigger.BottomSurface = 0
  88. Trigger.Parent = Gun
  89. MeshB = Instance.new("BlockMesh",Trigger)
  90. WeldB = Instance.new("Weld")
  91. WeldB.Parent = Trigger
  92. WeldB.Part0 = Handle
  93. WeldB.Part1 = Trigger
  94. WeldB.C0 = CFrame.new(0,-0.5,0.4) * CFrame.Angles(0.2,0,0)
  95.  
  96. --[[ * Barrel * ]]--
  97.  
  98. Barrel = Instance.new("Part")
  99. Barrel.formFactor = "Custom"
  100. Barrel.Locked = true
  101. Barrel.CanCollide = false
  102. Barrel.BrickColor = BrickColor.new("Really black")
  103. Barrel.Anchored = false
  104. Barrel.Size = Vector3.new(1.4,2,1.4)
  105. Barrel.TopSurface = 0
  106. Barrel.BottomSurface = 0
  107. Barrel.Parent = Gun
  108. MeshC = Instance.new("CylinderMesh",Barrel)
  109. WeldC = Instance.new("Weld")
  110. WeldC.Parent = Barrel
  111. WeldC.Part0 = Trigger
  112. WeldC.Part1 = Barrel
  113. WeldC.C0 = CFrame.new(0,-0.6,-0.4) * CFrame.Angles(math.pi/2,0,0)
  114.  
  115. --[[ * Fluid * ]]--
  116.  
  117. Fluid = Instance.new("Part")
  118. Fluid.formFactor = "Custom"
  119. Fluid.Locked = true
  120. Fluid.CanCollide = false
  121. Fluid.BrickColor = BrickColor.new(104)
  122. Fluid.Anchored = false
  123. Fluid.Transparency = 0
  124. Fluid.Reflectance = 0.25
  125. Fluid.Size = Vector3.new(1,1,1)
  126. Fluid.TopSurface = 0
  127. Fluid.BottomSurface = 0
  128. Fluid.Parent = Gun
  129. MeshD = Instance.new("CylinderMesh",Fluid)
  130. WeldD = Instance.new("Weld")
  131. WeldD.Parent = Fluid
  132. WeldD.Part0 = Barrel
  133. WeldD.Part1 = Fluid
  134. WeldD.C0 = CFrame.new(0,-1,0) * CFrame.Angles(0,0,0)
  135.  
  136. --[[ * CTrigger * ]]--
  137.  
  138. CTrigger = Instance.new("Part")
  139. CTrigger.formFactor = "Custom"
  140. CTrigger.Locked = true
  141. CTrigger.CanCollide = false
  142. CTrigger.BrickColor = BrickColor.new("Really black")
  143. CTrigger.Anchored = false
  144. CTrigger.Size = Vector3.new(1.25,0.5,1.25)
  145. CTrigger.TopSurface = 0
  146. CTrigger.BottomSurface = 0
  147. CTrigger.Parent = Gun
  148. MeshE = Instance.new("CylinderMesh",CTrigger)
  149. WeldE = Instance.new("Weld")
  150. WeldE.Parent = CTrigger
  151. WeldE.Part0 = Fluid
  152. WeldE.Part1 = CTrigger
  153. WeldE.C0 = CFrame.new(0,-0.5,0) * CFrame.Angles(0,0,0)
  154.  
  155. --[[ * BCap * ]]--
  156.  
  157. BCap = Instance.new("Part")
  158. BCap.formFactor = "Custom"
  159. BCap.Locked = true
  160. BCap.CanCollide = false
  161. BCap.BrickColor = BrickColor.new("Really black")
  162. BCap.Anchored = false
  163. BCap.Size = Vector3.new(1.25,0.5,1.25)
  164. BCap.TopSurface = 0
  165. BCap.BottomSurface = 0
  166. BCap.Parent = Gun
  167. MeshF = Instance.new("CylinderMesh",BCap)
  168. WeldF = Instance.new("Weld")
  169. WeldF.Parent = BCap
  170. WeldF.Part0 = Fluid
  171. WeldF.Part1 = BCap
  172. WeldF.C0 = CFrame.new(0,0.5,0) * CFrame.Angles(0,0,0)
  173.  
  174. --[[ * Hole * ]]--
  175.  
  176. Hole = Instance.new("Part")
  177. Hole.formFactor = "Custom"
  178. Hole.Locked = true
  179. Hole.CanCollide = false
  180. Hole.BrickColor = BrickColor.new("Really black")
  181. Hole.Anchored = false
  182. Hole.Size = Vector3.new(0.7,1,0.7)
  183. Hole.TopSurface = 0
  184. Hole.BottomSurface = 0
  185. Hole.Parent = Gun
  186. MeshG = Instance.new("CylinderMesh",Hole)
  187. WeldG = Instance.new("Weld")
  188. WeldG.Parent = Hole
  189. WeldG.Part0 = Barrel
  190. WeldG.Part1 = Hole
  191. WeldG.C0 = CFrame.new(0,0.51,0) * CFrame.Angles(0,0,0)
  192.  
  193. --[[ * JointA * ]]--
  194.  
  195. JointA = Instance.new("Part")
  196. JointA.formFactor = "Custom"
  197. JointA.Locked = true
  198. JointA.CanCollide = false
  199. JointA.BrickColor = BrickColor.new(HColor)
  200. JointA.Anchored = false
  201. JointA.Size = Vector3.new(HWidth,1,0.2)
  202. JointA.TopSurface = 0
  203. JointA.BottomSurface = 0
  204. JointA.Parent = Gun
  205. MeshH = Instance.new("BlockMesh",JointA)
  206. WeldH = Instance.new("Weld")
  207. WeldH.Parent = JointA
  208. WeldH.Part0 = Hole
  209. WeldH.Part1 = JointA
  210. WeldH.C0 = CFrame.new(0,0.5,0.5) * CFrame.Angles(0,0,0)
  211.  
  212. --[[ * JointB * ]]--
  213.  
  214. JointB = Instance.new("Part")
  215. JointB.formFactor = "Custom"
  216. JointB.Locked = true
  217. JointB.CanCollide = false
  218. JointB.BrickColor = BrickColor.new(HColor)
  219. JointB.Anchored = false
  220. JointB.Size = Vector3.new(HWidth,1,0.2)
  221. JointB.TopSurface = 0
  222. JointB.BottomSurface = 0
  223. JointB.Parent = Gun
  224. MeshI = Instance.new("BlockMesh",JointB)
  225. WeldI = Instance.new("Weld")
  226. WeldI.Parent = JointB
  227. WeldI.Part0 = Hole
  228. WeldI.Part1 = JointB
  229. WeldI.C0 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0,math.pi,0)
  230.  
  231. --[[ * JointC * ]]--
  232.  
  233. JointC = Instance.new("Part")
  234. JointC.formFactor = "Custom"
  235. JointC.Locked = true
  236. JointC.CanCollide = false
  237. JointC.BrickColor = BrickColor.new(HColor)
  238. JointC.Anchored = false
  239. JointC.Size = Vector3.new(HWidth,1,0.2)
  240. JointC.TopSurface = 0
  241. JointC.BottomSurface = 0
  242. JointC.Parent = Gun
  243. MeshJ = Instance.new("BlockMesh",JointC)
  244. WeldJ = Instance.new("Weld")
  245. WeldJ.Parent = JointC
  246. WeldJ.Part0 = Hole
  247. WeldJ.Part1 = JointC
  248. WeldJ.C0 = CFrame.new(0.5,0.5,0) * CFrame.Angles(0,math.pi/2,0)
  249.  
  250. --[[ * JointD * ]]--
  251.  
  252. JointD = Instance.new("Part")
  253. JointD.formFactor = "Custom"
  254. JointD.Locked = true
  255. JointD.CanCollide = false
  256. JointD.BrickColor = BrickColor.new(HColor)
  257. JointD.Anchored = false
  258. JointD.Size = Vector3.new(HWidth,1,0.2)
  259. JointD.TopSurface = 0
  260. JointD.BottomSurface = 0
  261. JointD.Parent = Gun
  262. MeshK = Instance.new("BlockMesh",JointD)
  263. WeldK = Instance.new("Weld")
  264. WeldK.Parent = JointD
  265. WeldK.Part0 = Hole
  266. WeldK.Part1 = JointD
  267. WeldK.C0 = CFrame.new(-0.5,0.5,0) * CFrame.Angles(0,-math.pi/2,0)
  268.  
  269. --[[ * JointE * ]]--
  270.  
  271. JointE = Instance.new("Part")
  272. JointE.formFactor = "Custom"
  273. JointE.Locked = true
  274. JointE.CanCollide = false
  275. JointE.BrickColor = BrickColor.new(HColor)
  276. JointE.Anchored = false
  277. JointE.Size = Vector3.new(HWidth,1,0.2)
  278. JointE.TopSurface = 0
  279. JointE.BottomSurface = 0
  280. JointE.Parent = Gun
  281. MeshL = Instance.new("BlockMesh",JointE)
  282. WeldL = Instance.new("Weld")
  283. WeldL.Parent = JointE
  284. WeldL.Part0 = Hole
  285. WeldL.Part1 = JointE
  286. WeldL.C0 = CFrame.new(-0.35,0.5,0.35) * CFrame.Angles(0,-math.pi/2/2,0)
  287.  
  288. --[[ * JointF * ]]--
  289.  
  290. JointF = Instance.new("Part")
  291. JointF.formFactor = "Custom"
  292. JointF.Locked = true
  293. JointF.CanCollide = false
  294. JointF.BrickColor = BrickColor.new(HColor)
  295. JointF.Anchored = false
  296. JointF.Size = Vector3.new(HWidth,1,0.2)
  297. JointF.TopSurface = 0
  298. JointF.BottomSurface = 0
  299. JointF.Parent = Gun
  300. MeshM = Instance.new("BlockMesh",JointF)
  301. WeldM = Instance.new("Weld")
  302. WeldM.Parent = JointF
  303. WeldM.Part0 = Hole
  304. WeldM.Part1 = JointF
  305. WeldM.C0 = CFrame.new(0.35,0.5,0.35) * CFrame.Angles(0,math.pi/2/2,0)
  306.  
  307. --[[ * JointG * ]]--
  308.  
  309. JointG = Instance.new("Part")
  310. JointG.formFactor = "Custom"
  311. JointG.Locked = true
  312. JointG.CanCollide = false
  313. JointG.BrickColor = BrickColor.new(HColor)
  314. JointG.Anchored = false
  315. JointG.Size = Vector3.new(HWidth,1,0.2)
  316. JointG.TopSurface = 0
  317. JointG.BottomSurface = 0
  318. JointG.Parent = Gun
  319. MeshN = Instance.new("BlockMesh",JointG)
  320. WeldN = Instance.new("Weld")
  321. WeldN.Parent = JointG
  322. WeldN.Part0 = Hole
  323. WeldN.Part1 = JointG
  324. WeldN.C0 = CFrame.new(-0.35,0.5,-0.35) * CFrame.Angles(0,math.pi/2/2,0)
  325.  
  326. --[[ * JointH * ]]--
  327.  
  328. JointH = Instance.new("Part")
  329. JointH.formFactor = "Custom"
  330. JointH.Locked = true
  331. JointH.CanCollide = false
  332. JointH.BrickColor = BrickColor.new(HColor)
  333. JointH.Anchored = false
  334. JointH.Size = Vector3.new(HWidth,1,0.2)
  335. JointH.TopSurface = 0
  336. JointH.BottomSurface = 0
  337. JointH.Parent = Gun
  338. MeshO = Instance.new("BlockMesh",JointH)
  339. WeldO = Instance.new("Weld")
  340. WeldO.Parent = JointH
  341. WeldO.Part0 = Hole
  342. WeldO.Part1 = JointH
  343. WeldO.C0 = CFrame.new(0.35,0.5,-0.35) * CFrame.Angles(0,-math.pi/2/2,0)
  344.  
  345. --[[ * PartX * ]]--
  346.  
  347. PartX = Instance.new("Part")
  348. PartX.formFactor = "Custom"
  349. PartX.Locked = true
  350. PartX.CanCollide = false
  351. PartX.BrickColor = BrickColor.new(HColor)
  352. PartX.Anchored = false
  353. PartX.Size = Vector3.new(HWidth,0.2,0.5)
  354. PartX.TopSurface = 0
  355. PartX.BottomSurface = 0
  356. PartX.Parent = Gun
  357. MeshX1 = Instance.new("BlockMesh",PartX)
  358. WeldX = Instance.new("Weld")
  359. WeldX.Parent = PartX
  360. WeldX.Part0 = JointA
  361. WeldX.Part1 = PartX
  362. WeldX.C0 = CFrame.new(0,0.4,-0.2) * CFrame.Angles(0,0,0)
  363.  
  364. --[[ * PartX * ]]--
  365.  
  366. PartX = Instance.new("Part")
  367. PartX.formFactor = "Custom"
  368. PartX.Locked = true
  369. PartX.CanCollide = false
  370. PartX.BrickColor = BrickColor.new(HColor)
  371. PartX.Anchored = false
  372. PartX.Size = Vector3.new(HWidth,0.2,0.5)
  373. PartX.TopSurface = 0
  374. PartX.BottomSurface = 0
  375. PartX.Parent = Gun
  376. MeshX2 = Instance.new("BlockMesh",PartX)
  377. WeldX = Instance.new("Weld")
  378. WeldX.Parent = PartX
  379. WeldX.Part0 = JointB
  380. WeldX.Part1 = PartX
  381. WeldX.C0 = CFrame.new(0,0.4,-0.2) * CFrame.Angles(0,0,0)
  382.  
  383. --[[ * PartX * ]]--
  384.  
  385. PartX = Instance.new("Part")
  386. PartX.formFactor = "Custom"
  387. PartX.Locked = true
  388. PartX.CanCollide = false
  389. PartX.BrickColor = BrickColor.new(HColor)
  390. PartX.Anchored = false
  391. PartX.Size = Vector3.new(HWidth,0.2,0.5)
  392. PartX.TopSurface = 0
  393. PartX.BottomSurface = 0
  394. PartX.Parent = Gun
  395. MeshX3 = Instance.new("BlockMesh",PartX)
  396. WeldX = Instance.new("Weld")
  397. WeldX.Parent = PartX
  398. WeldX.Part0 = JointC
  399. WeldX.Part1 = PartX
  400. WeldX.C0 = CFrame.new(0,0.4,-0.2) * CFrame.Angles(0,0,0)
  401.  
  402. --[[ * PartX * ]]--
  403.  
  404. PartX = Instance.new("Part")
  405. PartX.formFactor = "Custom"
  406. PartX.Locked = true
  407. PartX.CanCollide = false
  408. PartX.BrickColor = BrickColor.new(HColor)
  409. PartX.Anchored = false
  410. PartX.Size = Vector3.new(HWidth,0.2,0.5)
  411. PartX.TopSurface = 0
  412. PartX.BottomSurface = 0
  413. PartX.Parent = Gun
  414. MeshX4 = Instance.new("BlockMesh",PartX)
  415. WeldX = Instance.new("Weld")
  416. WeldX.Parent = PartX
  417. WeldX.Part0 = JointD
  418. WeldX.Part1 = PartX
  419. WeldX.C0 = CFrame.new(0,0.4,-0.2) * CFrame.Angles(0,0,0)
  420.  
  421. --[[ * PartX * ]]--
  422.  
  423. PartX = Instance.new("Part")
  424. PartX.formFactor = "Custom"
  425. PartX.Locked = true
  426. PartX.CanCollide = false
  427. PartX.BrickColor = BrickColor.new(HColor)
  428. PartX.Anchored = false
  429. PartX.Size = Vector3.new(HWidth,0.2,0.5)
  430. PartX.TopSurface = 0
  431. PartX.BottomSurface = 0
  432. PartX.Parent = Gun
  433. MeshX5 = Instance.new("BlockMesh",PartX)
  434. WeldX = Instance.new("Weld")
  435. WeldX.Parent = PartX
  436. WeldX.Part0 = JointE
  437. WeldX.Part1 = PartX
  438. WeldX.C0 = CFrame.new(0,0.4,-0.2) * CFrame.Angles(0,0,0)
  439.  
  440. --[[ * PartX * ]]--
  441.  
  442. PartX = Instance.new("Part")
  443. PartX.formFactor = "Custom"
  444. PartX.Locked = true
  445. PartX.CanCollide = false
  446. PartX.BrickColor = BrickColor.new(HColor)
  447. PartX.Anchored = false
  448. PartX.Size = Vector3.new(HWidth,0.2,0.5)
  449. PartX.TopSurface = 0
  450. PartX.BottomSurface = 0
  451. PartX.Parent = Gun
  452. MeshX6 = Instance.new("BlockMesh",PartX)
  453. WeldX = Instance.new("Weld")
  454. WeldX.Parent = PartX
  455. WeldX.Part0 = JointF
  456. WeldX.Part1 = PartX
  457. WeldX.C0 = CFrame.new(0,0.4,-0.2) * CFrame.Angles(0,0,0)
  458.  
  459. --[[ * PartX * ]]--
  460.  
  461. PartX = Instance.new("Part")
  462. PartX.formFactor = "Custom"
  463. PartX.Locked = true
  464. PartX.CanCollide = false
  465. PartX.BrickColor = BrickColor.new(HColor)
  466. PartX.Anchored = false
  467. PartX.Size = Vector3.new(HWidth,0.2,0.5)
  468. PartX.TopSurface = 0
  469. PartX.BottomSurface = 0
  470. PartX.Parent = Gun
  471. MeshX7 = Instance.new("BlockMesh",PartX)
  472. WeldX = Instance.new("Weld")
  473. WeldX.Parent = PartX
  474. WeldX.Part0 = JointG
  475. WeldX.Part1 = PartX
  476. WeldX.C0 = CFrame.new(0,0.4,0.2) * CFrame.Angles(0,0,0)
  477.  
  478. --[[ * PartX * ]]--
  479.  
  480. PartX = Instance.new("Part")
  481. PartX.formFactor = "Custom"
  482. PartX.Locked = true
  483. PartX.CanCollide = false
  484. PartX.BrickColor = BrickColor.new(HColor)
  485. PartX.Anchored = false
  486. PartX.Size = Vector3.new(HWidth,0.2,0.5)
  487. PartX.TopSurface = 0
  488. PartX.BottomSurface = 0
  489. PartX.Parent = Gun
  490. MeshX8 = Instance.new("BlockMesh",PartX)
  491. WeldX = Instance.new("Weld")
  492. WeldX.Parent = PartX
  493. WeldX.Part0 = JointH
  494. WeldX.Part1 = PartX
  495. WeldX.C0 = CFrame.new(0,0.4,0.2) * CFrame.Angles(0,0,0)
  496.  
  497. for i = 1,7 do
  498. WeldD.C0 = WeldD.C0 - Vector3.new(0,0.1*i,0)
  499. end
  500. for i = 1,7 do wait()
  501. WeldD.C0 = WeldD.C0 + Vector3.new(0,0.1*i,0)
  502. end
  503.  
  504. function ShootOn()
  505.  
  506. for i = 1,7 do wait()
  507. WeldD.C0 = WeldD.C0 - Vector3.new(0,0.01*i,0)
  508. WeldA.C0 = WeldA.C0 + Vector3.new(0,0.01*i,0)
  509. ArmWeld.C0 = ArmWeld.C0 + Vector3.new(0,0,0.01*i/2)
  510. ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(0,0,0.02*i/2)
  511. WeldH.C0 = WeldH.C0 * CFrame.Angles(0.1*i/3,0,0)
  512. WeldI.C0 = WeldI.C0 * CFrame.Angles(0.1*i/3,0,0)
  513. WeldJ.C0 = WeldJ.C0 * CFrame.Angles(0.1*i/3,0,0)
  514. WeldK.C0 = WeldK.C0 * CFrame.Angles(0.1*i/3,0,0)
  515. WeldL.C0 = WeldL.C0 * CFrame.Angles(0.1*i/3,0,0)
  516. WeldM.C0 = WeldM.C0 * CFrame.Angles(0.1*i/3,0,0)
  517. WeldN.C0 = WeldN.C0 * CFrame.Angles(-0.1*i/3,0,0)
  518. WeldO.C0 = WeldO.C0 * CFrame.Angles(-0.1*i/3,0,0)
  519. MeshH.Scale = MeshH.Scale + Vector3.new(HMesh,0,0)
  520. MeshI.Scale = MeshI.Scale + Vector3.new(HMesh,0,0)
  521. MeshJ.Scale = MeshJ.Scale + Vector3.new(HMesh,0,0)
  522. MeshK.Scale = MeshK.Scale + Vector3.new(HMesh,0,0)
  523. MeshL.Scale = MeshL.Scale + Vector3.new(HMesh,0,0)
  524. MeshM.Scale = MeshM.Scale + Vector3.new(HMesh,0,0)
  525. MeshN.Scale = MeshN.Scale + Vector3.new(HMesh,0,0)
  526. MeshO.Scale = MeshO.Scale + Vector3.new(HMesh,0,0)
  527. MeshX1.Scale = MeshX1.Scale + Vector3.new(HMesh,0,0)
  528. MeshX2.Scale = MeshX1.Scale
  529. MeshX3.Scale = MeshX1.Scale
  530. MeshX4.Scale = MeshX1.Scale
  531. MeshX5.Scale = MeshX1.Scale
  532. MeshX6.Scale = MeshX1.Scale
  533. MeshX7.Scale = MeshX1.Scale
  534. MeshX8.Scale = MeshX1.Scale
  535. end
  536. end
  537.  
  538. function ShootOff()
  539. for i = 1,7 do wait()
  540. WeldD.C0 = WeldD.C0 + Vector3.new(0,0.01*i,0)
  541. WeldA.C0 = WeldA.C0 - Vector3.new(0,0.01*i,0)
  542. ArmWeld.C0 = ArmWeld.C0 - Vector3.new(0,0,0.01*i/2)
  543. ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(0,0,0.02*i/2)
  544. WeldH.C0 = WeldH.C0 * CFrame.Angles(-0.1*i/3,0,0)
  545. WeldI.C0 = WeldI.C0 * CFrame.Angles(-0.1*i/3,0,0)
  546. WeldJ.C0 = WeldJ.C0 * CFrame.Angles(-0.1*i/3,0,0)
  547. WeldK.C0 = WeldK.C0 * CFrame.Angles(-0.1*i/3,0,0)
  548. WeldL.C0 = WeldL.C0 * CFrame.Angles(-0.1*i/3,0,0)
  549. WeldM.C0 = WeldM.C0 * CFrame.Angles(-0.1*i/3,0,0)
  550. WeldN.C0 = WeldN.C0 * CFrame.Angles(0.1*i/3,0,0)
  551. WeldO.C0 = WeldO.C0 * CFrame.Angles(0.1*i/3,0,0)
  552. MeshH.Scale = MeshH.Scale - Vector3.new(HMesh,0,0)
  553. MeshI.Scale = MeshI.Scale - Vector3.new(HMesh,0,0)
  554. MeshJ.Scale = MeshJ.Scale - Vector3.new(HMesh,0,0)
  555. MeshK.Scale = MeshK.Scale - Vector3.new(HMesh,0,0)
  556. MeshL.Scale = MeshL.Scale - Vector3.new(HMesh,0,0)
  557. MeshM.Scale = MeshM.Scale - Vector3.new(HMesh,0,0)
  558. MeshN.Scale = MeshN.Scale - Vector3.new(HMesh,0,0)
  559. MeshO.Scale = MeshO.Scale - Vector3.new(HMesh,0,0)
  560. MeshX1.Scale = MeshX1.Scale - Vector3.new(HMesh,0,0)
  561. MeshX2.Scale = MeshX1.Scale
  562. MeshX3.Scale = MeshX1.Scale
  563. MeshX4.Scale = MeshX1.Scale
  564. MeshX5.Scale = MeshX1.Scale
  565. MeshX6.Scale = MeshX1.Scale
  566. MeshX7.Scale = MeshX1.Scale
  567. MeshX8.Scale = MeshX1.Scale
  568. end
  569. end
  570.  
  571. ReloadT = false
  572.  
  573. function Reload()
  574. if EndBlah == false and ReloadT == true then
  575. for i = 1,10 do wait()
  576. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(-0.1,0,0.1)
  577. ArmWeld.C0 = ArmWeld.C0 + Vector3.new(0.04,-0.05,0)
  578. ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(0.04,0,0)
  579. ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(0.11,0.02,0)
  580. end
  581. for i = 1,10 do wait()
  582. ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(0.04,0,0)
  583. ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(0.05,-0.04,0)
  584. WeldD.C0 = WeldD.C0 - Vector3.new(0,0.1,0)
  585. end
  586. WeldD.Part0 = Character["Left Arm"]
  587. WeldD.C0 = CFrame.new(0.3,-0.65,0.85) * CFrame.Angles(math.pi/2-0.3,0,-0.2)
  588. for i = 1,10 do wait()--
  589. ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(0.04,0,0)
  590. ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(0.05,-0.04,0)
  591. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(0,0.05,-0.1)
  592. WeldA.C0 = WeldA.C0 * CFrame.Angles(0,-0.031,0)
  593. end
  594. for i = 1,10 do wait() --
  595. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(-0.1,0,0)
  596. ArmWeld.C0 = ArmWeld.C0 - Vector3.new(0.03,0.01,-0.05)
  597. ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-0.1,-0.1,-0.05)
  598. ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(0.1,0.06,0.03)
  599. end
  600. for i = 1,10 do wait() --
  601. ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-math.pi/10/2,0,0)
  602. ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(0,0.1,-0.1)
  603. end
  604. for i = 1,10 do wait() --
  605. Fluid.Transparency = Fluid.Transparency - 0.1
  606. ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-math.pi/10/2/2/2/2,0,math.pi/10/2/2/2)
  607. ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(-0.01,0.01,0)
  608. end
  609. Fluid.Transparency = 0
  610. for i = 1,10 do wait()
  611. ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(-0.01,0.01,0)
  612. ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(math.pi/10/2/2/2/2,0,-math.pi/10/2/2/2)
  613. end
  614. for i = 1,10 do wait()
  615. ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(0,0.1,-0.1)
  616. ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(math.pi/10/2,0,0)
  617. end
  618. for i = 1,10 do wait()
  619. ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(0.1,0.06,0.03)
  620. ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(0.1,0.1,0.05)
  621. ArmWeld.C0 = ArmWeld.C0 + Vector3.new(0.03,0.01,-0.05)
  622. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(0.1,0,0)
  623. end
  624. for i = 1,10 do wait()
  625. WeldA.C0 = WeldA.C0 * CFrame.Angles(0,0.031,0)
  626. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(0,-0.05,0.1)
  627. ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(0.05,-0.04,0)
  628. ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-0.04,0,0)
  629. end
  630. for i = 1,10 do wait()
  631. ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(0.05,-0.04,0)
  632. ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-0.04,0,0)
  633. WeldD.C0 = WeldD.C0 * CFrame.Angles(0.05,0,0)
  634. WeldD.C0 = WeldD.C0 + Vector3.new(0,-0.04,0.07)
  635. end
  636. WeldD.Part0 = Barrel
  637. WeldD.C0 = CFrame.new(0,-1,0) * CFrame.Angles(0,0,0)
  638. for i = 1,10 do wait()
  639. ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(0.11,0.02,0)
  640. ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-0.04,0,0)
  641. ArmWeld.C0 = ArmWeld.C0 - Vector3.new(0.04,-0.05,0)
  642. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(0.1,0,-0.1)
  643. end
  644. ArmWeld.C0 = CFrame.new(1.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  645. ArmWeldR.C0 = CFrame.new(-1.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  646. for i = 1,10 do
  647. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(math.pi/10/2/2,0,0)
  648. ArmWeld.C0 = ArmWeld.C0 - Vector3.new(0,0,0.05)
  649. end
  650. ArmWeldR.C0 = CFrame.new(-1.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  651. for i = 1,10 do
  652. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(math.pi/10/2/2,0,0)
  653. ArmWeld.C0 = ArmWeld.C0 + Vector3.new(-0.04,0.06,0.03)
  654. ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(math.pi/10/2,-0.05,0.1)
  655. ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(-0.12,-0.05,0.05)
  656. end
  657. ReloadT = false
  658. end
  659. end
  660.  
  661. function Shoot(a)
  662. local p = Instance.new("Part")
  663. p.Locked = true
  664. p.CanCollide = false
  665. p.Anchored = false
  666. p.formFactor = "Custom"
  667. p.Shape = "Ball"
  668. p.TopSurface = 0
  669. p.BottomSurface = 0
  670. p.BrickColor = BrickColor.new(104)
  671. p.Size = Vector3.new(0.8,0.8,0.8)
  672. p.Reflectance = 0.25
  673. local s = Instance.new("Sparkles")
  674. s.Parent = p
  675. local g = Instance.new("BodyGyro")
  676. g.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  677. g.Parent = p
  678. local b = Instance.new("BodyVelocity")
  679. b.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  680. b.Parent = p
  681. p.Parent = game.Workspace
  682. p.CFrame = Hole.CFrame
  683. g.cframe = CFrame.new(Hole.Position,a)
  684. b.velocity = g.cframe.lookVector * 50
  685. p.Touched:connect(function(h)
  686. if h.Parent.Name ~= "Gun" and h.Parent.Name ~= "bob371" then
  687. local e = Instance.new("Explosion")
  688. e.BlastRadius = 20
  689. e.Position = p.Position
  690. e.Parent = game.Workspace
  691. end
  692. end)
  693. end
  694.  
  695. --[[ * Tool * ]]--
  696.  
  697. if script.Parent.Name == Player.Name then
  698. Hopper = Instance.new("HopperBin")
  699. Hopper.Name = "Plasma Cannon"
  700. Hopper.Parent = Player.Backpack
  701. end
  702.  
  703. Blah = true
  704. EndBlah = true
  705.  
  706. function Clicked(Mouse)
  707. if Blah == true and EndBlah == false then
  708. Blah = false
  709. if Fluid.Transparency <= 0.9 then
  710. ShootOn()
  711. Shoot(Mouse.Hit.p)
  712. Fluid.Transparency = Fluid.Transparency + 0.1
  713. ShootOff()
  714. else
  715. ReloadT = true
  716. end
  717. Blah = true
  718. end
  719. end
  720.  
  721. function onKeyDown(key)
  722. if Blah == true then
  723. Blah = false
  724.  
  725. if key == "p" then
  726. if EndBlah == true then
  727. for i = 1,10 do wait()
  728. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(math.pi/10/2/2,0,0)
  729. ArmWeld.C0 = ArmWeld.C0 - Vector3.new(0,0,0.05)
  730. end
  731. ArmWeldR.C0 = CFrame.new(-1.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  732. for i = 1,10 do wait()
  733. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(math.pi/10/2/2,0,0)
  734. ArmWeld.C0 = ArmWeld.C0 + Vector3.new(-0.04,0.06,0.03)
  735. ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(math.pi/10/2,-0.05,0.1)
  736. ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(-0.12,-0.05,0.05)
  737. end
  738. EndBlah = false
  739. elseif EndBlah == false then
  740. for i = 1,10 do wait()
  741. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(-math.pi/10/2/2,0,0)
  742. ArmWeld.C0 = ArmWeld.C0 - Vector3.new(-0.04,0.06,0.03)
  743. ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-math.pi/10/2,0.05,-0.1)
  744. ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(-0.12,-0.05,0.05)
  745. end
  746. ArmWeldR.C0 = CFrame.new(-1.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  747. for i = 1,10 do wait()
  748. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(-math.pi/10/2/2,0,0)
  749. ArmWeld.C0 = ArmWeld.C0 + Vector3.new(0,0,0.05)
  750. end
  751. EndBlah = true
  752. end
  753. end
  754.  
  755. if key == "r" then
  756. Reload()
  757. end
  758.  
  759. Blah = true
  760. return
  761. end
  762. end
  763.  
  764.  
  765. function Selected(Mouse)
  766. Mouse.Icon = "rbxasset://textures\\GunCursor.png"
  767. Mouse.KeyDown:connect(onKeyDown)
  768. Mouse.Button1Down:connect(function()Clicked(Mouse)end)
  769. end
  770.  
  771. function Deselected(Mouse)
  772. end
  773.  
  774. function Dead()
  775. end
  776.  
  777. Character.Humanoid.Died:connect(Dead)
  778. Hopper.Selected:connect(Selected)
  779. Hopper.Deselected:connect(Deselected)
Add Comment
Please, Sign In to add comment