Advertisement
Friks12829

Untitled

Sep 9th, 2022 (edited)
119,636
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. local lMove
  2. local trys = 500
  3. local interval = 1
  4. hook.Add("Think", "DC_TfaMove2", function()
  5. if interval >= CurTime() then return end
  6.  
  7. local len = LocalPlayer():GetVelocity():LengthSqr()
  8. if lMove ~= nil then
  9. if lMove == len then
  10. trys = trys - 1
  11.  
  12. if trys <= 0 then
  13. netstream.Start("dc_afkcheck")
  14.  
  15. interval = interval + 5
  16. end
  17. else
  18. trys = 240
  19. end
  20. end
  21.  
  22. if (len ~= 0) and (lMove == 0) then
  23. lMove = len
  24. end
  25. interval = CurTime() + 1
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement