Hey, I have a blocking system set up in my game, block is bound to MouseButton2 (right click).
I noticed that when I press right click extremely fast, and only when I press right click extremely fast, the InputEnded function in my module doesn’t fire. Other than this, my system works flawlessly.
Here’s the section of code I used to see if InputEnded is firing:
function InputHandler.InputEnded(plr, char, input, args)
if plr and char then
if input == BLOCK_ENDED and CheckIfValid(plr, input) then
_BLOCK.End(plr.Character)
warn("input ended for lbock")
--This isn't printing if I right-click extremely fast
Here’s an image of the console
(I have print statements set up telling me when I’m blocking, as you can see, it is unending and my warn statement for input ended doesn’t print)
I haven’t tried much, I’ve searched online but to no avail, help appreciated!
p.s. BLOCK_ENDED
is just my variable for the an argument I send to this module script when the player lets go of mouse button 2.