Advertisement
ZEE_TerminatorFX

Untitled

Jul 17th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.59 KB | None | 0 0
  1. --[[
  2. -----------------------------
  3. Controls:
  4.  
  5. f3 to turn on
  6.  
  7. f4 turn on kill all
  8.  
  9. J to fire the Orange Ship BigCanon
  10.  
  11. K to fire the Orange Ship SmallCanon
  12.  
  13. L to fire the Green Ship Big Canon
  14.  
  15. P to fire the Green Ship Small Canon
  16.  
  17. f5 to turn off all
  18. -----------------------------
  19. Game:
  20. https://www.roblox.com/games/504090542/The-Battleship-Battle-Reopened#
  21. -----------------------------
  22. Description:
  23. This will rapidly shoot rockets out of the rocket launcher to where your mouse is pointing
  24. (You must hold/equip the bazooka[Kinda lol, if you can use the secret i added then good for you])
  25. -----------------------------
  26. Credit:
  27. Original: @Verm brianops16
  28. -----------------------------
  29. --]]
  30.  
  31. function code()
  32. function W()
  33. local Player = game.Players.LocalPlayer
  34. local Mouse = Player:GetMouse()
  35. local MouseCFrame = Mouse.Hit
  36. local MousePosition = MouseCFrame.p
  37.  
  38.  
  39. local A_1 = MousePosition
  40. local Event = game:GetService("Workspace")[Player.Name]["Bote Rakete"].CreateRocket
  41. Event:FireServer(A_1)
  42. wait(.2)
  43. end
  44.  
  45. function B()
  46. local Player = game.Players.LocalPlayer
  47. local Mouse = Player:GetMouse()
  48. local MouseCFrame = Mouse.Hit
  49. local MousePosition = MouseCFrame.p
  50.  
  51.  
  52. local A_1 = MousePosition
  53. local Event = game:GetService("Players")[Player.Name].Backpack["Bote Rakete"].CreateRocket
  54. Event:FireServer(A_1)
  55. wait(.2)
  56. end
  57. local Go,Ba = pcall(W)
  58. if Go then
  59. W()
  60. else
  61. B()
  62. end
  63. end
  64. function dmg()
  65. local plr = game.Players.LocalPlayer
  66. local plrN = plr.Name
  67. for a,b in pairs(game.Players:GetChildren()) do
  68. if b.Name ~= plrN then
  69. local enemy = game.Workspace:FindFirstChild(b.Name)
  70. print(enemy)
  71. if enemy ~= nil then
  72. local A_1 = 100
  73. local Event = game:GetService("Workspace")[enemy.Name].PlayerScript.DealDamage
  74. Event:FireServer(A_1)
  75. else
  76. wait()
  77. end
  78. end
  79. end
  80. end
  81. function BigO()
  82. local Event = game:GetService("Workspace").OrangeShip.BigCannon.FireCannon
  83. Event:FireServer()
  84. wait(.4)
  85. end
  86. function SmallO()
  87. local Event = game:GetService("Workspace").OrangeShip.SmallCannon.FireCannon
  88. Event:FireServer()
  89. wait(.4)
  90. end
  91. function BigG()
  92. local Event = game:GetService("Workspace").GreenShip.BigCannon.FireCannon
  93. Event:FireServer()
  94. wait(.4)
  95. end
  96. function SmallG()
  97. local Event = game:GetService("Workspace").GreenShip.SmallCannon.FireCannon
  98. Event:FireServer()
  99. wait(.4)
  100. end
  101.  
  102. ----
  103.  
  104. on = 1
  105.  
  106. ----
  107.  
  108. local UIS = game:GetService("UserInputService")
  109. UIS.InputBegan:connect(function(Input)
  110. local KeyCode = Input.KeyCode
  111. if KeyCode == Enum.KeyCode.F3 then
  112. on = 1
  113. wait(.2)
  114. while on == 1 do
  115. game:GetService('RunService').Stepped:wait(0)
  116. local good,bad = pcall(code)
  117. if good and on == 1 then
  118. code()
  119. else
  120. wait()
  121. end
  122. end
  123. end
  124. end)
  125. UIS.InputBegan:connect(function(Input)
  126. local KeyCode = Input.KeyCode
  127. if KeyCode == Enum.KeyCode.F4 then
  128. on = 1
  129. wait(.2)
  130. while on == 1 do
  131. game:GetService('RunService').Stepped:wait(0)
  132. local good,bad = pcall(dmg)
  133. if good and on == 1 then
  134. dmg()
  135. else
  136. wait()
  137. end
  138. end
  139. end
  140. end)
  141. UIS.InputBegan:connect(function(Input)
  142. local KeyCode = Input.KeyCode
  143. if KeyCode == Enum.KeyCode.J then
  144. on = 1
  145. wait(.2)
  146. while on == 1 do
  147. game:GetService('RunService').Stepped:wait(0)
  148. local good,bad = pcall(BigO)
  149. if good and on == 1 then
  150. BigO()
  151. else
  152. wait()
  153. end
  154. end
  155. end
  156. end)
  157. UIS.InputBegan:connect(function(Input)
  158. local KeyCode = Input.KeyCode
  159. if KeyCode == Enum.KeyCode.K then
  160. on = 1
  161. wait(.2)
  162. while on == 1 do
  163. game:GetService('RunService').Stepped:wait(0)
  164. local good,bad = pcall(SmallO)
  165. if good and on == 1 then
  166. SmallO()
  167. else
  168. wait()
  169. end
  170. end
  171. end
  172. end)
  173. UIS.InputBegan:connect(function(Input)
  174. local KeyCode = Input.KeyCode
  175. if KeyCode == Enum.KeyCode.L then
  176. on = 1
  177. wait(.2)
  178. while on == 1 do
  179. game:GetService('RunService').Stepped:wait(0)
  180. local good,bad = pcall(BigG)
  181. if good and on == 1 then
  182. BigG()
  183. else
  184. wait()
  185. end
  186. end
  187. end
  188. end)
  189. UIS.InputBegan:connect(function(Input)
  190. local KeyCode = Input.KeyCode
  191. if KeyCode == Enum.KeyCode["P"] then
  192. on = 1
  193. wait(.2)
  194. while on == 1 do
  195. game:GetService('RunService').Stepped:wait(0)
  196. local good,bad = pcall(SmallG)
  197. if good and on == 1 then
  198. SmallG()
  199. else
  200. wait()
  201. end
  202. end
  203. end
  204. end)
  205. UIS.InputBegan:connect(function(Input)
  206. local KeyCode = Input.KeyCode
  207. if KeyCode == Enum.KeyCode.F5 then
  208. on = 0
  209. end
  210. end)
  211. --Description and controls at the top
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement