I am making a game where pressing the top row of numbers toggles different vehicle options using ContextActionService. No tools are in the game, so using these numbers won't matter.
This works:
function onKey(actionName, userInputState, inputObject)
if userInputState == Enum.UserInputState.Begin then
print("Ok")
end
end
game.ContextActionService:BindAction("hit", onKey, false, "q")
This works to
game.ContextActionService:BindAction("hit", onKey, false, Enum.KeyCode.Space)
But these don't
game.ContextActionService:BindAction("hit", onKey, false, "1")
game.ContextActionService:BindAction("hit", onKey, false, Enum.KeyCode.One)
