Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there a way to remove one specific child from what I am gathering ":GetChildren()"?(Solved)

Asked by 5 years ago
Edited 5 years ago

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.

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. DeceptiveCaster 3761 — 5y
0
The way I solved it is by putting a slotvalue into the "UIGridLayout" and making its name full. But thank you for helping. DylanD319 9 — 5y
0
Put [SOLVED] in your title so that people know that you solved your problem. DeceptiveCaster 3761 — 5y

Answer this question