Problem with decal preloads

My decals don’t seem to preload in time. Only one image appears out of the many. The game gets ~10 seconds to load all of the decals. Is this possible for the game to load it that fast? Or is it just an error in my code?

local assetIDs = {
	"14694013810",
	"14694015005",
	"14694015548",
	"14694016285",
	"14694017200",
	"14694017749",
	"14694018365",
	"14694018867",
	"14694019520",
	"14694021016",
	"14694021556",
	"14694022357",
	"14694023843",
	"14694023182",
	"14694023843",
	"14694024725",
	"14694025636",
	"14694026520",
	"14694027077",
	"14694027736",
	"14694028319",
	"14694028738"
}

local contentProvider = game:GetService("ContentProvider")

local function preloadAssets()
	contentProvider:PreloadAsync(assetIDs)
end

spawn(preloadAssets)
print("loading!")
1 Like

i think its spawn(preloadAssets())

or preloadAssets()
spawn()

cause your function isnt returning anything i dont see why you would have to put it in your spawning function

Wrong.

Did you prefix the rbxassetid:// to them?

wow i know like nothing i guess then :person_shrugging:

The rbxassetid:// is not prefixed, only the IDs (which are rbxassetids). The images do load (some of them).

Are they image IDs or decal IDs?

I’m not sure which one, but roblox uses “rbxassetid://” when loading them.