Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How does the Plugin F3X Keybind's work?

Asked by 3 years ago

Im attempting to create a plugin of my own and adding some keybinds but im unsure how to do it? help

1 answer

Log in to vote
0
Answered by 3 years ago

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]()
0
no Gooncreeper 98 — 3y
0
Your description was pretty vague, so do u have any other requirments? Nickuhhhhhhhhhhhhhhh 834 — 3y
Ad

Answer this question