Lua Aimbot, I realy need help

i know its cheating but i just want to try it, to try it :stuck_out_tongue: so i pulled a code off the wiki but i cant get it to toggle -_-


function AutoTarget()
	local ply = LocalPlayer()
	local trace = util.GetPlayerTrace( ply )
	local traceRes = util.TraceLine( trace )
	if traceRes.HitNonWorld then
		local target = traceRes.Entity
		if target:IsPlayer() then
			local targethead = target:LookupBone("ValveBiped.Bip01_Head1")
			local targetheadpos,targetheadang = target:GetBonePosition(targethead)
			ply:SetEyeAngles((targetheadpos - ply:GetShootPos()):Angle())
		end
	end
end
hook.Add("Think","aimbot",aimbot)

i just need to turn it off and on by “toggle_aimbot 1” toggle_aimbot 0
i keep trying over and over but i cant get it, i tried “createclientconvar” but still didnt work
it would be awesome if someone could PLEASE help me


(User was banned for this post ("Wrong forum" - Overv))

Are you trying to learn Lua or are you just wanting an aimbot?

[lua]function AutoTarget()
if GetConVar(“aimbot_on”):GetInt() == 1 then
local ply = LocalPlayer()
local trace = util.GetPlayerTrace( ply )
local traceRes = util.TraceLine( trace )
if traceRes.HitNonWorld then
local target = traceRes.Entity
if target:IsPlayer() then
local targethead = target:LookupBone(“ValveBiped.Bip01_Head1”)
local targetheadpos,targetheadang = target:GetBonePosition(targethead)
ply:SetEyeAngles((targetheadpos - ply:GetShootPos()):Angle())
end
end
end
end
hook.Add(“Think”,“aimbot”,aimbot)

CreateClientConVar(“aimbot_on” , 0 , true, false)[/lua]

[lua]function AutoTarget()[/lua]

hook.Add(“Think”,“aimbot”,aimbot

Obviously it’s stolen bacon bot code!

I should probably read code before posting… :v:

thats a really bad excuse you just were ignorant

I love the propper grammar.

Leave him alone, his Canadian.

Yeah, because you (A guy with no lua experience) can say that about a guy (in a thread about aimbots) who wrote the most popular free aimbot…

proper*

Hello Flapadar.

Hello Cube.

That explains a lot

Cube was british?

He moved purely to try and hide who he was

I herd seth(London) was too, We need to stop helping all the lua aimbots and make aimboat.exe, We all know Flapadar wins and not Seth(silverblu).King flawless rated me dumb I must be right. Good Good let the butt hurt flow