Advertisement
whileDo

roblox auto hold W (my v2 anti afk)

Sep 26th, 2024
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | Gaming | 0 0
  1. local uis = game:GetService("UserInputService")
  2.  
  3. local holdingKey = false
  4. local toggleKey = Enum.KeyCode.F6
  5.  
  6. local function HoldKey()
  7. end
  8.  
  9. local function ReleaseKey()
  10. end
  11.  
  12. uis.InputBegan:Connect(function(input)
  13.     if input.KeyCode == toggleKey then
  14.         holdingKey = not holdingKey
  15.         if holdingKey then
  16.             HoldKey()
  17.         else
  18.             ReleaseKey()
  19.         end
  20.     end
  21. end)
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement