Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. reateClientConVar( "antiafktimer", 5 )
  2. local aafkon = 0
  3. local movements = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } -- different movement types
  4. local function move1( )
  5. RunConsoleCommand( "+forward" )
  6. LocalPlayer():ConCommand( "act cheer" )
  7. timer.Simple( .5, function( )
  8. RunConsoleCommand( "-forward" )
  9. end )
  10. end
  11. local function move2( )
  12. RunConsoleCommand( "+left" )
  13. RunConsoleCommand( "+back" )
  14. LocalPlayer():ConCommand( "act laugh" )
  15. timer.Simple(.5, function()
  16. RunConsoleCommand( "-left" )
  17. RunConsoleCommand( "-back" )
  18. end )
  19. end
  20. local function move3( )
  21. RunConsoleCommand( "+back" )
  22. LocalPlayer():ConCommand( "act muscle" )
  23. timer.Simple( .5, function( )
  24. RunConsoleCommand( "-back" )
  25. end )
  26. end
  27. local function move4( )
  28. RunConsoleCommand( "+right" )
  29. RunConsoleCommand( "+forward" )
  30. LocalPlayer():ConCommand( "act robot" )
  31. timer.Simple( .5, function( )
  32. RunConsoleCommand( "-right" )
  33. RunConsoleCommand( "-forward" )
  34. end )
  35. end
  36. local function move5( )
  37. RunConsoleCommand( "+moveright" )
  38. LocalPlayer():ConCommand( "act zombie" )
  39. timer.Simple( .5, function( )
  40. RunConsoleCommand( "-moveright" )
  41. end )
  42. end
  43. local function move6( )
  44. RunConsoleCommand( "+back" )
  45. LocalPlayer():ConCommand( "act robot" )
  46. timer.Simple( .5, function( )
  47. RunConsoleCommand( "-back" )
  48. end )
  49. end
  50. local function move7( )
  51. RunConsoleCommand( "+right" )
  52. RunConsoleCommand( "+moveleft" )
  53. timer.Simple( .5, function( )
  54. RunConsoleCommand( "-right" )
  55. RunConsoleCommand( "-moveleft" )
  56. LocalPlayer():ConCommand( "act dance" )
  57. end )
  58. end
  59. local function move8( )
  60. RunConsoleCommand( "+jump" )
  61. RunConsoleCommand( "+duck" )
  62. timer.Simple( .5, function( )
  63. RunConsoleCommand( "-jump" )
  64. RunConsoleCommand( "-duck" )
  65. LocalPlayer():ConCommand( "act agree" )
  66. end )
  67. end
  68. local function move9( )
  69. RunConsoleCommand( "+attack" )
  70. LocalPlayer():ConCommand( "act becon" )
  71. timer.Simple( .5, function( )
  72. RunConsoleCommand( "-attack" )
  73. end )
  74. end
  75. local function move10( )
  76. RunConsoleCommand( "+zoom" )
  77. LocalPlayer():ConCommand( "act disagree" )
  78. timer.Simple( .5, function( )
  79. RunConsoleCommand( "-zoom" )
  80. end )
  81. end
  82. local function antiafk( )
  83. if aafkon == 0 then
  84. timer.Create( "antiafk", GetConVarNumber( "antiafktimer" ), 0, function( )
  85. local grm = table.Random( movements )
  86. if grm == 1 then
  87. move1( )
  88. elseif grm == 2 then
  89. move2( )
  90. elseif grm == 3 then
  91. move3( )
  92. elseif grm == 4 then
  93. move4( )
  94. elseif grm == 5 then
  95. move5( )
  96. elseif grm == 6 then
  97. move6( )
  98. elseif grm == 7 then
  99. move7( )
  100. elseif grm == 8 then
  101. move8( )
  102. elseif grm == 9 then
  103. move9( )
  104. elseif grm == 10 then
  105. move10( )
  106. end
  107. end )
  108. aafkon = 1
  109. elseif aafkon == 1 then
  110. timer.Destroy( "antiafk" )
  111. hook.Remove( "HUDPaint", "aafkpaint" )
  112. aafkon = 0
  113. end
  114. end
  115. concommand.Add( "antiafk", antiafk )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement