Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- -----------------------------
- Controls:
- f3 to turn on Kill all
- f4 to stop
- -----------------------------
- Game:
- https://www.roblox.com/games/190749311/8M-Two-Player-Military-Tycoon-v4
- -----------------------------
- Description:
- as long as you have a Glock you will be able to kill all
- -----------------------------
- Credit:
- Original: @Verm brianops16
- -----------------------------
- --]]
- function codeB()
- local plr = game.Players.LocalPlayer
- local plrN = plr.Name
- for a,player in pairs(game.Players:GetChildren()) do
- if player.Name ~= plrN then
- local enemy = game.Workspace:FindFirstChild(player.Name)
- local A_1 = game:GetService("Workspace")[enemy.Name].Humanoid
- local A_2 = 10
- local Event = game:GetService("Players")[plrN].Backpack["Glock 17"].Resource.Events.DamageEvent
- Event:FireServer(A_1, A_2)
- end
- end
- end
- function codeW()
- local plr = game.Players.LocalPlayer
- local plrN = plr.Name
- for a,player in pairs(game.Players:GetChildren()) do
- if player.Name ~= plrN then
- local enemy = game.Workspace:FindFirstChild(player.Name)
- local A_1 = game:GetService("Workspace")[enemy.Name].Humanoid
- local A_2 = 10
- local Event = game:GetService("Workspace")[plrN]["Glock 17"].Resource.Events.DamageEvent
- Event:FireServer(A_1, A_2)
- end
- end
- 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(codeB)
- if good and on == 1 then
- codeB()
- else
- local good,bad = pcall(codeW)
- if good then
- codeW()
- else
- wait()
- end
- end
- end
- end
- end)
- UIS.InputBegan:connect(function(Input)
- local KeyCode = Input.KeyCode
- if KeyCode == Enum.KeyCode.F4 then
- on = 0
- end
- end)
- --Description and controls at the top
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement