Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why is my PreloadAsync script returning preload errors for everything I try to load?

Asked by 5 years ago

I made a preloading script using PreloadAsync, but my console ends up getting spammed with "ContentProvider:PreloadAsync() failed for (insert asset here)", my script: (localscript in StarterPlayerScripts)


local ContentProvider = game:GetService("ContentProvider") ContentProvider:PreloadAsync(workspace.Assets:GetChildren()) script:Destroy()
0
I believe ContentProvider is server-side only. I'm not sure. User#19524 175 — 5y
1
it's actually client side only g1o2r3d4a5n6 350 — 5y
1
oh lol User#19524 175 — 5y
0
What are the items in the array in Assets. User#5423 17 — 5y
View all comments (2 more)
0
A bunch of imagelabels with the asset I want to load inside Professor_Boxtrot 136 — 5y
0
Please provide the errors. uhTeddy 101 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

I don't know will this work but try it.

local ContentProvider = game:GetService("ContentProvider")

ContentProvider:PreloadAsync(game:GetService("Workspace"):WaitForChild("Assets"):GetChildren())

wait(2)
script:Destroy()

Ad

Answer this question