Advertisement
EliteWolfie

Noob Defense 4 Kill All

Dec 1st, 2018
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. local AK = game.Players.LocalPlayer.Backpack["AK-47"]
  2.  
  3. local Event = AK.GunScript_Server.InflictTarget
  4. local Module = AK.Setting
  5.  
  6. local Spread = 0
  7.  
  8. for i,v in pairs(game.Workspace:GetChildren()) do
  9. if v:FindFirstChild("Humanoid") and v:FindFirstChild("Torso") then
  10. if v ~= game.Players.LocalPlayer and not game.Players:GetPlayerFromCharacter(v) then
  11. local Direction = (CFrame.new(game.Players.LocalPlayer.Character.Torso.Position, v.Torso.Position) * CFrame.Angles(math.rad(-Spread + math.random() * (Spread * 2)), math.rad(-Spread + math.random() * (Spread * 2)), 0)).lookVector
  12. Event:FireServer(v.Humanoid, v.Torso, v.Name == "Head" and Module.HeadshotEnabled and math.huge or math.huge, Direction, math.huge, false, false)
  13. end
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement