Advertisement
memesbruh03

Untitled

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