local function onInputBegan(input,gameProcessed) if input.UserInputType == Enum.UserInputType.Keyboard then local keyPressed = input.KeyCode print("A key is being pushed down! Key:",input.KeyCode)
In this script, input and gameprocessed are not define. Therefore, how then does that work in this script. How can you define input.UserInputType when input isn't even define?
Do you define the parameter(which in this case, is input and gameprocessed), later in the script? or what?
I don't understand how you define parameters.