ImageLabel Image (AssetID) not working in Script

Im using this script to set the image of an imagelabel to this api (goes through my host), however when it changes the image in the script, its just a blank image despite working in studio:

Script snippet:

local response = Https:JSONDecode(Proxy:Get('https://search.roblox.com/catalog/json?CatalogContext=2&Category=8&SortType=2&ResultsPerPage=2&Keyword="car"').body)

script.Parent.ImageLabel.Image = (response[1].AssetId)

Comparison:

2 Likes

Have you tried this?

script.Parent.ImageLabel.Image = "rbxassetid://"..(response[1].AssetId)
2 Likes

Thank you, I feel like an idiot.

2 Likes