How to detect when player press mouse's scroll

How to detect when player press mouse’s scroll
i cant see any option in the UIS or player:getmouse(

The mouse scroll wheel is the same as MouseButton3, so this is what you could do:

UserInputService.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton3 then
        -- your code here
    end
end)
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.