HatsIDBox:GetPropertyChangedSignal('Text'):Connect(function()
local Info = MarketPlaceService:GetProductInfo(HatsIDBox.Text)
if Info then
print(Info)
end
end)
HatsIDBox:GetPropertyChangedSignal('Text'):Connect(function()
local Info = MarketPlaceService:GetProductInfo(HatsIDBox.Text)
if Info then
HatsImage.Image = 'rbxassetid://'..Info.AssetId
end
end)
HatsIDBox:GetPropertyChangedSignal('Text'):Connect(function()
local Info = MarketPlaceService:GetProductInfo(tonumber(HatsIDBox.Text))
if Info then
HatsImage.Image = "rbxthumb://type=Asset&id="..Info.AssetId.."&w=150&h=150"
end
end)
@xZylter There was a similar question related to this and I mentioned about AssetId for the image and that got the solution, so I thnik it can be used for the image too