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

How is input.UserInputType working according to the script? input and GameProcessed are not defined!

Asked by 7 years ago

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.
0
Can you put the full script in the code block. User#5423 17 — 7y

Answer this question