Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.74 KB | None | 0 0
  1. --Behold Leechers and Rippers, if your reading this then you suck because you bypassed my protection method....
  2. --BEHOLD THE GLORY
  3.  
  4. local Hack = "YoungExploiter "
  5. local Mode = 1
  6. local AutoShoot = false
  7. local Aiming = false
  8. local Distance = 999999999
  9. local tracedata = {}
  10.  
  11. local BannedWeapons = {"weapon_physcannon", "weapon_physgun", "weapon_frag", "weapon_real_cs_smoke", "arrest_stick", "unarrest_stick", "stunstick",
  12. "weapon_real_cs_flash", "weapon_real_cs_grenade", "spidermans_swep", "manhack_welder", "laserpointer", "remotecontroller", "med_kit",
  13. "door_ram", "pocket", "weaponchecker", "lockpick", "keypad_cracker", "keys", "weapon_real_cs_knife", "gmod_tool", "gmod_camera", "weapon_crowbar",
  14. "weapon_stunstick", "weapon_knife", "weapon_rpg"}
  15.  
  16. print("Love U Guys!")
  17.  
  18. // The autoshoot function.
  19.  
  20. local function ATHack()
  21.  
  22. if LocalPlayer():Alive() and AutoShoot then
  23.  
  24. local pos = LocalPlayer():GetShootPos()
  25. local ang = LocalPlayer():GetAimVector()
  26.  
  27.  
  28. tracedata.start = pos
  29. tracedata.endpos = pos+(ang * Distance)
  30. tracedata.filter = LocalPlayer()
  31.  
  32. local trace = util.TraceLine(tracedata)
  33.  
  34. target = trace.Entity
  35.  
  36. if WeaponCheck() and ModeCheck() and AmmoCheck() then
  37.  
  38. Fire()
  39.  
  40. end
  41. end
  42.  
  43. end
  44.  
  45. // Check are we targeting NPC's, Players or maybe both.
  46.  
  47. function ModeCheck()
  48.  
  49. if Mode == 1 then
  50. if !target:IsNPC() and !target:IsPlayer() then
  51.  
  52. return false
  53.  
  54. end
  55.  
  56. elseif Mode == 2 then
  57. if !target:IsPlayer() then
  58.  
  59. return false
  60.  
  61. end
  62.  
  63. elseif Mode == 3 then
  64. if !target:IsNPC() then
  65.  
  66. return false
  67.  
  68. end
  69. end
  70.  
  71. return true
  72.  
  73. end
  74.  
  75. // No-recoil.
  76.  
  77. local function NoRecoil()
  78.  
  79. if !Recoil and WeaponCheck() and LocalPlayer():Alive() and LocalPlayer():GetActiveWeapon():IsValid() and LocalPlayer():GetActiveWeapon().Primary then
  80.  
  81. LocalPlayer():GetActiveWeapon().Primary.Recoil = 0
  82.  
  83. else return end
  84.  
  85. end
  86.  
  87. hook.Add("Think", "Norecoil", NoRecoil)
  88.  
  89. // Check our ammo, if ammo is 0, then reload and output false, else if ammo is not 0, outputs true.
  90.  
  91. function AmmoCheck()
  92.  
  93. if Ammo() == 0 then
  94.  
  95. LocalPlayer():ConCommand("+reload; wait 2; -reload")
  96.  
  97. return false
  98.  
  99. else
  100.  
  101. return true
  102.  
  103. end
  104.  
  105. end
  106.  
  107. // Output our current ammo.
  108.  
  109. function Ammo()
  110.  
  111. if LocalPlayer() and LocalPlayer():GetActiveWeapon() and LocalPlayer():GetActiveWeapon():IsValid() then
  112.  
  113. actwep = LocalPlayer():GetActiveWeapon()
  114.  
  115. if ( ! actwep ) then return -1 end
  116.  
  117. return actwep:Clip1()
  118.  
  119. end
  120.  
  121. end
  122.  
  123. // Checks if the target is valid for targeting.
  124.  
  125. function TargetCheck( ent )
  126.  
  127. if !ent:IsValid() or !ent:IsNPC() and !ent:IsPlayer() or LocalPlayer() == ent then return false end
  128.  
  129. if ent:IsPlayer() and !ent:Alive() then return false end
  130.  
  131. if ent:IsNPC() and ent:GetMoveType() == 0 then return false end
  132.  
  133. if Mode == 1 then
  134.  
  135. if ent:IsNPC() or ent:IsPlayer() then return true end
  136.  
  137. elseif Mode == 2 then
  138.  
  139. if ent:IsPlayer() then return true end
  140. if ent:IsNPC() then return false end
  141.  
  142. elseif Mode == 3 then
  143.  
  144. if ent:IsNPC() then return true end
  145. if ent:IsPlayer() then return false end
  146.  
  147. end
  148.  
  149. end
  150.  
  151. // Outputs the targets heads position.
  152.  
  153. function HeadPosition( ent )
  154.  
  155. local hbone = ent:LookupBone("ValveBiped.Bip01_Head1")
  156. return ent:GetBonePosition(hbone)
  157.  
  158. end
  159.  
  160. // Are we seeing the target, no use to try and shoot through walls is it.
  161.  
  162. function TargetVisible( ent )
  163.  
  164. local trace = {start = LocalPlayer():GetShootPos(),endpos = HeadPosition(ent),filter = {LocalPlayer(), ent},mask = 1174421507}
  165. local tr = util.TraceLine(trace)
  166.  
  167. if tr.Fraction == 1 then
  168.  
  169. return true
  170.  
  171. else
  172.  
  173. return false
  174.  
  175. end
  176.  
  177. end
  178.  
  179. // Gets the positions and angles, and counts the right values for some aimbotting.
  180.  
  181. function GetTarget()
  182.  
  183. local position = LocalPlayer():EyePos()
  184. local angle = LocalPlayer():GetAimVector()
  185. local tar = {0,0}
  186.  
  187. for _, ent in pairs( ents.GetAll() ) do
  188.  
  189. if LocalPlayer():Alive() and WeaponCheck() and TargetCheck( ent ) and TargetVisible( ent ) and AmmoCheck() then
  190.  
  191. local targetpos = ent:EyePos()
  192. local editor = ( targetpos - position ):Normalize()
  193.  
  194. editor = editor - angle
  195. editor = editor:Length()
  196. editor = math.abs( editor )
  197.  
  198. if editor < tar[2] or tar[1] == 0 then
  199. tar = {ent, editor}
  200.  
  201. end
  202. end
  203. end
  204.  
  205. return tar[1]
  206.  
  207. end
  208.  
  209. local Aimed = _R["CUserCmd"].SetViewAngles
  210.  
  211. // This is the part where we don't have to move our mouse. :)
  212.  
  213. function AutoAim( UCMD )
  214.  
  215. if Aiming and WeaponCheck() then
  216.  
  217. local targ = GetTarget()
  218. if targ == 0 then return end
  219.  
  220. local velocity = targ:GetVelocity() or Vector(0,0,0)
  221.  
  222. Aimed(UCMD, ( ( HeadPosition( targ ) + velocity * 2 * FrameTime() ) - LocalPlayer():GetShootPos() ):Angle() )
  223.  
  224. local trace = LocalPlayer():GetEyeTrace()
  225.  
  226. end
  227.  
  228. end
  229.  
  230. hook.Add("CreateMove", "Autoaim", AutoAim)
  231.  
  232.  
  233. concommand.Add("at_autoaim_on", function()
  234.  
  235. Aiming = true
  236.  
  237. LocalPlayer():ChatPrint(Hack .. "AutoAim Enabled!")
  238.  
  239. end )
  240.  
  241.  
  242. concommand.Add("at_autoaim_off", function()
  243.  
  244. Aiming = false
  245.  
  246. LocalPlayer():ChatPrint(Hack .. "AutoAim Disabled!")
  247.  
  248. end )
  249.  
  250. // Checks if the weapon you are trying to shoot with is in the table 'BannedWeapons' if it is, then it doesn't shoot with the aimbot.
  251.  
  252. function WeaponCheck()
  253.  
  254. if !LocalPlayer():Alive() then return false end
  255.  
  256. if LocalPlayer():Alive() and LocalPlayer():GetActiveWeapon():IsValid() then
  257.  
  258. Weapon = LocalPlayer():GetActiveWeapon():GetClass()
  259.  
  260. else return false
  261.  
  262. end
  263.  
  264. if table.HasValue( BannedWeapons, Weapon ) then
  265.  
  266. return false
  267.  
  268. else
  269.  
  270. return true
  271.  
  272. end
  273.  
  274. end
  275.  
  276. // We gotta fire the gun too.
  277.  
  278. function Fire()
  279.  
  280. LocalPlayer():ConCommand("+attack; wait 2; -attack; wait 2")
  281.  
  282. end
  283.  
  284. // The menu.
  285.  
  286. local function menu()
  287.  
  288. local panel = vgui.Create("DFrame")
  289. panel:SetSize(560, 280)
  290. panel:SetPos(ScrW() / 3, ScrH() / 3)
  291. panel:SetTitle( "YoungExploiter" )
  292. panel:SetVisible( true )
  293. panel:SetDraggable( true )
  294. panel:ShowCloseButton( true )
  295. panel:MakePopup()
  296.  
  297. enabled1 = vgui.Create( "DButton", panel )
  298. enabled1:SetPos( 20, 50 )
  299. enabled1:SetSize( 140, 40 )
  300. enabled1:SetText( "Autoshoot On" )
  301. enabled1.DoClick = function()
  302.  
  303. RunConsoleCommand( "at_autoshoot_on" )
  304.  
  305. end
  306.  
  307. disabled1 = vgui.Create( "DButton", panel )
  308. disabled1:SetPos( 20, 100 )
  309. disabled1:SetSize( 140, 40 )
  310. disabled1:SetText( "Autoshoot Off" )
  311. disabled1.DoClick = function()
  312.  
  313. RunConsoleCommand( "at_autoshoot_off" )
  314.  
  315. end
  316.  
  317. espon1 = vgui.Create( "DButton", panel )
  318. espon1:SetPos( 200, 50 )
  319. espon1:SetSize( 140, 40 )
  320. espon1:SetText( "ESP On" )
  321. espon1.DoClick = function()
  322.  
  323. RunConsoleCommand( "at_esp_on" )
  324.  
  325. end
  326.  
  327. espoff1 = vgui.Create( "DButton", panel )
  328. espoff1:SetPos( 200, 100 )
  329. espoff1:SetSize( 140, 40 )
  330. espoff1:SetText( "ESP Off" )
  331. espoff1.DoClick = function()
  332.  
  333. RunConsoleCommand( "at_esp_off" )
  334.  
  335. end
  336.  
  337. aimoff1 = vgui.Create( "DButton", panel )
  338. aimoff1:SetPos( 20, 210 )
  339. aimoff1:SetSize( 140, 40 )
  340. aimoff1:SetText( "Autoaim Off" )
  341. aimoff1.DoClick = function()
  342.  
  343. RunConsoleCommand( "at_autoaim_off" )
  344.  
  345. end
  346.  
  347. aimon1 = vgui.Create( "DButton", panel )
  348. aimon1:SetPos( 20, 160 )
  349. aimon1:SetSize( 140, 40 )
  350. aimon1:SetText( "Autoaim On" )
  351. aimon1.DoClick = function()
  352.  
  353. RunConsoleCommand( "at_autoaim_on" )
  354.  
  355. end
  356.  
  357. mode1 = vgui.Create( "DButton", panel )
  358. mode1:SetPos( 380, 80 )
  359. mode1:SetSize( 140, 40 )
  360. mode1:SetText( "Aimbot: All" )
  361. mode1.DoClick = function()
  362.  
  363. Mode = 1
  364. LocalPlayer():ChatPrint(Hack .. "Aimbot Mode: All")
  365.  
  366. end
  367.  
  368. mode2 = vgui.Create( "DButton", panel )
  369. mode2:SetPos( 380, 130 )
  370. mode2:SetSize( 140, 40 )
  371. mode2:SetText( "Aimbot: Player" )
  372. mode2.DoClick = function()
  373.  
  374. Mode = 2
  375. LocalPlayer():ChatPrint(Hack .. "Aimbot Mode: Player")
  376.  
  377. end
  378.  
  379. mode3 = vgui.Create( "DButton", panel )
  380. mode3:SetPos( 380, 180 )
  381. mode3:SetSize( 140, 40 )
  382. mode3:SetText( "Aimbot: NPC" )
  383. mode3.DoClick = function()
  384.  
  385. Mode = 3
  386. LocalPlayer():ChatPrint(Hack .. "Aimbot Mode: NPC")
  387.  
  388. end
  389.  
  390. randon = vgui.Create( "DButton", panel )
  391. randon:SetPos( 200, 160 )
  392. randon:SetSize( 140, 40 )
  393. randon:SetText( "Name Changer On" )
  394. randon.DoClick = function()
  395.  
  396. LocalPlayer():ConCommand("at_changer_on")
  397.  
  398. end
  399.  
  400. randoff = vgui.Create( "DButton", panel )
  401. randoff:SetPos( 200, 210 )
  402. randoff:SetSize( 140, 40 )
  403. randoff:SetText( "Name Changer Off" )
  404. randoff.DoClick = function()
  405.  
  406. LocalPlayer():ConCommand("at_changer_off")
  407.  
  408. end
  409.  
  410. label1 = vgui.Create( "Label", panel )
  411. label1:SetPos( 205, 250 )
  412. label1:SetSize( 140, 40 )
  413. label1:SetText( "Coded by Mr.Thc#2568" )
  414.  
  415. recoilon = vgui.Create( "DButton", panel )
  416. recoilon:SetPos( 360, 40 )
  417. recoilon:SetSize( 80, 30 )
  418. recoilon:SetText( "No-Recoil On" )
  419. recoilon.DoClick = function()
  420.  
  421. LocalPlayer():ConCommand("at_norecoil_on")
  422.  
  423. end
  424.  
  425. recoiloff = vgui.Create( "DButton", panel )
  426. recoiloff:SetPos( 450, 40 )
  427. recoiloff:SetSize( 80, 30 )
  428. recoiloff:SetText( "No-Recoil Off" )
  429. recoiloff.DoClick = function()
  430.  
  431. LocalPlayer():ConCommand("at_norecoil_off")
  432.  
  433. end
  434.  
  435. end
  436.  
  437. concommand.Add("at_menu", menu)
  438.  
  439. concommand.Add("at_autoshoot_on", function()
  440.  
  441. AutoShoot = true
  442. LocalPlayer():ChatPrint(Hack .. "AutoShoot Enabled!")
  443.  
  444. end )
  445.  
  446. concommand.Add("at_norecoil_on", function()
  447.  
  448. Recoil = false
  449. LocalPlayer():ChatPrint( Hack .. "No-Recoil Enabled!" )
  450.  
  451. end )
  452.  
  453. concommand.Add("at_norecoil_off", function()
  454.  
  455. Recoil = true
  456. LocalPlayer():ChatPrint( Hack .. "No-Recoil Disabled!" )
  457.  
  458. end )
  459.  
  460. concommand.Add("at_autoshoot_off", function()
  461.  
  462. AutoShoot = false
  463. LocalPlayer():ChatPrint(Hack .. "AutoShoot Disabled!")
  464.  
  465. end )
  466.  
  467. hook.Add("Think", "Autoshoot", ATHack)
  468.  
  469. // Name changer, yay?
  470.  
  471. function name_random()
  472.  
  473. if random == true then
  474.  
  475. RunConsoleCommand("setinfo", "name", table.Random( player.GetAll() ):Nick() .. " ")
  476.  
  477. end
  478.  
  479. end
  480.  
  481. concommand.Add("at_changer_on", function( ply )
  482.  
  483. local orig = ply:Nick()
  484. random = true
  485. hook.Add("Think", "random", name_random)
  486.  
  487. end )
  488.  
  489. concommand.Add("at_changer_off", function()
  490.  
  491. random = false
  492. hook.Remove("Think", "random", name_random)
  493. RunConsoleCommand("setinfo", "name", orig)
  494.  
  495. end )
  496.  
  497. // It's time for some wallhacking.
  498.  
  499. function esp()
  500.  
  501. if enabled == true then
  502.  
  503. for _,v in ipairs (player.GetAll()) do
  504.  
  505. local pos = v:GetPos() + Vector(0,0,90)
  506. pos = pos:ToScreen()
  507.  
  508. if v:Nick() == LocalPlayer():Nick() then
  509. name = ""
  510. dead = ""
  511. else
  512. name = v:Nick()
  513. dead = "*Dead*"
  514. end
  515.  
  516. if v:Health() > 0 then
  517. color = Color(255,255,255,255)
  518. elseif v:Health() < 1 then
  519. color = Color(0,0,0,255)
  520.  
  521. draw.DrawText(dead, "ScoreboardText", pos.x, pos.y + 10, color,1)
  522.  
  523. end
  524.  
  525. draw.DrawText(name, "ScoreboardText", pos.x, pos.y - 10, color,1)
  526.  
  527. end
  528.  
  529. end
  530.  
  531. end
  532.  
  533. concommand.Add("at_esp_on", function()
  534.  
  535. enabled = true
  536. hook.Add("HUDPaint", "Paint", esp)
  537. LocalPlayer():ChatPrint(Hack .. "ESP - Enabled")
  538.  
  539. end )
  540.  
  541. concommand.Add("at_esp_off", function()
  542.  
  543. enabled = false
  544. LocalPlayer():ChatPrint(Hack .. "ESP - Disabled")
  545.  
  546.  
  547. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement