I know I have a simple question…
This question was not solved by anyone successfully…
My question is…
Imagine you start this loop
For a, b in ipairs(folder:getchildren()) do
And while it is running you add another instance to the folder . The question is will it be included or not?
No it will not be included.
But how do you make it included???
Without restarting the loop?
You can turn the
folder:getchildren() into a variable
local children = folder:getchildren()
You can use the event that runs when something gets added in the folder.
table.insert(children, child) -- and add it to the children
Idk if that works, I never encountered questions like this before.
What about checking it because I cannot check it right now
wdym about checking the parts?
I’m talking about checking if it works because I’m 100% sure that it doesn’t work.
Can you try if it works? I haven’t tried it yet so I don’t know.
But what about just trying it I tried it many times before And other ways and since you still have the same tablet are not Updating it it will not work
I need a method too update the table while the loop is running
I believe I made a mistake above my post. Could you try again with this snippet?
I don’t see to snip at you are talking about
Like I said I need a function that helps me to update
If I don’t have a function to update it makes no sense
Since the thing i’m trying to achieve is Making everything that cats added while the loop is running still be included
Didn’t you see the code there?
In fact I didn’t see it but this is not solving the problem
Like I said before I need the loop to update
You didn’t see the event I wrote that fires everytime a new child has been added?
How do I have to place it? And also will it automatically update the loop without having to run it again?
To answer your question? Yes, I did see it but I do not understand how I have to implement that.
I want to loop to run and include everything. Because I needed for an entity my door Game. If I were to restart a loop, the entity would not go smoothly through the rooms