ContextActionService Mouse buttons not working?

Hello there, I’m new to using the ContextActionService API, I’d like to know if it is normal that when I write the following code:

contextActionService:BindAction(ACTION_HIT, handleAction, true, Enum.KeyCode.MouseLeftButton, Enum.KeyCode.X)

or any related mouse buttons, the binding does not fire, but the other keys do?

Thank you!

Try this:

contextActionService:BindAction(ACTION_HIT, handleAction, true, Enum.UserInputType.MouseButton1, Enum.KeyCode.X)

i believe Enum.KeyCode.MouseLeftButton is deprecated, i also believe ContextActionService was announced to being deprecated in the input action system release announcement
you should just switch to UserInputService, it is easier to understand and isn’t being deprecated