I am using ContentProvider for a loading screen and it is only loading the camera when there are more than just that in the game. All the assets load fine but the script only says it loads the camera.
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
local ContentProvider = game:GetService("ContentProvider")
local LoadingScreen = script:WaitForChild("LoadingScreen"):Clone()
local Player = game:GetService("Players").LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
LoadingScreen.Parent = PlayerGui
local Background = LoadingScreen:WaitForChild("Background")
local AssetBar = Background:WaitForChild("AssetBar")
local Title = Background:WaitForChild("Title")
local Assets = {}
------------------------------------------------------------------------------
for _, Object in pairs(workspace:GetDescendants()) do
local Number = #Assets + 1
Assets[Number] = Object
end
------------------------------------------------------------------------------
for i = 1, #Assets, 1 do
local Asset = Assets[i]
ContentProvider:PreloadAsync({Asset})
AssetBar.Text = "Loading " .. Asset.Name
print(Asset.Name)
end
wait(10)
LoadingScreen:Destroy()
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true)