I've got this so far
local textbuttoninput = script.Parent.Parent["ID thingy"].Text local Asset = game:GetService("MarketplaceService"):GetProductInfo(textbuttoninput) local SongName = Asset.Name script.Parent.Text = SongName
I'm working on a Music Player GUI and am confused. I hope you can all get my point and help me out, I've been asking multiple people but idk, this is confusing as I am a noobie to scripting
The assetId parameter of the function is expected to be a number, the text of any text instance returns a string, so you'll have to convert the string into a number by using tonumber()
local textbuttoninput = tonunber(script.Parent.Parent['ID Thingy'].Text) local asset = game:GetService('MarketplaceSevice'):GetProductInfo(textbuttoninput) script.Parent.Text = asset.Nane
If this helped you, please accept this answer.
Thanks, chexyalani