UserInputBegan won’t run if I clicked on explorer, I’m not sure if it’s an engine bug or my script bug
As you can see in the video I tried to block after clicking the child inside of the explorer and got back to the game pressing F key the input began won’t detect it even thought I tried to add Cancel and WindowFocusReleased
My script
local function startBlock()
print("WO")
if not Humanoid or Humanoid.Health <= 0 or debounce.Punch or isBlocking then return end
isBlocking = true
RemoteSkill:FireServer("BlockStart")
animBlock.Looped = true
animBlock:Play(0)
end
UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
if gameProcessedEvent then return end
if input.KeyCode == Enum.KeyCode.F then
startBlock()
end
end)
Even the print WO won’t run after I clicked on the explorer’s child
Expected behavior
InputBegan detecting keys while checking properties of a child in explorer
