I want to make it so when a new tool is added to the player’s backpack, a new button appears, with the text of the tool. When the tool is removed from the player’s backpack, the text button isn’t shown.
Here’s the gui and all of its contents.
And the open script, if this offers any help.
Things I’ve tried to implement
I’ve tried to make it so when you equip a tool, the button clones into the scrolling frame in the GUI, but that proved unsuccessful.
I’d really appreciate some help, I’ve been working on this for a couple of days now.
Thank you.
This is my first time creating a topic, so i don’t know how it usually works.
No, you can do the ChildAdded event and adding of button client sided. While making the equip script, make sure to check server sided whether the player has the item in their backpack.
You can populate that GUI, with a table, made of the backpack’s Children.
And on New Children added to the backpack, update the table, then update the GUI.
Your GUI Scroll list, should be populated based on the backpack’s inventory.