Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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()

6 comments

0

I believe ContentProvider is server-side only. I'm not sure.

1

it's actually client side only

1

oh lol

0

What are the items in the array in Assets.

0

A bunch of imagelabels with the asset I want to load inside

0

Please provide the errors.

1 answer

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()

This discussion is preserved as it was. New answers, comments, and votes are closed.