Binding multiple keys to one action?

game:GetService('ContextActionService'):BindActionAtPriority('Place', inputPlace, false, 9, Enum.UserInputType.MouseButton1)

What I want to be able to do is bind multiple keys to this one action. So I want if the player clicks, touch (for mobile/tablet) or presses A (gamepad) it to work. I tried doing what I have below for just pc and tablet,

game:GetService('ContextActionService'):BindActionAtPriority('Place', inputPlace, false, 9, Enum.UserInputType.MouseButton1, Enum.UserInputType.Touch)

But this just breaks everything. There are no errors in the output.

1 Like

Well, that’s exactly how it’s supposed to work. Out of curiosity, have you tried mixing up the input types? And what is the “9” there?

4 Likes