This is the aimbot from the wiki. It doesn't work the way you think: You have to aim at player first, then it it snaps to the player's head, it doesn't automatically turn you to the next player.
function aimbot() -- Starting the function
local ply = LocalPlayer() -- Getting ourselves
local trace = util.GetPlayerTrace( ply ) -- Player Trace part. 1
local traceRes = util.TraceLine( trace ) -- Player Trace part. 2
if traceRes.HitNonWorld then -- If the aimbot aims at something that isn't the map..
local target = traceRes.Entity -- It's obviously an entity.
if target:IsPlayer() then -- But it must be a player.
local targethead = target:LookupBone("ValveBiped.Bip01_Head1") -- In this aimbot we only aim for the head.
local targetheadpos,targetheadang = target:GetBonePosition(targethead) -- Get the position/angle of the head.
ply:SetEyeAngles((targetheadpos - ply:GetShootPos()):Angle()) -- And finally, we snap our aim to the head of the target.
end
end
end
hook.Add("Think","aimbot",aimbot) -- The hook will spam "aimbot" until it finds a target..
This is the aimbot from the wiki. It doesn't work the way you think: You have to aim at player first, then it it snaps to the player's head, it doesn't automatically turn you to the next player.
Can someone recode it to do it like that?
Lol, the wiki aimbot xD.
Hey it works well, if only it locked onto there head and stayed there, and its been more accurate for me then blue bot or hera!
Keep doing the tutorials and you might learn something on the way.
Don't like someone elses work, do your own.