Best way to preload every asset in game?

I’m making a loading screen (doesn’t really have to have a progress bar) and I want it to yield until all the game’s assets are loaded, I tried this script but it doesn’t work. (Note: I tried to use :GetDescendants() as well)

local assets = {
	workspace:GetChildren(),
	game.StarterGui:GetChildren(),
	game.ReplicatedStorage:GetChildren()
}

game:GetService("ContentProvider"):PreloadAsync(assets)

--stuff

Duplicates…

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.