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 6 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 — 6y
1
it's actually client side only g1o2r3d4a5n6 350 — 6y
1
oh lol User#19524 175 — 6y
0
What are the items in the array in Assets. User#5423 17 — 6y
View all comments (2 more)
0
A bunch of imagelabels with the asset I want to load inside Professor_Boxtrot 136 — 6y
0
Please provide the errors. uhTeddy 101 — 6y

1 answer

Log in to vote
0
Answered by 6 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