Additional Mouse Inputs?

This is not exactly code review, but is there any way to get non-conventional mouse inputs, such as pressing the middle-mouse (Mouse 3) in, or using the back/forward page (Mouse 4 & Mouse 5) keys? I haven’t seen anything anywhere about it, but I’d like to see if I’m just being blind.

You can use UserInputService for the scroll wheel button, but I am not sure you can use it for the other buttons:

local UserInputService = game:GetService("UserInputService")

UserInputService.InputBegan:Connect(function(Mouse,chatting)
	if Mouse.UserInputType == Enum.UserInputType.MouseButton3 then
		print("MouseButton3 Pressed")
	end
end)
1 Like