PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

Texture

Decal

Content

The Content ID of the image to be applied by the Decal.

How can I upload a Decal?

Images can be uploaded to Roblox provided they adhere to the community guidelines. Information on how to upload images can be found Articles/How to upload a Decal|here.

How to find do I find a Decal’s Content ID?

Unlike with Sound and Animation objects, the Content ID of a Decal is not the same as the number in the URL. There are two main ways of finding the Content ID of a Decal:

  • Paste the URL into the Texture property in Roblox Studio. Roblox will automatically update the property to the correct Content ID. Note this only works in Roblox Studio and cannot be done from Scripts or whilst the game is running.
  • Insert the Decal into the game, this is generally done through the Toolbox under ‘My Decals’. The Content ID can be found in the decal that is inserted. Note, InsertService/LoadAsset can also be used if developers wish to automate this method.

Code Samples


Changing Decal Texture

The following code will create a Part on the ground with a Decal applied to its top face. When something hits the part, such as when a player walks over it, the texture applied to the decal will change and a sound will play.