Advertisement
SwellzD

test.lua

Aug 10th, 2022 (edited)
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. while true do
  2.     local sEvent, param = os.pullEvent("key")
  3.     if sEvent == "key" then
  4.         if param == 87 then
  5.             print("Key W")
  6.         elseif param == 65 then
  7.             print("Key A")
  8.         elseif param == 83 then
  9.             print("Key S")
  10.         elseif param == 65 then
  11.             print("Key D")
  12.         end
  13.     end
  14. end
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement