If you set the character jump power to 0 and reassign KeyCode A such as this;
elseif i.KeyCode == Enum.KeyCode.ButtonA then Carjump = true
Then the Keycode will not work, normally you would expect no issues. The bug occurs 100% of the time. To reproduce set the character jump power to 0 and reassign KeyCode A. The bug occurs in game and in gametest. I’ve only tried on PC with Xbox controllers but I assume the same thing happens on an actual Xbox. I’m not aware when the bug started to happen but it’s currently a big issue for me and my developers. If you use any other keys such as KeyCode B for the exacly same code, it works as expected.
Repro place:DevForumRepo.rbxl (556.2 KB)
(Script located in Playerscripts)
When it’s assigned to KeyCode A it doesn’t work, but while assigned to KeyCode B it does.