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

PreloadAsync is not working, am I using it properly?

Asked by
SCP774 191
6 years ago

Well, I've created an inventory GUI, everything is done but when I test it, the decals failed to preload. Anyone got any idea on what happened?

Here's the script itself:

01wait(1)
02local rep = game:GetService("ReplicatedStorage")
03local remote = rep.Remotes:WaitForChild("GetPlayerItemInfoCTC")
04local remote2 = rep.Remotes:WaitForChild("SendPlayerItemInfoEvent")
05local remote3 = rep.Remotes:WaitForChild("InventoryControlEvent")
06local remote4 = rep.Remotes:WaitForChild("CloseAllGuisCTC")
07local frame = script.Parent
08local gui = frame.Parent
09local panelHolder = frame:FindFirstChild("BlankHolder")
10local plr = game.Players.LocalPlayer
11local itemModule = require(rep.Modules.ItemLibrary)
12local contentProvider = game:GetService("ContentProvider")
13 
14local quanityList = {}
15 
View all 60 lines...

The item library is just a module script that stores all information for all gears.

Here's the output: 1 Wood Club Starting Module 20:50:36.140 - ContentProvider:PreloadAsync() failed for rbxassetid://2331348483 2 Alpha Sword Starting Module 20:50:36.487 - ContentProvider:PreloadAsync() failed for rbxassetid://2331348483

The game is a group game, and the decal's owner is the group. This should've worked properly but it didn't, if you can find any problem please tell me, all help appreciated.

Answer this question