Roblox Studio has a few different ways to show a picture, and each one has its own job. This guide shows which object to use, where to put the ID, and how to change an image with a tiny bit of script.
Decal or Texture: pick the right object
Both objects stick an image onto one face of a part, but they behave differently:
- A Decal stretches the image to fill the whole face once. Use it for posters, signs, paintings and logos you made.
- A Texture repeats the image across the face like tiles. Use it for floors, brick walls, wallpaper and grass. Its StudsPerTileU and StudsPerTileV properties set how big each tile is, and the offset properties slide the pattern around.
If your picture looks squashed on a Decal, the part is the wrong shape for the image. Our decal size guide explains how to match them.
Put an image on a part
- Select the part in the Explorer, click the plus button next to it and add a Decal (or a Texture).
- In the Properties window, set Face to the side you want: Front, Back, Top, Bottom, Left or Right.
- Find the image property and paste your ID. In current Studio versions this slot is called ColorMapContent; older tutorials call it Texture.
- Change Transparency to fade the image, or Color3 to tint it.
- If you put several decals on the same face, use ZIndex to choose which one sits on top.
A new, empty decal shows an orange outline on the part, so you can always see where it is even before the picture loads.
Show an image on the screen or on a surface
For images that are part of your game's interface, use GUI objects instead.
On the player's screen: add a ScreenGui inside StarterGui, then add an ImageLabel inside it. Set its Image property to your ID. Use an ImageButton instead if players should click it, like a shop or menu button. GUI icon IDs are handy here.
On a part in the world: add a SurfaceGui to the part, set its Face, then put an ImageLabel inside it. Set the ImageLabel's Size to {1, 0},{1, 0} so it covers the whole face. This is how many builders make TV screens, menus and scoreboards that sit on walls.
To keep an image's shape inside a GUI box, set ScaleType to Fit. Crop fills the box and trims the edges, and Tile repeats the image.
The rbxassetid:// format
Studio image properties expect an Image ID written as rbxassetid:// followed by the number. Type the prefix, then paste the digits straight after it with no space in between.
The number must be the Image ID, not the Decal ID. When you paste a Decal ID into the Properties window by hand, Studio usually converts it for you. A script will not. If you only have a Decal ID, look up the Image ID with our Decal to Image ID converter, or read Decal ID vs Image ID for the full picture. Every card on our topic pages also shows the Studio number when we have it.
Change an image with a script
You can swap pictures while the game runs, which is great for slideshows, shop previews or a sign that changes.
For an ImageLabel, set the Image property to a string: imageLabel.Image = "rbxassetid://" .. imageId, where imageId holds your Image ID as text or a number.
For a Decal, current Roblox docs use a Content value: decal.ColorMapContent = Content.fromUri("rbxassetid://" .. imageId).
Put GUI changes in a LocalScript if only one player should see them, and part decals in a regular Script if everyone should. If the image comes up blank, check imageLabel.IsLoaded and make sure you used the Image ID.
Common mistakes
- Pasting the Decal ID into a script. It shows blank because scripts get no automatic conversion.
- Leaving a space between
rbxassetid://and the number. - Using a Decal where a Texture was needed, so a floor pattern stretches into one giant tile.
- Using a picture that is Restricted under Asset Privacy. It loads only in games its owner allowed.
If an image still refuses to show, go through our decal not loading checklist.