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

Roblox Studio clothes not changing when I input a new ID?

I'm working on updating an outfit of an NPC in my game. The clothes won't update, though.

Here's a picture of the output it gives me.

https://imgur.com/a/oVBmPGZ

All I'm doing is putting in a new clothing item ID under "shirt" For the mannequin. I've done this before and it worked fine, but I haven't updated in almost a year. I've tried different shirt IDs as well, random ones from the catalog and it still doesn't update and gives the NPC a transparent shirt.

1 answer

Try pre-loading the assets

game:GetService('ContentProvider'):PreloadAsync({id1, id2, id3}) --Replace the id's with the actual id

6 comments

0

https://imgur.com/a/3VpWJmP Here's a link to the entire output log on my studio.. I've tried using ID's that are on front page of the catalog thinking it might just be my own IDs aren't ready to be put in a game yet. (i.e not checked by a moderator yet)

0

That is not the correct way of using :PreloadAsync, PreloadAsync takes a table of instances and loads them

0

Then how?

0

I didn't write the script, someone made the store for me and scripted everything them self (to the best of my knowledge), I don't have contact with them anymore since they made it over 2 years ago. It's been working perfect up until recently.

0

I just tried loading a few assets in, firstly they didn't load but then all of the assets did, try waiting for the assets to load for about a minute and if it works, the question is solved.

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