Hi, I’m making a script that changes the decal by the text of a text box, but it’s not working and just shows up: 11:21:48.872 - Image "https://assetdelivery.roblox.com/v1/asset?id=5534886676" failed to load in "Workspace.Decal.Decal.Texture": Request failed
Here’s the code:
script.Parent.Sub.MouseButton1Click:Connect(function()
if script.Parent.TextBox.Text then
local textbox = script.Parent.TextBox.Text
game.Workspace.Decal.Decal.Texture = "http://www.roblox.com/asset/?id="..textbox
end
end)
Ignore what I just said, you are the owner so it should be working. Try using a different ID and see if it works, if it does then its a problem with the ID
I tried another link but it still gives me an error: 12:07:23.601 - Image "https://assetdelivery.roblox.com/v1/asset?id=3708716595" failed to load in "Workspace.Decal.Decal.Texture": Request failed
if script.Parent.TextBox.Text then
local textbox = script.Parent.TextBox.Text
game.Workspace.Decal.Decal.Texture = "rbxassetid://"..game:GetService("MarketplaceService"):GetProductInfo(textbox).AssetId
end
end)
You may simply just want to edit the transparency of the decal. For instance, if you click, you would set the original decal’s transparency to 1 and the new decal’s transparency to 0. In this case, both decals would already be on the model.
Roblox tends to be weird with these types of things, but this is what I would do. I’m sure there’s a better way out there, however. Hope this helps.