Pressing X along with moving buttons does not register

I need to bind an input to the KeyCode.X. I am doing it with ContextActionService but I noticed that when two of the moving buttons (WASD) are down while pressing X, the input does not even register. The combinations that I have found to do this are as follows.

  • W and D
  • W and A
  • S and D
  • S and A

If one of these combos is down, then pressing X will not do anything in the ContextActionService function.

Here is the code to put in a LocalScript to reproduce:

local ContextActionService = game:GetService("ContextActionService")

ContextActionService:BindAction("PressX", function(Name, State, Input)
	if State == Enum.UserInputState.Begin then
		print("Pressed X!")
end, false, Enum.KeyCode.X)

This topic was automatically closed after 1 minute. New replies are no longer allowed.