Decals are not loading in my game

So, i made a script that is supposed to change the Image of an ImageLabel. But instead it just throws an error. I have no idea what’s causing this.
Error:
Screenshot_2
Script:

script.Parent.award.image.Image = "rbxassetid://247421780"

Any help would be very appreciated!

Enter the ID into a pre-made image. There is a difference between the Decal ID and the Image ID. Once you enter it into the box, roblox should adjust it and then you use that adjusted id for your script.

1 Like

Didn’t work.

The ID in the first post is that of a Decal. If you set the Image property directly via script, it will not be auto-adjusted to be the Image as it would it you pasted it in the Studio property window.

This is the right ID for your image: 247421777. So the correct code is:

script.Parent.award.image.Image = "rbxassetid://247421777"

I found this by going back from 247421780 until I found the Image of that Decal.

3 Likes