Hey Devforumers!
I’m making a plugin (my third one but my first with widgets) and I’m confused by this error: 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!
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
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!