Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- -----------------------------
- Controls:
- f3 to turn on
- f4 turn on kill all
- J to fire the Orange Ship BigCanon
- K to fire the Orange Ship SmallCanon
- L to fire the Green Ship Big Canon
- P to fire the Green Ship Small Canon
- f5 to turn off all
- -----------------------------
- Game:
- https://www.roblox.com/games/504090542/The-Battleship-Battle-Reopened#
- -----------------------------
- Description:
- This will rapidly shoot rockets out of the rocket launcher to where your mouse is pointing
- (You must hold/equip the bazooka[Kinda lol, if you can use the secret i added then good for you])
- -----------------------------
- Credit:
- Original: @Verm brianops16
- -----------------------------
- --]]
- function code()
- function W()
- local Player = game.Players.LocalPlayer
- local Mouse = Player:GetMouse()
- local MouseCFrame = Mouse.Hit
- local MousePosition = MouseCFrame.p
- local A_1 = MousePosition
- local Event = game:GetService("Workspace")[Player.Name]["Bote Rakete"].CreateRocket
- Event:FireServer(A_1)
- wait(.2)
- end
- function B()
- local Player = game.Players.LocalPlayer
- local Mouse = Player:GetMouse()
- local MouseCFrame = Mouse.Hit
- local MousePosition = MouseCFrame.p
- local A_1 = MousePosition
- local Event = game:GetService("Players")[Player.Name].Backpack["Bote Rakete"].CreateRocket
- Event:FireServer(A_1)
- wait(.2)
- end
- local Go,Ba = pcall(W)
- if Go then
- W()
- else
- B()
- end
- end
- function dmg()
- local plr = game.Players.LocalPlayer
- local plrN = plr.Name
- for a,b in pairs(game.Players:GetChildren()) do
- if b.Name ~= plrN then
- local enemy = game.Workspace:FindFirstChild(b.Name)
- print(enemy)
- if enemy ~= nil then
- local A_1 = 100
- local Event = game:GetService("Workspace")[enemy.Name].PlayerScript.DealDamage
- Event:FireServer(A_1)
- else
- wait()
- end
- end
- end
- end
- function BigO()
- local Event = game:GetService("Workspace").OrangeShip.BigCannon.FireCannon
- Event:FireServer()
- wait(.4)
- end
- function SmallO()
- local Event = game:GetService("Workspace").OrangeShip.SmallCannon.FireCannon
- Event:FireServer()
- wait(.4)
- end
- function BigG()
- local Event = game:GetService("Workspace").GreenShip.BigCannon.FireCannon
- Event:FireServer()
- wait(.4)
- end
- function SmallG()
- local Event = game:GetService("Workspace").GreenShip.SmallCannon.FireCannon
- Event:FireServer()
- wait(.4)
- end
- ----
- on = 1
- ----
- local UIS = game:GetService("UserInputService")
- UIS.InputBegan:connect(function(Input)
- local KeyCode = Input.KeyCode
- if KeyCode == Enum.KeyCode.F3 then
- on = 1
- wait(.2)
- while on == 1 do
- game:GetService('RunService').Stepped:wait(0)
- local good,bad = pcall(code)
- if good and on == 1 then
- code()
- else
- wait()
- end
- end
- end
- end)
- UIS.InputBegan:connect(function(Input)
- local KeyCode = Input.KeyCode
- if KeyCode == Enum.KeyCode.F4 then
- on = 1
- wait(.2)
- while on == 1 do
- game:GetService('RunService').Stepped:wait(0)
- local good,bad = pcall(dmg)
- if good and on == 1 then
- dmg()
- else
- wait()
- end
- end
- end
- end)
- UIS.InputBegan:connect(function(Input)
- local KeyCode = Input.KeyCode
- if KeyCode == Enum.KeyCode.J then
- on = 1
- wait(.2)
- while on == 1 do
- game:GetService('RunService').Stepped:wait(0)
- local good,bad = pcall(BigO)
- if good and on == 1 then
- BigO()
- else
- wait()
- end
- end
- end
- end)
- UIS.InputBegan:connect(function(Input)
- local KeyCode = Input.KeyCode
- if KeyCode == Enum.KeyCode.K then
- on = 1
- wait(.2)
- while on == 1 do
- game:GetService('RunService').Stepped:wait(0)
- local good,bad = pcall(SmallO)
- if good and on == 1 then
- SmallO()
- else
- wait()
- end
- end
- end
- end)
- UIS.InputBegan:connect(function(Input)
- local KeyCode = Input.KeyCode
- if KeyCode == Enum.KeyCode.L then
- on = 1
- wait(.2)
- while on == 1 do
- game:GetService('RunService').Stepped:wait(0)
- local good,bad = pcall(BigG)
- if good and on == 1 then
- BigG()
- else
- wait()
- end
- end
- end
- end)
- UIS.InputBegan:connect(function(Input)
- local KeyCode = Input.KeyCode
- if KeyCode == Enum.KeyCode["P"] then
- on = 1
- wait(.2)
- while on == 1 do
- game:GetService('RunService').Stepped:wait(0)
- local good,bad = pcall(SmallG)
- if good and on == 1 then
- SmallG()
- else
- wait()
- end
- end
- end
- end)
- UIS.InputBegan:connect(function(Input)
- local KeyCode = Input.KeyCode
- if KeyCode == Enum.KeyCode.F5 then
- on = 0
- end
- end)
- --Description and controls at the top
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement