ContentProvider:PreloadAsync(loadables, function() dont work

  1. What do you want to achieve? Loading screen which are based from my worksapce loading

  2. **What is the issue?**i try use this code

local loadables = {workspace.Model:GetChildren()} -- your loadable array.

local amount_loaded = 0
local ContentProvider = game:GetService("ContentProvider")

ContentProvider:PreloadAsync(loadables, function()
    amount_loaded = amount_loaded+1
    script.Parent.Size = UDim2.new(0,amount_loaded/#loadables,0,42)
end)

The error is could not cast Array to content

  1. What solutions have you tried so far? Ive look in rodev discord server but ive got no avail
    ive use a modified code from this
    Creating a Loading Bar based off of number of assets loaded

Also Mine loading essentially load a model which has a model init which has another model init which have a part and union in it.Ive try using on a model with 3 part but it still dont work

Remove the {'s so it’s just

local loadables = workspace.Model:GetChildren()

Today im busy so imma try tomorrow but thx for answer