ratatatat

what the fuck
Code:
local target = nil
hook.Add("Think","",function()
-- if not input.IsKeyDown(KEY_F) then return end
target = nil
local ply = LocalPlayer()
for k,v in next, player.GetAll() do
if ( v == ply ) or ( not v:IsValid() ) or ( v:IsDormant() ) or ( v:Team() == TEAM_SPECTATOR ) or ( v:Health() < 1 ) or ( not v:Alive() ) then
continue
end
local Visible = { start = ply:GetShootPos(), endpos = v:GetAttachment(v:LookupAttachment("forward")).Pos, filter = {ply,v}, mask = MASK_SHOT}
local tr = util.TraceLine(Visible)
if tr.Fraction == 1 then
target = v
end
end
if ( target != nil ) then
local GetPosition = (target:GetAttachment(target:LookupAttachment("forward")).Pos - ply:GetShootPos()):Angle()
ply:SetEyeAngles(GetPosition)
RunConsoleCommand("+attack")
timer.Simple(0.1, function()
RunConsoleCommand("-attack")
end)
end
end)
