wdym “in plugins” like in their own widget? You have to get its dock widget and then insert your own frame and then when do Frame.InputChanged:Connect(function() end) then you can listen for when the mouse moves on that dock widget.
I’m not experienced at ALL with plugins, but perhaps this would work?
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local MousePosition
RunService.Heartbeat:Connect(function()
MousePosition = UserInputService:GetMouseLocation()
end)