Setting a Decal

So after running your script, what is the Decal’s ‘Texture’ value?

2 Likes

Well, it would be rbxassetid://11201552339 but if I use the other one, it would be http://www.roblox.com/asset/?id=11201552325
But neither of them work.

What are the arguments (args) you are sending? I feel like there are a few cases where the script isn’t actually assigning an ID to your cursor depending on what you sent (such as where there are no arguments at all, or when imageProperty is nil, but the ExtraArg is a valid argument).

1 Like

The reason neither of these work is because you are sending a decal id, when rbxassetid:// doesn’t accepts decal ids. To fix this, replace your imageProperty = "rbxassetid://" .. tostring(args[1]) with imageProperty = "rbxthumb://type=Asset&id="..args[1].."&w=420&h=420".
Now, if you want to detect images AND decals, you can also check if ProductInfo.AssetTypeId equals 1 (as 1 is Image Ids), and then you can use your rbxassetid:// code.

1 Like

Thank you so much!! The decal finally appeared.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.