Plugin Gui elements not loading properly upon loading

Hey all!

I am making a plugin for myself that makes it easier to edit map data inside datastores. however, I’ve ran into an issue that didn’t happen before.

When opening the widget and navigating to the map collection, it’s supposed to clone a sample button stored inside the ScrollingFrame and change it based on incoming data. However, upon the UI loading in, the sample button seems to lose all its additional elements (UICorners, UIStrokes, etc.)

What I want:
image

What I get:
image

The button itself is entirely for input, it doesn’t display any data. Therefore, this is a serious roadblock here, seeing as there is no object to display data on.

Any ideas on how to solve this issue? I’m happy to provide additional info if needed!
Thanks in advance!

1 Like

A few things to note: Archivable - Make sure every element has this property enabled. Active - Make sure every element has this property enabled.
Let me know if this doesn’t fix it :slight_smile:

Try changing Z-Index of objects.

I have found the solution - it was a script issue.

In the update function, I wanted to delete all items and then re-add them, and that accidentally included the sample button as well.

Sorry for wasting your time!

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