Input
Client & Server
The input module is used to send inputs to the server, and also makes keybind changing easier.
You can get all the input stuff like this:
local inputHandler = require(game.ReplicatedStorage.Modules.Input)
local input, keys = inputHandler.GetInput(player?) -- Player only for server
As you can see, it returns 2 values, input and keys. Input is all the functions, like binding or unbinding all the keys, and the keys are the actual keys in question.
For input, we have 2 functions;
input:BindAllActions()
input:UnbindAllActions()
Both of these can be used to bind or unbind any input, and is useful for things like cutscenes. Cannot be used on the server. You can still call them on the server, but for now they will just give you an error until I make them functional.
We also have the keys, which can be used like this;
keys.Run.KeyChanged:Connect(inputState)
keys.Run.IsDown
Whenever a key is pressed down or is released, KeyChanged fires.