I have already looked on the Roblox Wiki and stuff but I couldn't find out how to do this but I am making a music player and want custom song titles, artist names, and album art but whenever I try and pull data from my dictionary, it doesn't seem to grab any data at all. There are no errors in the output.
--Variables
local Players = game.Players
local Player = Players.LocalPlayer
local Sound = script.Parent.Music
local GUI = Player.PlayerGui.MusicGui
local ArtGUI = GUI.RadioGUI.Art.AlbumArt
local TitleGUI = GUI.RadioGUI.Info.Title
local ArtistGUI = GUI.RadioGUI.Info.Artist
SongList = {
{
ID = 7029024726,
Title = "Bloom",
Artist = "Throttle",
ArtID = 7377998210
},
{
ID = 7024154355,
Title = "Feels Like Love",
Artist = "Laszlo",
ArtID = 7378871754
},
{
ID = 1061409802,
Title = "Kodokushi",
Artist = "Kyoto Black, Mihka!",
ArtID = 7378895447
},
{
ID = 2409526081,
Title = "Only Way Out (Blyzo remix)",
Artist = "Madeon , Blyzo",
ArtID = 7378912620
},
} --end song list
while wait() do
Sound:Stop()
if not Sound.IsPlaying then
local SongChosen = SongList[math.random(1,#SongList)]
Sound.SoundId = "rbxassetid://"..SongChosen["ID"]
TitleGUI.Text = SongChosen["Title"]
ArtistGUI.Text = SongChosen["Artist"]
ArtGUI.Image = "rbxassetid://"..SongChosen["ArtID"]
Sound:Play()
wait(Sound.TimeLength)
end
end

2 comments
Unfortunately this didn't work... I made sure all the sound ids were valid and working and still no fix. I have a feeling it could be that its a table within a table and that I'm grabbing something not valid but I wouldn't know how to have a work around for that because I havent seen any info on it.
i've given you mail on roblox :)