Input Issue with Menu

I have a blocking system and it requires local script and a server script handler.

So what I do is check userinput and make stuff based off it. But the problem is that seems like menu is resetting user input service… I’m so confused

And this issue seems to be really exploitable.

simple code
userInputService.InputBegan:Connect(function(input,proccessed)
	if proccessed then return end
	:FireServer()
end)

userInputService.InputEnded:Connect(function(input)
	:FireServer()
end)


local guiService = game:GetService("GuiService")
guiService.MenuOpened:Connect(function()
	print("opened menu")

        --[[
            bad solution as its exploitable
            for _,v in pairs(keyCodes) do
		userInputEvent:FireServer({v,Enum.UserInputState.End})
	    end
        --]]
end)

image

  1. Pressed F
  2. Opened Menu
  3. It didn’t detect that F input ended…
1 Like

Try making it so the player needs to have a mouse target and can you please show the code you have?