When I put "local invParts = inv:GetChildren()" it doesn't work the way it should because I'm also selecting a "UIGridLayout" along with my inventory slots. I haven't tried anything yet seeing as thought I have no clue how I'd go about doing this. If someone could answer this for me and explain how I'd go about doing it I'd greatly appreciate it.

3 comments

0

Because GetChildren() returns a table, you have to run a for loop through it to find the child you want to remove. Running a for loop and checking whether the child's name is equal to an index in the table is the way to go.

0

The way I solved it is by putting a slotvalue into the "UIGridLayout" and making its name full. But thank you for helping.

0

Put [SOLVED] in your title so that people know that you solved your problem.