This is my code:

i keep getting the error: Unable to cast string to int64

wait(5)
while true do
	local Id = game.Workspace.Music.SoundId
	local filter = string.sub(Id,14)
	wait(1)
	print(filter)
	local SongName = game:GetService("MarketplaceService"):GetProductInfo(filter, Enum.InfoType.Asset)
	local convert = tostring(SongName.Name)
	wait(1)
	script.Parent.Text = convert
	wait(5)
end

4 comments

1

the issue is your filter variable. what is it printing?

1

il check

1

fixed thanks

1

yw