How to check if Player presses the 1 key on keyboard

How do I do that? Working on a function to check when they obv press the 1 key but how do I do it

image

1 Like

Change enum.KeyCode.One do enum.KeyCode.1

1 Like

Its correct already, you dont need to change it.

Wouldnt that already work if the player presses the key one?

It’s input.KeyCode.

input.KeyCode == Enum.KeyCode.One
4 Likes