Help
Hi I'm learning lua and I think I'm getting pretty good at it and I was wondering if anyone could teach me or link me to a tutorial on how to make an aimbot for gmod.
local function Aimbot( cmd ) end hook.Add( "CreateMove", "aim butt", Aimbot )
local function Aimbot( cmd ) local lp = LocalPlayer() for k, v in pairs( player.GetAll() ) do if not ( v:Alive() ) or ( v == lp ) or ( v:IsDormant() ) then continue end end end hook.Add( "CreateMove", "aim butt", Aimbot )
local function Aimbot( cmd ) local lp = LocalPlayer() for k, v in pairs( player.GetAll() ) do if not ( v:Alive() ) or ( v == lp ) or ( v:IsDormant() ) then continue end local pos = ( v:GetPos() + v:OBBCenter() ) local ang = ( pos - lp:GetShootPos() ):Angle() cmd:SetViewAngles( ang ) end end hook.Add( "CreateMove", "aim butt", Aimbot )
))