Categories > Coding > Lua >
How to find needed folder?
Posted
I need find fixtures with children who have children(like on ss 1). Another folders looks like ss 2
https://i.imgur.com/t9xqF3R.png
https://i.imgur.com/H3jcY8E.png
Cancel
Post
Replied
ok ik barely any lua, but with my logic, you go iterate thru the folders and for each iteration you check if there are children in em
Cancel
Post
Replied
Can you let us know what type of instances are found inside the IDs in the fixture folders?
Cancel
Post
Added
Can you tell us what type of instances are found inside the IDs in the fixture folders?
Cancel
Post
https://media.discordapp.net/attachments/1134643100715855893/1138795549244539011/SiggyOnGod.png
Replied
Your best bet might be using `:GetDescendants()` and filtering for the instance you're looking for. If you could provide me with more info on what you're trying to do i can probably help a bit more.
Cancel
Post
Replied
For anyone else that is also looking on how to do this, this is how :)
for i,v in pairs(game.Workspace.fixtures:GetChildren()) do
print(v)
end
Fixtures would be the name of the folder or object that your trying to find the stuff inside of :)
Cancel
Post
Open to help anyone with anything, DM me on discord :)
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Comments
RaCc0oN 0 Reputation
Commented
I'm resolve it by destroy empty folders)
0