yes this is an actual tv show but why
Code:
local ply = LocalPlayer()
local boohbah = {}
boohbah.Target = nil
boohbah.Attacking = false
function boohbah.FindTarget()
boohbah.Target = nil
local idx = #player.GetAll()
for i = 1, idx do
local v = player.GetAll()[i]
if !v or v == ply or !IsValid(v) or !IsEntity(v) or 0 >= v:Health() or v:IsDormant() then continue end
local tdata = {
start = ply:GetShootPos(),
endpos = v:GetAttachment(v:LookupAttachment("forward")).Pos,
filter = {ply, v},
mask = MASK_SHOT,
}
local trace = util.TraceLine(tdata)
if trace.Fraction == 1 then
boohbah.Target = v
end
end
end
function boohbah.Attack(cmd)
if boohbah.Attacking then
cmd:RemoveKey(IN_ATTACK)
boohbah.Attacking = false
else
cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_ATTACK))
boohbah.Attacking = true
end
end
function boohbah.Aimbot(cmd)
if boohbah.Target != nil then
local tpos = (boohbah.Target:GetAttachment(boohbah.Target:Looku pAttachment("forward")).Pos - ply:GetShootPos()):Angle()
cmd:SetViewAngles(tpos)
boohbah.Attack(cmd)
end
end
hook.Add("Think", "boohbah.FindTarget", boohbah.FindTarget)
hook.Add("CreateMove", "boohbah.Aimbot", boohbah.Aimbot)
no toggle or switch thank me for the pro codes ok bye