Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How does the Plugin F3X Keybind's work?

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

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]()

2 comments

0

no

0

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

This discussion is preserved as it was. New answers, comments, and votes are closed.