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

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

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.

1 comment

0

you would use WaitForChild.

1 answer

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! :)

2 comments

0

But i want specific parts to be COMPLETALLY loaded,such as texture,properties,etc. Is there a way to do this?

0

The first method will wait for textures (that are there on startup) and properties, I believe

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