PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

GetMouse

Returns a mouse that can be used with the plugin.

Returns

Return Type Summary

Code Samples


Plugin:GetMouse

This code would print Button 1 pressed from PluginMouse each time the mouse’s left button was clicked.

local plugin = PluginManager():CreatePlugin() 
local mouse = plugin:GetMouse()    -- Gets the PluginMouse 
mouse.Button1Down:Connect(function()   
    print("Button 1 pressed from PluginMouse")
end)