Advertisement
Deathkid9005

Untitled

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