Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Wait until model has been copied to workspace?

Is there a way to wait until a model with a lot of bricks inside has been copied from ServerStorage to Workspace? The model is a map where the players will teleport so it has to be fully loaded before the players teleport there.

1 answer

WaitForChild does exactly this. Call it on the object you expect to be the parent(In your case workspace) and give it a name and it will pause your script until it is added.

2 comments

0

or you could do repeat wait() until map.Parent = workspace

0

/\ No reason to. There is a method specifically for this task. No reason to re-invent the wheel.

This discussion is preserved as it was. New answers, comments, and votes are closed.