Advertisement
memberhero

Plasma2

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