c00lkiddv2016

MLG BASS CANNON

May 21st, 2016
2,353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.98 KB | None | 0 0
  1. baws = game.Players.LocalPlayer --[[muchi]]
  2. bin = Instance.new("HopperBin",baws.Backpack)
  3. bin.Name = "~Xx Bass Cannon xX~"
  4. script.Parent = bin
  5. mlg1 = Instance.new("Sound",workspace)
  6. mlg1.Volume = 1
  7. mlg1.Pitch = 1
  8. mlg1.SoundId = "http://www.roblox.com/asset/?id=142353945"
  9. mlg2 = Instance.new("Sound",workspace)
  10. mlg2.Volume = 1
  11. mlg2.Pitch = 1
  12. mlg2.SoundId = "http://www.roblox.com/asset/?id=179497874"
  13. button = Instance.new("Sound",workspace)
  14. button.Volume = 1
  15. button.Pitch = 0.1
  16. button.SoundId = "rbxasset://sounds/button.wav"
  17. button:Stop()
  18. button2 = Instance.new("Sound",workspace)
  19. button2.Volume = 1
  20. button2.Pitch = button.Pitch
  21. button2.SoundId = "rbxasset://sounds/button.wav"
  22. button2:Stop()
  23. function wubify()
  24.  
  25. end
  26. function shake()
  27. camera = workspace.CurrentCamera
  28. wait()
  29. camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(0,2,0)
  30. wait(math.random(1/30,.1))
  31. camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(0,-2,0)
  32. end
  33. function shakeon()
  34. for i = 1,30 do
  35. wait()
  36. shake()
  37. end
  38. wait()
  39. camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(0,0,0)
  40. end
  41. function onButton1Down(mouse)
  42. if not p then
  43. button:Play()
  44. kickback()
  45. recoil()
  46. wait(0.3)
  47. recoil()
  48. fire()
  49. elseif p then
  50. button:Play()
  51. p:remove()
  52. wait()
  53. kickback()
  54. recoil()
  55. wait(0.3)
  56. recoil()
  57. fire()
  58. end
  59. end
  60. function partsCompile()
  61. makeBasePart()
  62. wait()
  63. barrle()
  64. wait()
  65. stock()
  66. end
  67. function recoil()
  68. barrle.CFrame = BasePart.CFrame*CFrame.new(0,2,-15.9)*CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  69. wait()
  70. barrle.CFrame = BasePart.CFrame*CFrame.new(0,2,-15.8)*CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  71. wait()
  72. barrle.CFrame = BasePart.CFrame*CFrame.new(0,2,-15.7)*CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  73. wait()
  74. barrle.CFrame = BasePart.CFrame*CFrame.new(0,2,-16)*CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  75. end
  76. function makeBasePart()
  77. ff = Instance.new("ForceField",baws.Character)
  78. BasePart = Instance.new("Part",baws.Character)
  79. BasePart.Size = Vector3.new(1,1,1)
  80. BasePart.Transparency = 1
  81. BasePart.Anchored = true
  82. BasePart.Locked = false
  83. BasePart.CanCollide = false
  84. BasePart.CFrame = baws.Character.Torso.CFrame*CFrame.new(0,0,0)
  85. end
  86. function onTouch(touch)
  87. if touch == wow then
  88. wait()
  89. p.Touched:connect(onTouch)
  90. else
  91. button2:Play()
  92. wait()
  93. button2:Play()
  94. wait()
  95. button2:Play()
  96. wait()
  97. button2:Play()
  98. wait()
  99. button2:Play()
  100. wait()
  101. if touch.ClassName == "Part" then
  102. game.Lighting.TimeOfDay = 6
  103. game.Lighting.Ambient = Color3.new(1,0,0)
  104. lol = Instance.new("Explosion",workspace)
  105. lol.Position = touch.Position
  106. lol.BlastRadius = 35
  107. lol.BlastPressure = 900000
  108. shakeon()
  109. wait(1)
  110. game.Lighting.Ambient = Color3.new(93,93,93)
  111. game.Lighting.TimeOfDay = 14
  112. game.Lighting.Brightness = 1
  113. touch.Reflectance = 1
  114. if p ~= nil then
  115. p:remove()
  116. if O ~= nil then
  117. O:remove()
  118. if wow ~= nil then
  119. wow:remove()
  120. end
  121. end
  122. end
  123. end
  124. end
  125. end
  126. function projectile()
  127. mlg1:Play()
  128. mlg2:Play()
  129. p = Instance.new("Part")
  130. p.Parent = workspace
  131. p.Anchored = true
  132. p.Size = Vector3.new(12, 12, 12)
  133. p.CanCollide = true
  134. p.Transparency = 0.5
  135. p.Reflectance = 0.3
  136. p.Shape = "Ball"
  137. p.Name = "StrongBlast"
  138. p.BrickColor = BrickColor.new("Lime green")
  139. p.TopSurface = "Smooth"
  140. p.BottomSurface = "Smooth"
  141. p.CFrame = BasePart.CFrame*CFrame.new(0,-1,-24)*CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  142. pie = Instance.new("Fire")
  143. pie.Name = "PwnFire"
  144. pie.Parent = p
  145. pie.Size = 60
  146. pie.Color = BrickColor.new("Lime green").Color
  147. pie.SecondaryColor = BrickColor.new("Really black").Color
  148. pie2 = Instance.new("Sparkles")
  149. pie2.Name = "PwnSparkles"
  150. pie2.Parent = p
  151. pie2.Color = BrickColor.new("Really red").Color
  152. O = Instance.new("Part",p)
  153. O.Anchored = true
  154. O.CanCollide = false
  155. O.Transparency = 0
  156. O.Reflectance = 0.3
  157. O.formFactor = "Symmetric"
  158. O.Size = Vector3.new(0, 0, 0)
  159. O.TopSurface = "Smooth"
  160. O.BottomSurface = "Smooth"
  161. O.Name = "Sharingan"
  162. O.Shape = "Ball"
  163. O.CFrame = p.CFrame*CFrame.fromEulerAnglesXYZ(1.5, 0, 0)
  164. O.BrickColor = BrickColor.new("Toothpaste")
  165. Mesh = Instance.new("SpecialMesh")
  166. Mesh.Parent = O
  167. Mesh.MeshType = "FileMesh"
  168. Mesh.Scale = Vector3.new(1.3, 1.3, 1.3)
  169. Mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  170. Mesh.TextureId = ""
  171. wow = Instance.new("Part",p)
  172. wow.Anchored = true
  173. wow.CanCollide = false
  174. wow.Transparency = 0.5
  175. wow.Reflectance = 0.5
  176. wow.formFactor = "Symmetric"
  177. wow.Size = Vector3.new(0, 0, 0)
  178. wow.TopSurface = "Smooth"
  179. wow.BottomSurface = "Smooth"
  180. wow.Name = "Sharingan"
  181. wow.Shape = "Ball"
  182. wow.CFrame = p.CFrame*CFrame.fromEulerAnglesXYZ(1.5, 0, 0)
  183. wow.BrickColor = BrickColor.new("Really black")
  184. Mesh2 = Instance.new("SpecialMesh")
  185. Mesh2.Parent = wow
  186. Mesh2.MeshType = "FileMesh"
  187. Mesh2.Scale = Vector3.new(4.5, 15, 4.5)
  188. Mesh2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  189. Mesh2.TextureId = ""
  190. p.Touched:connect(onTouch)
  191. if p then
  192. while wait() do
  193. p.CFrame = p.CFrame * CFrame.new(Vector3.new(0, -5, 0))
  194. O.Transparency = O.Transparency + 0.01
  195. Mesh.Scale = Mesh.Scale + Vector3.new(3, 3, 3)
  196. wow.CFrame = p.CFrame
  197. if O.Transparency == 1 then
  198. O:remove()
  199. end
  200. end
  201. end
  202. end
  203. function remove1()
  204. BasePart:ClearAllChildren()
  205. BasePart:remove()
  206. ff:remove()
  207. p:remove()
  208. end
  209. function stock()
  210. stock = Instance.new("Part",BasePart)
  211. stock.Anchored = true
  212. stock.CanCollide = true
  213. stock.Locked = true
  214. stock.Transparency = 0
  215. stock.Reflectance = 0.3
  216. stock.formFactor = "Symmetric"
  217. stock.Size = Vector3.new(10,10,18)
  218. stock.TopSurface = "Smooth"
  219. stock.BottomSurface = "Smooth"
  220. stock.BrickColor = BrickColor.new("Really black")
  221. stock.CFrame = BasePart.CFrame*CFrame.new(0,0,-10)
  222. stocksub = Instance.new("Part",BasePart)
  223. stocksub.Anchored = true
  224. stocksub.CanCollide = true
  225. stocksub.Locked = true
  226. stocksub.Transparency = 0
  227. stocksub.Reflectance = 0.3
  228. stocksub.formFactor = "Symmetric"
  229. stocksub.Size = Vector3.new(5,8,12)
  230. stocksub.TopSurface = "Smooth"
  231. stocksub.BottomSurface = "Smooth"
  232. stocksub.BrickColor = BrickColor.new("Really black")
  233. stocksub.CFrame = BasePart.CFrame
  234. end
  235. function kickback()
  236. bullet()
  237. local pie22 = Instance.new("Fire")
  238. pie22.Name = "lul"
  239. pie22.Parent = p22
  240. pie22.Size = 20
  241. pie22.Color = BrickColor.new("Lime green").Color
  242. pie22.SecondaryColor = BrickColor.new("Really black").Color
  243. stocksub.CFrame = stocksub.CFrame*CFrame.new(0,-3,0)
  244. stock.CFrame = stock.CFrame*CFrame.new(0,0,-4)
  245. wait(1)
  246. stock.CFrame = stock.CFrame*CFrame.new(0,0,4.66)
  247. stocksub.CFrame = BasePart.CFrame
  248. wait(0.5)
  249. stock.CFrame = BasePart.CFrame*CFrame.new(0,0,-10)
  250. p22:remove()
  251. end
  252. function bullet()
  253. p22 = Instance.new("Part")
  254. p22.Parent = BasePart
  255. p22.Anchored = true
  256. p22.CanCollide = false
  257. p22.Transparency = 0.1
  258. p22.Reflectance = 0.4
  259. p22.formFactor = "Symmetric"
  260. p22.Size = Vector3.new(4,6,4)
  261. p22.TopSurface = "Smooth"
  262. p22.BottomSurface = "Smooth"
  263. p22.Name = "Sharingan"
  264. p22.Shape = "Ball"
  265. p22.CFrame = stocksub.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  266. p22.BrickColor = BrickColor.new("Really red")
  267. m = Instance.new("CylinderMesh",p22)
  268. end
  269. function barrle()
  270. barrle = Instance.new("Part",BasePart)
  271. barrle.BrickColor = BrickColor.new("White")
  272. barrle.CFrame = BasePart.CFrame*CFrame.new(0,2,-16)*CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  273. barrle.Size = Vector3.new(3.5,18,3.5)
  274. barrle.Anchored = true
  275. barrle.CanCollide = true
  276. barrle.Reflectance = 0.5
  277. barrle.Locked = true
  278. barrle.formFactor = "Symmetric"
  279. barrle.TopSurface = "Smooth"
  280. barrle.BottomSurface = "Smooth"
  281. barrlemesh = Instance.new("CylinderMesh",barrle)
  282. end
  283. function fire()
  284. projectile()
  285. end
  286. function compile(mouse)
  287. mouse.Icon = "http://www.roblox.com/asset/?id=41672909"
  288. mouse.Button1Down:connect(onButton1Down)
  289. wait()
  290. baws.Character.Torso.CFrame = BasePart.CFrame*CFrame.new(11,0,0)
  291. end
  292. bin.Selected:connect(compile)
  293. bin.Selected:connect(partsCompile)
  294. bin.Deselected:connect(remove1)
Add Comment
Please, Sign In to add comment