Question Regarding Decals

How can I reliably insert decal ID’s into a decal object?
example of my problem:

i enter a valid decal ID via a script, and it sets the decal’s ID to that number, yet nothing shows up.

when i normally paste the image ID into the decal Texture, it changes the ID very slightly.

how can I make it reliable?

Please use the Search tool up top. Are these what’s happening to you?
<Decals appearing black in edit mode but normal in test mode?
<Decals & certain Textures completely black

no, they’re not happening to me. I’m looking into my issue right now.

Are you using the rbxassetid:// prefix?

no, should i be using that prefix?

Yeah, just do decal.Texture = 'rbxassetid://'..imageId

The issue with that is:

that definitively sets an asset id.

roblox’s decal system sucks, so it will change it slightly when entering it manually.
i need the decal to correct when entered via script. is there a good way to do this?

I’m not sure what you mean, the id shouldn’t change if it’s a valid decal

https://i.gyazo.com/025b84ea9e8d3662df4fc07cad70b3a4.mp4

take a look at the last few digits of the decal ID before AND after i enter it.

^^this is the ID i entered.

Oh I see, not sure why that’s happening but my guess is that it probably has to do with how assets are delivered, try typing in “rbxassetid://7422642815”


doesnt work.

Ah okay, I just tried it out now. That’s weird.

I did a bit of research and came across this post:

So basically,

local id = 7422642815
decal.Texture = 'rbxthumb://type=Asset&id='..id..'&w=420&h=420'

That worked for me.

you, my man, are a life saver. you earned this solution. thanks!

1 Like