I have this script for an ife and I keep getting this error:
Unable to cast string to int64
Any help?
while script.Parent.Parent.Visible == true do local asset = game:GetService("MarketplaceService"):GetProductInfo(script.Parent.Parent.Song.SoundId) script.Parent.Text = asset.Name wait(.1) end
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