I'm trying to find the mouse of the player inside a plugin Does anyone know how to get the mouse of a person who pressed a plugin?
local plugin = PluginManager():CreatePlugin()
local toolbar = plugin:CreateToolbar("test")
local button = toolbar:CreateButton("test", "test", "test.png")
button.Click:connect(function()
mouse = GetMouse()
mouse.Button1Down:connect(function() --This isn't working
print("Button 1 pressed from PluginMouse")
end)
end)

3 comments
What's the error?
You have to call 'GetMouse()' on 'plugin', for instance, 'local mouse = plugin:GetMouse()'
If that answered your question, please put 'Answered' in the title.