yamanohera155233

Untitled

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