Advertisement
Guest User

random_keys.lua

a guest
Jun 16th, 2022
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. EnablePrimaryMouseButtonEvents(true)
  2. function OnEvent(event, arg)
  3.    if event == "MOUSE_BUTTON_PRESSED" and arg == 5 then
  4.       repeat
  5.          local key = ({"8", "7", "w", "q", "f", "s"})[math.random(6)]
  6.          Sleep(math.random(20, 80))
  7.          PressKey(key)
  8.          Sleep(math.random(20, 80))
  9.          ReleaseKey(key)
  10.       until not IsMouseButtonPressed(5)
  11.    end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement