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

Oct 01 2018, 1:53 AM PST

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)