Advertisement
RazorShockk

Roblox Plasma Cannons Script

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