What is the ExclusiveMouse in plugin?

Based on the exmaple code from PluginMouse | Documentation - Roblox Creator Hub
I am confused about the exclusiveMouse: [bool] setting, I did not notice any difference when I set it to true. Especially when I use two plugins, one is set to true, another is set to false, the false one still works. And it doesn’t matter if I use the “true” one plugin first or second, the only active mouse will be the last one based on the print.

Could anyone explain it for me? thx.

plugin:Activate(true) -- gain exclusive access to the mouse
local mouse1 = plugin:GetMouse()

local function button1Down()
	print(plugin:IsActivatedWithExclusiveMouse())
	print("Left mouse click 111")
end

mouse1.Button1Down:Connect(button1Down)
plugin:Activate(false) -- gain non exclusive access to the mouse
local mouse2 = plugin:GetMouse()

local function button2Down()
	print(plugin:IsActivatedWithExclusiveMouse())
	print("Left mouse click 222")
end

mouse1.Button2Down:Connect(button2Down)
1 Like

There is also another developer asked this qustion Explain the “exclusiveMouse” Parameter of plugin:Activate() - Bug Reports / Documentation Issues - Developer Forum | Roblox. Can any official staff explain it for us plz? THX.