Im attempting to create a plugin of my own and adding some keybinds but im unsure how to do it? help
You could create a dictionary with the key representing the input and a function as the value which does the specified action when called.
local function ToggleFunction() print'ok' end local Keybinds = { [Enum.KeyCode.Q] = ToggleFunction, } local Input = Enum.KeyCode.Q Keybinds[Input]()