What does this mean?

Hey Devforumers!

I’m making a plugin (my third one but my first with widgets) and I’m confused by this error:
Screenshot 2020-11-10 224829
I’m assuming it means one widget per id but how can I make it so the widget deletes when you click the “X” so a new one can be created?

Thanks in advance! :slight_smile:

You could try destroying it when it gets disabled:

widget:GetPropertyChangedSignal("Enabled"):Connect(function()
    if widget.Enabled == false then
        widget:Destoy() 
    end
end)

That should work I believe

2 Likes

Still happens, this doesn’t work sadly.

EDIT: I already fixed where it says “:Destoy()” and it still errors.

I solved this by myself, it was a simple toggle for enabled!