Quote Originally Posted by poonystalker View Post
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.
You need to hook the global function "Virtualprotect" to see if someone is behind you will wall.