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

How would I script a loading gui that would open when data has finished loading?

I don't need any of the gui script here. Just asking if anyone knows a method for waiting till data has loaded. especially because I will need to be doing multiple requests and don't want my requests to be throttled. does anyone know a way to wait until more requests are allowed before performing the next GetAsync and so on? I figure I could just put a bunch of waits in and when the pcalled data store requests are done it closes the gui and puts the player into the game but I feel that would just be inefficient. Any help would be appreciated. Thanks!

1 comment

0

I believe this article might assist you, even if it isn't a gui http://wiki.roblox.com/index.php?title=Creating_a_Custom_Loading_Screen#Hiding_loading_screen

1 answer

✓ Accepted answer

Two answers:

Ok, so the first thing you can try is hiding the loading screen when the RequestQueSize is to 0.

RequestQueSize determines how many assets there are left to load. To access this, type the code: game.ContentProvider.RequestQueueSize

Second answer:

game.Loaded

This is an event, so you'd use this for a function. I personally don't use this because ROBLOX themself says this isn't very accurate. Also, not sure, but I think it only fires the FIRST EVER TIME YOU LOAD A GAME. Be careful of that

If this helped, accept the answer.

1 comment

1

Thanks so much you helped a ton! Have a great day.

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