Hello, I’ve been stuck on how to handle inputs for a bit now. I’ve been needing to make an input system in a way that allows a central way to handle inputs (for easier handling/changing of said method) past server/client boundaries. I don’t want to use multiple remote bindables unless necessary, and I tried making a module to handle such but I’m a bit stumped as to what to do at all.
Here is the key bind module I have made as a base for inputs.
return {
["Interact"] = Enum.KeyCode.E,
["Interact2"] = Enum.KeyCode.Q,
["Action"] = Enum.KeyCode.Z, -- For later use?
["Action2"] = Enum.KeyCode.X, -- For later use?
["Flashlight"] = Enum.KeyCode.F,
["Run"] = Enum.KeyCode.LeftShift,
["Crouch"] = Enum.KeyCode.C,
["MouseLock"] = Enum.KeyCode.T,
["Debug"] = Enum.KeyCode.Semicolon
}