function KeyPrimary(actionName, userInputState, inputObject)
print(userInputState)
if userInputState == Enum.UserInputState.Begin then
print("1 was pressed")
end
end
game.ContextActionService:BindAction("keyPress", KeyPrimary, false, Enum.KeyCode.One)
When I use this it only prints the userInputState as I let go of 1, how come it doesn't work when I push it down?

1 comment
Thanks! I wonder why there is an emun.keycode.one if it doesn't work :/ Edit 2: oooo its used in UserInputServer