This is my code so far:
function onKeyPress(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.32 then
print("Space was pressed")
end
end
game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Erroring at line 2. Dont know how to refer to a number.

1 comment
Derp... I thought the name was just a obvious description, not an actual registered name. Thanks. +1