✓ Accepted answer
getproductinfo needs to have a number input. infront of your number is "rbxassetid://". I havent tested it but i think it will work )
while script.Parent.Parent.Visible == true do
local asset = game:GetService("MarketplaceService"):GetProductInfo(tonumber(script.Parent.Parent.Song.SoundId:sub(14)))
script.Parent.Text = asset.Name
wait(.1)
end
edit:
this code i tested and it worked:
local sid = "rbxassetid://685388224"
while script.Parent.Value.Value == true do
local asset = game:GetService("MarketplaceService"):GetProductInfo(tonumber(sid:sub(14)))
print(asset.Name)
wait(.1)
end
2 comments
GetProductInfo only takes the numbers from the ID of the product, not the whole string assetID itself.
oof I meant script.Parent.Text = asset.Name but i still get the error