Simple Aimbot Script

Posts 115 of 26 · Page 1 of 2
Simple Aimbot Script
Script Name: Simple Aimbot Script
Credits: Me
Description: This simple script will aim at anyone's head and fire that is close to where you're looking, when pressing B. Because it's so simple, it's a bit glitchy so it may not always aim where you exactly want it to. Also, people might notice it so be careful; I was just banned on stronghold for it. XD

To install/use it, you need a Lua bypass, which there are plenty on the forum, and you can just put it into garrysmod/lua/autorun/ and name it mysterious.lua or something. If it doesn't start automatically when you join, type this in console: "lua_openscript_cl autorun/mysterious.lua". Happy aimbotting you lazy son of a bitch!

To use it in game, press B while looking near a person you want to shoot, it'll fire and aim all for you.

Code:
hook.Add( "Think", "ThinkAboutIt", function()
	if input.IsKeyDown(KEY_B) then
		local closest = nil
		
		local hitpos = LocalPlayer():GetEyeTrace()
		
		for k, v in pairs( ents.FindInSphere(hitpos.HitPos,500) ) do
			if v:IsPlayer() and v != LocalPlayer() then
				if v:Alive() then
					closest = v
				end
			end
		end
		
		if closest and closest:IsPlayer() and closest:Alive() then
			local head = closest:LookupBone("ValveBiped.Bip01_Head1")
			local headpos, headang = closest:GetBonePosition(head)
			
			LocalPlayer():SetEyeAngles( (headpos-LocalPlayer():GetShootPos()):Angle() )
			RunConsoleCommand("+attack")
			timer.Simple(0.25,function()
				RunConsoleCommand("-attack")
			end)
		end
	end
end)
works, but it auto shoots and aims at people behind walls, which is a terrible feature.
Quote Originally Posted by derpze View Post
works, but it auto shoots and aims at people behind walls, which is a terrible feature.
Then just release b, lol or just remove the autoshoot part or both.
Quote Originally Posted by LennyPenny View Post
Then just release b, lol or just remove the autoshoot part or both.
To fix this, use the :Visible() function (assuming that the function is clientside)
Does anyone have a silent aimbot? Which doesn't lock on the target? I would love that! Had an aimbot like that for 2 years ago. But can't find any working ones anymore.
What do you mean by not lock on? How would you shoots someone without looking at them?
Silent aim bot i think is when you aim at a target within cross hairs it automatically hits them or if youre aimed real close to them it still hits them. but nothing locks on so it doesnt look like an actual aimbot
What Tuvzi described.
This aimbot is very cool, killed lots of people with it haha.
I cannot install it it doesn't start in-game and i am using a bypasser
Quote Originally Posted by medede View Post
I cannot install it it doesn't start in-game and i am using a bypasser
You need to provide more information than that.
i.e. Any errors.
Quote Originally Posted by Gray View Post


You need to provide more information than that.
i.e. Any errors.
Ok, I do everything im told to do in the instructions, and use gnomes bypasser.
Even though i do this it doesnt work ingame when i press B
Quote Originally Posted by medede View Post
Ok, I do everything im told to do in the instructions, and use gnomes bypasser.
Even though i do this it doesnt work ingame when i press B
If you would've payed attention then you'd see this.
This is the script I made that I am currently using. It contains lock on aimbot that will lock on to a target by pressing B and unlocking on when pressing B again, flashlight spam by pressing Left Alt + F, derp which looks everyone on the server randomly by pressing Left Alt + B, auto shoot to spam toolgun or just shoot for you by pressing Left Alt + Left Shift, and my favorite, the bunnyhop script that will make you jump automatically whenever you're holding space. You might have to know how to strafe before putting use to the jumping script.

If you don't want one of these hacks, you can remove it, just remove it from the note ( I.E. // Aimbot ) to the next note, or the end of the think hook.

Code:
hook.Add( "Think", "NoSuspciousHookHere", function()
	if LocalPlayer():IsTyping() or gui.IsConsoleVisible() then return end
	
	local ply = LocalPlayer()

	// Aimbot
	if !nextChange or nextChange < CurTime() then
		if input.IsKeyDown( KEY_B ) and !input.IsKeyDown( KEY_LALT ) then
			nextChange = CurTime() + 0.25
			
			if target and aimbot then
				target = nil
				aimbot = false
			else
				for k, v in pairs( ents.FindInSphere( ply:GetEyeTrace().HitPos, 500 ) ) do
					if v:IsPlayer() and v:Alive() then
						if IsValid(target) then
							if target:GetPos():Distance(ply:GetEyeTrace().HitPos) > v:GetPos():Distance(ply:GetEyeTrace().HitPos) then
								target = v
							end
						else
							target = v
						end
					end
				end
				
				if target then
					aimbot = true
				end
			end
		end
	end
	
	if target and IsValid(target) and aimbot then
		if target and IsValid(target) and target:IsPlayer() and target:LookupBone("ValveBiped.Bip01_Head1") then
			ply:SetEyeAngles( (target:GetBonePosition(target:LookupBone("ValveBiped.Bip01_Head1"))-ply:GetShootPos()):Angle() )
		end
	end

	// Flashlight Spam
	if input.IsKeyDown( KEY_F ) and input.IsKeyDown( KEY_LALT ) then
		-- I feel this does something...
		for i = 1, 100 do
			RunConsoleCommand( "impulse", "100" )
		end
	end

	// Derp aimbots.
	if input.IsKeyDown( KEY_B ) and input.IsKeyDown( KEY_LALT ) then
		target = player.GetAll()[math.random(1,#player.GetAll())]
		
		if target and IsValid(target) and target:IsPlayer() and target:LookupBone("ValveBiped.Bip01_Head1") then
			ply:SetEyeAngles( (target:GetBonePosition(target:LookupBone("ValveBiped.Bip01_Head1"))-ply:GetShootPos()):Angle() )
		end
	end

	// Auto shoot.
	if input.IsKeyDown( KEY_LSHIFT ) and input.IsKeyDown( KEY_LALT ) then
		RunConsoleCommand( "+attack" )
		timer.Simple(0.0001,function()
			RunConsoleCommand( "-attack" )
		end)
	end

	// Bunnyhop.
	if input.IsKeyDown( KEY_SPACE ) then
		if LocalPlayer():IsOnGround() then
			RunConsoleCommand( "+jump" )
			timer.Simple( 0.00001, function()
				RunConsoleCommand( "-jump" )
			end)
		end
		
		if input.IsKeyDown( KEY_E ) then
			RunConsoleCommand( "+left" )
		else
			RunConsoleCommand( "-left" )
		end
	else
		RunConsoleCommand( "-left" )
	end
end)
Posts 115 of 26 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?