Thread: Simple Aimbot!

Results 1 to 7 of 7

Hybrid View

  1. #1
    suchisgood's Avatar
    Join Date
    Feb 2014
    Gender
    female
    Posts
    902
    Reputation
    10
    Thanks
    565
    My Mood
    Angelic

    Simple Aimbot!

    Code:
    function dist(d,e)
    	local distn = math.Round(d:GetPos():Distance(e:GetPos()))
    	local d = 99999
    	local targ = {}
    	if distn <= d then
    		table.insert(targ,e)
    		d = distn
    	end
    	local first_t = targ[1]
    	return first_t,d
    end
    
    hook.Add("Think","AutoAimBot", function()
    	local aim = 0
    	local gay = {}
    	for k,v in pairs(player.GetAll()) do
    		if v != LocalPlayer() and v:Alive() then
    			local tr,dis = dist(LocalPlayer(),v)
    			table.insert(gay,{targ = tr,distance = dis})
    			if dis <= gay[1].distance then
    				print(tr,dis)
    				local targethead = tr:LookupBone("ValveBiped.Bip01_Head1") -- In this aimbot we only aim for the head.
    				local targetheadpos,targetheadang = tr:GetBonePosition(targethead) -- Get the position/angle of the head.
    				LocalPlayer():SetEyeAngles((targetheadpos - LocalPlayer():GetShootPos()):Angle()) -- And finally, we snap our aim to the head of the target.
    			end
    		end
    	end
    end)
    Mods approve please!

  2. #2
    Zambizo's Avatar
    Join Date
    Jul 2021
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0

    How do u inject it to the game

    How do u inject it to the game

  3. #3
    suchisgood's Avatar
    Join Date
    Feb 2014
    Gender
    female
    Posts
    902
    Reputation
    10
    Thanks
    565
    My Mood
    Angelic
    I've released an addon now they should approve of it soon.

  4. #4
    n4hzug0's Avatar
    Join Date
    May 2023
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    I couldn't make this work.

  5. #5
    darkcide's Avatar
    Join Date
    Nov 2020
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    what possessed you to post thsi
    cringe

    its going to error out if the target happens to not have a head bone (error models)
    its going to run slowly and miss (more than usual) because your running it in a think hook and using SetEyeAngles
    there are no valid checks for players or prediction of any kind
    the list goes on, this is akin to posting a example aimbot from a wiki, which would be forgivable if it wasnt lua and like 5 lines
    Last edited by darkcide; 05-22-2023 at 02:32 AM.

  6. #6
    gjrthojnthg's Avatar
    Join Date
    Jan 2024
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0

    question

    is this lua or dll?

Similar Threads

  1. [Tutorial] Simple Aimbot
    By kibbles18 in forum C++/C Programming
    Replies: 50
    Last Post: 08-22-2011, 11:45 PM
  2. [Tutorial] Building a simple aimbot
    By kibbles18 in forum C++/C Programming
    Replies: 0
    Last Post: 07-23-2011, 04:04 PM
  3. Simple [Aimbot]
    By tabuzo013 in forum General
    Replies: 8
    Last Post: 10-10-2010, 06:02 PM
  4. Simple aimbot source code
    By yusako in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 23
    Last Post: 10-09-2010, 03:03 PM
  5. [Tutorial] How To make your own simple Aimbot
    By sumsar1812 in forum Battlefield Heroes Hacks
    Replies: 41
    Last Post: 11-01-2009, 02:14 AM