local MP = game:GetService("MarketplaceService")
local function check(img)
local success, productInfo = pcall(function()
return MP:GetProductInfo(img)
end)
if success then
return true
else
return false
end
end
script.Parent.FocusLost:Connect(function()
local tn = tonumber(script.Parent.Text)
local checkimg = check(tn)
if checkimg then
local text = "rbxassetid://"..tn
end
end)
This is my code, I tried to change the image of my shiftlock in the textbox but the image doesn’t load. How can I make a function that gives me the real image id instead of its asset id?