Advertisement
DOGGYWOOF

block keybinds

Jan 4th, 2024 (edited)
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. while true do
  2. local event, key = os.pullEvent("key")
  3.  
  4. -- Check for Ctrl + R, Ctrl + S, or Ctrl + T
  5. if (key == keys.r and keys.leftCtrl) or (key == keys.s and keys.leftCtrl) or (key == keys.t and keys.leftCtrl) then
  6. -- Do nothing or display a message to indicate the keys are disabled
  7. print("Ctrl + R/S/T is disabled.")
  8. else
  9. -- Process other key presses
  10. -- Your code here
  11. end
  12. end
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement