Plugin not registering mouse clicking

Hello developers!

I am making a plugin that has a dragging frame feature.
Would anyone know why the following code isn’t working?

local Mouse = plugin:GetMouse()

Mouse.Button1Up:Connect(function()
    print("MOUSE UP!!!!")
end)

Mouse.Button1Down:Connect(function()
    print("MOUSE DOWN!!!!")
end)

This is saved as a local plugin.

Try using UserInputService for this.

try putting plugin:Activate(true) before the events

1 Like

UIS is client only from what I can recall, this is a plugin.

you can actually use UIS in plugins too

Interesting. Thanks, and I take it back @absentdenik.

1 Like