I have connected a function to three UserInputService events (InputBegan, InputEnded, and InputChanged), in a such manner:
UIS.InputBegan:Connect(function(inp, gp) IM.InputBegan(inp, gp) // I do some calculations here end)
The issue is that when this part of the code is present, gamepad/xbox controls seems to behave in an undefined manner, as the jump button sometimes works and sometimes doesn’t, and the thumbstick works in a laggy-like fashion.
I was wondering why this happens and what possibilities exist to solve it?
Thanks a lot