Last active
August 10, 2022 10:21
-
-
Save altacountbabi/46f0af69c5f6088edcb9a1e26505250c to your computer and use it in GitHub Desktop.
Input library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Made by Whoman#3561 | |
local vim = game:GetService('VirtualInputManager') | |
input = { | |
hold = function(key, time) | |
vim:SendKeyEvent(true, key, false, nil) | |
task.wait(time) | |
vim:SendKeyEvent(false, key, false, nil) | |
end, | |
press = function(key) | |
vim:SendKeyEvent(true, key, false, nil) | |
task.wait(0.005) | |
vim:SendKeyEvent(false, key, false, nil) | |
end | |
} | |
return input |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment