I am trying to make a type of GUI Murder Mystery 2 (MM2) Has, but I cannot do it because everything I try doesn't work. I've tried this chunk of code, but it doesn't print he "left of" part, and skips to "All assets loaded!". Is ContentProvider depreciated?
local cp = game:GetService("ContentProvider")
local totalassets = cp.RequestQueueSize
while cp.RequestQueueSize > 0 do
print(cp.RequestQueueSize .. " left of " .. totalassets .. " assets remaining...")
wait()
end
print("All assets loaded!")

4 comments
I may be wrong on this as I haven't touched ContentProvider in a while but you aren't loading anything into CP's queue until you actually call for an asset. You use :PreloadAsync for this.
I read about that and it seems you have to put EVERYTHING into a table to load, is there an easier way to load a game and display the amount of "parts" left to load?
If you want to know if an api is deprecated: You could search it up on developer.roblox.com and look for a deprecation box like this onehttps://developer.roblox.com/api-reference/class/HopperBin
ContentProvider is used for loading in assets/content. Rendering parts is a whole other thing if that's what you're trying to do.