Image not displaying properly

Hello! On the roblox create page, it shows my images here:
image

But in the model itself, the image is not there and it’s not displaying in my game, and I use this:

local link = "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId="
image.Image = link .. petId; 

petId being the ID of the created model.

2 Likes

That is not the proper way to cite a decal link, try this!

local link = "rbxassetid://[Decal ID here]"
image.Image = link .. petId;
2 Likes

It’s not just a decal. It’s the pet model as a whole.

2 Likes

Hmm you should try using viewport frames for pets

2 Likes

Viewport frames wouldn’t be the issue here. The other pet images are working fine, with just this one as the issue. Viewport frames are also used as more of a bigger GUI to show the part moving, such as being used in a minimap.

1 Like

To be honest, I’m really confused what you’re issue is here

Yes what are you are saying is true and makes plenty of sense, but i still would recommend viewports for pets as a whole. I will personally recommend with my 8 years of coding and vast knowledge of Lua, C++, Javascript, and Python to integrate to using viewports. I have made many of successful games and really advise it. Just take my word it will be worth it.

1 Like

The image for the pet is not loading. All the pets I save it as a model, and use the model itself as the ID for the images. Every pet works fine except this one, the image isn’t appearing correctly.

Are all the other ones models that you created?

1 Like

Yes. All the pet models were created by me.

ImageLabel.Image = "rbxthumb://type=Asset&w=420&h=420&id={ID}"
3 Likes

DIdn’t fix the issue. Starting to lose hope

Are you using the image from the model’s picture? Or have you made a separate decal

1 Like

The image from the model itself. I use that for the Hat’s and all the other pets in my game.

Try copying the model image and uploading it as a decal and hopefully that should work

1 Like

I missed a " at the end, anyway, that’s what I’ve used in the past to display a model’s thumbnail in-game.