Advertisement
ScriptFinderOffical

Army Tycoon Script Hotkey Kill all units

Feb 19th, 2020
1,234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. game:GetService("UserInputService").InputBegan:connect(function (input)
  2. if input.KeyCode==Enum.KeyCode.Q then
  3. for i,v in pairs(game.Workspace.Game.Units:GetChildren()) do
  4. if v.Name == game.Players.LocalPlayer.Name then
  5. else
  6. for i,v2 in pairs(v:GetChildren()) do
  7. local Missile = "Cruise Missile"
  8. local Position = v2.Torso.Position
  9. game:GetService("ReplicatedStorage").RE.FireMissile:FireServer(Missile, Position)
  10. end
  11. end
  12. end
  13. end
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement