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

Is there a way to check if the client has completally loaded something?

Asked by 7 years ago

I've searched but i didn't got an awnser. I want to make a custom loading screen that checks if some parts were completally loaded in the client.

0
you would use WaitForChild. User#5423 17 — 7y

1 answer

Log in to vote
0
Answered by
RafDev 109
7 years ago

While some things may not be included here, the ones that take the longest to load are.

RequestQueueSize shows the number of items that need to be loaded. As such, you could use something like:

local ContentProvider = game:GetService("ContentProvider")
repeat wait() until ContentProvider.RequestQueueSize > 0 -- Its initial value is 0, and you don't want to use that
repeat wait() until ContentProvider.RequestQueueSize <= 0 -- (Less just in case)

If you only want to wait for some specific parts to be loaded, though:

Use WaitForChild:

Parent:WaitForChild("Item Name")

If this answer helped, upvote and accept! :)

0
But i want specific parts to be COMPLETALLY loaded,such as texture,properties,etc. Is there a way to do this? arthurgps2 67 — 7y
0
The first method will wait for textures (that are there on startup) and properties, I believe RafDev 109 — 7y
Ad

Answer this question