Im attempting to create a plugin of my own and adding some keybinds but im unsure how to do it? help
COMMUNITY QUESTION
How does the Plugin F3X Keybind's work?
1 answer
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]()
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
no
Your description was pretty vague, so do u have any other requirments?