Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- allows quick checking for a key being down (V2)
- function checkForKey(waitT)
- waitT = waitT or 0.05
- parallel.waitForAny(
- function()
- event,key = os.pullEvent("key")
- end,
- function()
- sleep(waitT)
- key=false
- end
- )
- return key
- end
- --key = checkForKey(keys.a,2)
- --print(key)
- return checkForKey
Add Comment
Please, Sign In to add comment