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

Help with loading?

How would I do a loop that waits for a model to load that has been inserted from lighting to workspace?

1 answer

✓ Accepted answer

Use a :WaitForChild() or add this inside of your function:

repeat
	wait()
until game.Workspace:FindFirstChild("ExampleModel")

2 comments

1

and remember, as always, the ~= nil is superfluous. Since you're answering the question, and repeat - until isn't that common, it might be better to use the standard line breaks and tabbing...

0

Updated, thank you.

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