Hello! I had a problem and I’m not sure if there is a way to fix this.
I have a folder with lot of models with the same name inside and I add functionality by code to each object in this folder.
The problem is that the script is running faster than the scene load, so some parts haven’t this functionality.
Is it possible to do something that let the script wait until the scene is fully load but without using wait() ?
Thanks!!
At the top of the script, run this line
game:GetService("ContentProvider"):PreloadAsync(pathtofolder:GetDescendants())
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.