Simple Aimbot!

Posts 1–7 of 7 · Page 1 of 1
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!
How do u inject it to the game
How do u inject it to the game
I've released an addon now they should approve of it soon.
I couldn't make this work.
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
Quote Originally Posted by gjrthojnthg View Post
is this lua or dll?
it is indeed Lua
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?