What do you want to achieve? Keep it simple and clear!
I want to be able to change the decal id or asset id on a tv.
What is the issue? Include screenshots / videos if possible!
I have tried multiple different scripts and all don’t work. This is mine so far.
local box = script.Parent;
local label = workspace.tvcart.TV.Screen.SurfaceGui.Frame.screen1;
local url = "rbxthumb://type=Asset&id=%i&w=150&h=150";
box:GetPropertyChangedSignal("Text"):Connect(function()
if not tonumber(box.Text) then return; end
label.Image = url:format(tonumber(box.Text));
end)
This is the Decal Change UI in server storage.
This is the tvcart and the surface gui with screen.
Might be a bit confusing at first, basically its a website that generates the links you’re looking for based upon asset type and more.
Code Fix (I think):
local box = script.Parent;
local label = workspace.tvcart.TV.Screen.SurfaceGui.Frame.screen1;
local url = "https://thumbnails.roblox.com/v1/assets?assetIds=%i&returnPolicy=PlaceHolder&size=420x420&format=Png&isCircular=false"
box:GetPropertyChangedSignal("Text"):Connect(function()
if not tonumber(box.Text) then return; end
label.Image = url:format(tonumber(box.Text));
end)