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

GetDescendants or GetChildren to gather all tools in a backpack?

Asked by 4 years ago

if i were to gather and delete all tools from a backpack, would i need to use the GetDescendants() or GetChilderen() functions in order to preform the act?

0
That would be `:GetChildren`. `:GetDescendants` gets all descendants, including handles, folders, etc. anything else you might have in tools. Use `:GetChildren`. Though, scripts can be stored in backpack and run, so you might want to filter those out with a simple if-clause incapaz 195 — 4y
1
GetChildren, if you’re removing all sets of Tools, all descendants will follow. Ziffixture 6913 — 4y
0
use GetChildren().. User#23252 26 — 4y
0
thanks ImprinintInc 18 — 4y

Answer this question