Hello everyone,
I am using userinputservice to look for scroll wheel and left click drag (which works), but when the player uses scroll wheel, they zoom in ingame, and when they drag left click, they click in game.
How can I make it so the inputs don’t work in game when on the UI?
2nd argument in the InputBegan event is respossible for that
UserInputService.InputBegan:Connect(function(input: InputObject,gameProcessedEvent: boolean):()
if gameProcessedEvent then --[[Player is using GUI so we are stopping the code]] return end
end)