Detecting when a model finishes cloning

I am trying to load a map in my game. I’m assuming I’ll have quite large maps in the future and I do not want players to be teleported into the unloaded map.

Thus I want to yield until (or at least find a way to detect when) the model has fully finished cloning.

I couldn’t find anything by searching and I have no idea how I could approach this. I would appreciate if someone found a solution for me.

Thank you in advance

roblox scenegraph is unstable until the end of the current resumption cycle after mutations (wherein .Parent changes, for instance, dont fry your code)

so use task.defer
you could also use a yield + defer + resume mechanism

cloning is blocking, not asynchronous

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.