Advertisement
avivavivb

test

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