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)