
Originally Posted by
poonystalker
So Im making an aimbot but it aims at people through walls, I have started the code but when it activates it only works when i look directly at them.
code:
local ply = LocalPlayer()
function test()
local Target = LocalPlayer():GetEyeTrace().Entity
if Target:IsPlayer() then
print("Bugger Targeted")
else
print("Bugger Is Not Visible")
end
end
hook.Add( "Think", "WallDetect", test)
Anyhelp you may give would be great. Thanks.