Skip to content

Instantly share code, notes, and snippets.

@altacountbabi
Last active August 10, 2022 10:21
Show Gist options
  • Save altacountbabi/46f0af69c5f6088edcb9a1e26505250c to your computer and use it in GitHub Desktop.
Save altacountbabi/46f0af69c5f6088edcb9a1e26505250c to your computer and use it in GitHub Desktop.
Input library
-- 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