-
What do you want to achieve? To let the audio play music
-
What is the issue? So the script should put audio asset ID in the audio, but when I did tests, the property section still shows soundID blank
-
What solutions have you tried so far? I tried to remove anything unrelated to the script but did not help
The player gui is for the gui to show to player what song is currently being played
local player = game.Players.LocalPlayer.PlayerGui
local SongName = player.radio.radiopannel.SongName
local MarketPlaceService = game:GetService("MarketplaceService")
local Songs = {
5409360995, 7023887630
}
local Song = script.Parent.Music
while true do
for i = 1, #Songs do
local Song = Songs[i]
local SongInfo = MarketPlaceService:GetProductInfo(Song)
Song.SoundId = "rbxassetid://" .. Song
Song:Play()
SongName.Visible = true
SongName.Text = SongInfo.Name
repeat wait() until not Song.IsPlaying
end
end
I did a lot of tests, console didn’t show any errors and no matter what I delete from the script, change its position in the workspace, nothing really helped, the place for AudioID is still blank when doing tests