Advertisement
9551

Untitled

Jun 8th, 2021 (edited)
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local pull = os.pullEventRaw
  2. os.pullEventRaw = function(A)
  3.     local B = {pull(A)}
  4.     if math.random(2) == 1 then
  5.         if B[1] == "key" then
  6.             B[2] = B[2] + (math.random(1) == 1 and 1 or -1)
  7.         elseif B[1] == "char" then
  8.             B[2] = string.char(string.byte(B[2]) + (math.random(1) == 1 and 1 or -1))
  9.         end
  10.     end
  11.     return table.unpack(B)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement