Plugin Mouse Events

Hi, I’m making a plugin that in essence is like the terrain brush but instead of painting terrain, it paints assets (to make map creation easier for things like foliage).

I’ve run into a problem with a PluginMouse event where the Button1Down event doesn’t fire.

The API Says this event should be inherited:

image

Here’s my script that isn’t firing:

local Mouse = plugin:GetMouse()
Mouse.Button1Down:Connect(function()
    print(Click)
end)

Any help would be greatly appreciated!

1 Like

Discovered the issue! I was wrongly assuming the plugin was active because it was doing everything else. Just added a

plugin:Activate(true)

Now it appears to be working!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.