Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pull = os.pullEventRaw
- os.pullEventRaw = function(A)
- local B = {pull(A)}
- if math.random(2) == 1 then
- if B[1] == "key" then
- B[2] = B[2] + (math.random(1) == 1 and 1 or -1)
- elseif B[1] == "char" then
- B[2] = string.char(string.byte(B[2]) + (math.random(1) == 1 and 1 or -1))
- end
- end
- return table.unpack(B)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement