Describe the bug
UserInputService’s InputBegan does not process Enum.KeyCode.LeftShift
How often
I’ve tried it multiple times on both Roblox Studio and in game.
It doesn’t seem to be working at all.
Where does the bug happen
Both in studio and in game.
Example code:
UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if not gameProcessed then
local keyPressed = input.KeyCode
print(keyPressed)
if keyPressed == Enum.KeyCode.LeftShift then
print('THIS MSG NEVER PRINTS!')
end
end
end)
UserInputService.InputEnded:Connect(function(input, gameProcessed)
if not gameProcessed then
local keyPressed = input.KeyCode
print(keyPressed)
if keyPressed == Enum.KeyCode.LeftShift then
print('THIS MSG DOES PRINT!')
end
end
end)