Need help with ContentProvider

ContentProvider:LoadAsync() does not work for me, i put in a content id and loaded it from both the server and client and nothing is happening, the image i’m trying to load is just blank

code for asset loader:

local conProviderServ = game:GetService("ContentProvider")
local assets = {
	"http://www.roblox.com/asset/?id=5921512240",
	"http://www.roblox.com/asset/?id=13544104759",
	"http://www.roblox.com/asset/?id=13544583383",
	"http://www.roblox.com/asset/?id=9900113584",
	"http://www.roblox.com/asset/?id=159173819",
	"http://www.roblox.com/asset/?id=35122166",
	"http://www.roblox.com/asset/?id=144789481",
	"http://www.roblox.com/asset/?id=337569632"
}

conProviderServ:PreloadAsync(assets)
print("Loaded fully")

there are no errors btw

1 Like

p.s might need to change the prefixes for the ids to something else, idk just tell me

1 Like

Instead of urls you need to do rbxasset://id

1 Like

i just did that, nothing has loaded yet. also does :PreloadAsync() yield the thread or not because then the print will be useless

1 Like

My bad, the correct string is rbxassetid://id, instead of rbxasset://id. Also yes, the print yields.

1 Like

kk, note im loading from the client

2 Likes

p.s i loaded both with rbxassetid and funny http thing and nothing has worked so far

1 Like

image
i see now

1 Like

i finally found the solution, i was loading the image ids instead of the decal ids

1 Like

nevermind
char limit char limit char l imit

Apologies for the late reply, I wasn’t aware you had un-solved the topic. I’ve experimented a bit more with preloading, and for whatever reason I wasn’t able to preload certain types of assets. My solution was creating whatever instance that asset id applied to, setting the instance’s id to the id you want to preload, then preloading the instance instead of the content string.