There isn't any way to tell if the middle mouse button is down, only the left/right buttons. Is there any way to tell if it is down? I tried InputBegan, but that returned Enum.KeyCode.Unknown. Maybe there is a different event that returns the middle mouse button status?
local player = game:GetService("Players").LocalPlayer local userinput = game:GetService("UserInputService") userinput.InputBegan:Connect(function(input, bool) if bool then return end local input = input.UserInputType.Name if input == "MouseButton3" then print("MouseButton3 is being held down") end end)
You cant. It is actually refered to as
WheelBackward
or
WheelFoward
eg.
if WheelBackward:connect(function() -- script goes here end