Im making a loading screen using contentProvider and I’ve gotten it working. How can I add “EVERYTHING” in the game other then just the decedents of workspace? I want to get replicated storage and more.
toLoad = game:GetDescendants() --// This doesn't work
local total = #toLoad
Firstly, don’t get the descendants in a local script- it’ll be nil if not loaded, which is what I assume is breaking your script here? as far as I know you’d do this by sending the information from server via remote event in replicatedfirst, and have a script that just waits for everything that the server sent, or 120 seconds. You should combine the tables in the server, but check individual items on local script- because you know some of them wont be there. (tl:dr - send information from server via tables, check with local script. table of what “should be there”, not what client sees. check every now and then to see if it’s there.)