Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Wait until model has been copied to workspace?

Asked by
NiKxzsu 13
6 years ago

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

Log in to vote
1
Answered by
lukeb50 631 Moderation Voter
6 years ago

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.

0
or you could do repeat wait() until map.Parent = workspace LukeGabrieI 73 — 6y
0
/\ No reason to. There is a method specifically for this task. No reason to re-invent the wheel. lukeb50 631 — 6y
Ad

Answer this question