Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local AK = game.Players.LocalPlayer.Backpack["AK-47"]
- local Event = AK.GunScript_Server.InflictTarget
- local Module = AK.Setting
- local Spread = 0
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v:FindFirstChild("Humanoid") and v:FindFirstChild("Torso") then
- if v ~= game.Players.LocalPlayer and not game.Players:GetPlayerFromCharacter(v) then
- 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
- Event:FireServer(v.Humanoid, v.Torso, v.Name == "Head" and Module.HeadshotEnabled and math.huge or math.huge, Direction, math.huge, false, false)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement