Mesh textures on my item not loading?

So I have an item, which I use a script to enter the texture in using this script:

templ.TextureID = "http://www.roblox.com/asset/?id="..dataskin.textureid

The thing is that the texture doesn’t load in, leaving the item grey. Now I am not sure why this is happening, but I think it is because the id was never put into the place. For example, only one of the item loads, and that item is in the game currently with the same texture. Now, I could do this for all of the texture ids, but that would take a very long time, so is there any way I can use my current script?
Note: If I entered in the id manually into the template, the skin does load in, so that confuses me even more.

1 Like

Can you confirm if the id is correct…

  • …after script execution? So it doesn’t become nil, check templ.TextureID.
  • …after entering it manually? Is it consistent with the ID you set in?

I did enter it in manually, if you looked at the note at the bottom. It doesn’t become nil, it just says failed to load in.

You did not answer the second question. Was the ID consistent with the one you set in after?

Anyways, you can try entering rbxassetid://ID instead. Personally, I don’t really know the difference between this and the longer link.

One strange thing that happened was that if I set the id to a constant from my itemdata, then it worked.

i think it has to be: “rbxassetid://”…dataskin.textureid

I fixed it myself, it was because the ids were different than the real ones.

Yeah, not sure what’s happening… I use rbxassetid://ID always.

ok then mark yourself as solution so other people know it’s been solved so that they don’t reply(like me lol)